Tiem to store MORE things in INFLUX DB. Set up realtime camera and Historical tweets.

This commit is contained in:
ccostan 2018-06-12 21:13:03 -04:00
parent 338a57de4d
commit ddfd5c23c4
4 changed files with 16 additions and 65 deletions

View File

@ -14,19 +14,20 @@
sensor: sensor:
- platform: command_line - platform: command_line
name: "Download Grafana Solar" name: "Download Grafana Solar"
command: 'curl -s -H "Authorization: Bearer eyJrIjoiZ0UwS1hpRVdCbFVVSTNSdER0Z29maHc4QmVuSXhxalYiLCJuIjoiSEFDYW1lcmEiLCJpZCI6MX0=" "http://192.168.10.10:3000/render/d/h_wosLIik/solar?orgId=1&panelId=1&width=1000&height=700&from=now-12h&to=now" > /config/www/custom_ui/floorplan/images/branding/solar_readings.png' command: 'curl -s -H "Authorization: Bearer eyJrIjoiZ0UwS1hpRVdCbFVVSTNSdER0Z29maHc4QmVuSXhxalYiLCJuIjoiSEFDYW1lcmEiLCJpZCI6MX0=" "http://192.168.10.10:3000/render/d/h_wosLIik/solar?orgId=1&panelId=1&width=1000&height=700&from=now-42h&to=now-25h" > /config/www/custom_ui/floorplan/images/branding/solar_readings.png'
scan_interval: 600 scan_interval: 3000
hidden: True
camera: camera:
# - platform: generic - platform: generic
# name: Grafana_2 name: Grafana_2
# still_image_url: 'http://192.168.10.10:3000/render/d/h_wosLIik/solar?orgId=1&panelId=1&width=1000&height=700&from=now-11h&to=now' still_image_url: 'http://192.168.10.10:3000/render/d/h_wosLIik/solar?orgId=1&panelId=1&width=1000&height=700&from=now-24h&to=now'
# username: HA username: HA
# password: HA password: HA
- platform: local_file # - platform: local_file
name: "Grafana Solar Graph" # name: "Grafana Solar Graph"
file_path: /config/www/custom_ui/floorplan/images/branding/solar_readings.png # file_path: /config/www/custom_ui/floorplan/images/branding/solar_readings.png
############################################################################## ##############################################################################
### Automations - Detect when things are not right. Like any Good Watchdog. ### Automations - Detect when things are not right. Like any Good Watchdog.
@ -46,8 +47,8 @@ automation:
data_template: data_template:
tweet: >- tweet: >-
{{ [ {{ [
"Here is todays #Solar Production. " "I have just finished crunching the numbers and here is the latest #Solar Production report. "
] | random + " #Tesla (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)" }} ] | random + " #Charts #Tesla (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)" }}
image: >- image: >-
{% set pictures = [ {% set pictures = [
"/config/www/custom_ui/floorplan/images/branding/solar_readings.png" "/config/www/custom_ui/floorplan/images/branding/solar_readings.png"

View File

@ -57,34 +57,9 @@ group:
- sensor.grid_now - sensor.grid_now
- sensor.house_now - sensor.house_now
- sensor.solar_now - sensor.solar_now
- camera.grafana_solar_graph
#------------------------------------------- #-------------------------------------------
# #
# automation: # automation:
# - alias: PiHole Daily stats Tweet! # Located in the Grafana package. Tweets out Solar Production Daily!
# trigger:
# platform: time
# at: '23:50:00'
# action:
# - delay: '00:{{ (range(1, 9)|random|int) }}:00'
# - service: script.tweet_engine
# data_template:
# tweet: >
# {{ [
# "I blocked {{states.sensor.pihole_ads_blocked_today.state}} ads. That is {{states.sensor.pihole_ads_percentage_blocked_today.state}}% of my internet traffic.",
# "Today was a good day! Why, you ask? Because I blocked {{states.sensor.pihole_ads_blocked_today.state}} ads via Pi-Hole!",
# ] | random + " #PiHole #Security Status:({{states.sensor.carlopihole.state}})"}}
#
# - alias: PiHole Daily Client Tweet!
# trigger:
# platform: time
# at: '04:30:00'
# action:
# - delay: '{{ (range(1, 6)|random|int) }}:{{ (range(1, 50)|random|int) }}:00'
# - service: script.tweet_engine
# data_template:
# tweet: >
# {{ [
# "There are currently {{states.sensor.pihole_dns_unique_clients.state}} clients on my network.",
# "As reported by #Ubiquity Routers, There are {{states.sensor.pihole_dns_unique_clients.state}} clients on my network.",
# ] | random + "#Security http://amzn.to/2D2AfXS"}}

View File

@ -3,7 +3,7 @@
############################################################ ############################################################
#db_url: sqlite:///data/home-assistant_v2.db #db_url: sqlite:///data/home-assistant_v2.db
purge_interval: 1 purge_interval: 1
purge_keep_days: 7 purge_keep_days: 30
include: include:
entities: entities:
- group.landscaping - group.landscaping
@ -16,39 +16,20 @@ exclude:
- scene - scene
- script - script
entities: entities:
- binary_sensor.bedroom_motion
- binary_sensor.clock_motion
- binary_sensor.office_motion
- sensor.bitcoin
- sensor.carlo_6s_battery_state
- sensor.carlo_6s_battery_level
- sensor.clock_am_pm - sensor.clock_am_pm
- sensor.clock_date - sensor.clock_date
- sensor.clock_day - sensor.clock_day
- sensor.clock_stacey_alarm_time - sensor.clock_stacey_alarm_time
- sensor.clock_time - sensor.clock_time
- sensor.dark_sky_cloud_coverage
- sensor.dark_sky_daily_max_precip_intensity
- sensor.dark_sky_humidity
- sensor.dark_sky_minutely_summary - sensor.dark_sky_minutely_summary
- sensor.dark_sky_precip_intensity
- sensor.dark_sky_temperature
- sensor.dark_sky_uv_index
- sensor.dark_sky_wind_speed
# - sensor.database_sensor # - sensor.database_sensor
- sensor.date - sensor.date
- sensor.epson_ink_level_black
- sensor.epson_ink_level_cyan
- sensor.epson_ink_level_magenta
- sensor.epson_ink_level_photo_black
- sensor.epson_ink_level_yellow
- sensor.external_ip - sensor.external_ip
- sensor.floorplan_date - sensor.floorplan_date
- sensor.floorplan_time - sensor.floorplan_time
- sensor.ha_uptime - sensor.ha_uptime
- sensor.large_garage_reflection_rate - sensor.large_garage_reflection_rate
- sensor.large_garage_time_in_state - sensor.large_garage_time_in_state
- sensor.large_garage_wifi_signal_strength
- sensor.last_message - sensor.last_message
- sensor.low_battery - sensor.low_battery
- sensor.medicine_time - sensor.medicine_time
@ -57,17 +38,11 @@ exclude:
- sensor.pihole_ads_blocked_today - sensor.pihole_ads_blocked_today
- sensor.pihole_ads_percentage_blocked_today - sensor.pihole_ads_percentage_blocked_today
- sensor.pihole_dns_queries_today - sensor.pihole_dns_queries_today
- sensor.pihole_dns_unique_clients
- sensor.since_last_boot - sensor.since_last_boot
- sensor.since_last_boot_templated - sensor.since_last_boot_templated
- sensor.skybell_stone_door_chime_level - sensor.skybell_stone_door_chime_level
- sensor.small_garage_reflection_rate - sensor.small_garage_reflection_rate
- sensor.small_garage_time_in_state - sensor.small_garage_time_in_state
- sensor.small_garage_wifi_signal_strength
- sensor.speech_time
- sensor.staceys_iphone_battery_level
- sensor.staceys_iphone_battery_state
- sensor.tesla
- sensor.time - sensor.time
- sensor.rachio_watering_time - sensor.rachio_watering_time
- sun.sun - sun.sun

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 126 KiB