mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Tiem to store MORE things in INFLUX DB. Set up realtime camera and Historical tweets.
This commit is contained in:
@@ -14,19 +14,20 @@
|
||||
sensor:
|
||||
- platform: command_line
|
||||
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'
|
||||
scan_interval: 600
|
||||
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: 3000
|
||||
hidden: True
|
||||
|
||||
camera:
|
||||
# - platform: generic
|
||||
# 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'
|
||||
# username: HA
|
||||
# password: HA
|
||||
- platform: generic
|
||||
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-24h&to=now'
|
||||
username: HA
|
||||
password: HA
|
||||
|
||||
- platform: local_file
|
||||
name: "Grafana Solar Graph"
|
||||
file_path: /config/www/custom_ui/floorplan/images/branding/solar_readings.png
|
||||
# - platform: local_file
|
||||
# name: "Grafana Solar Graph"
|
||||
# file_path: /config/www/custom_ui/floorplan/images/branding/solar_readings.png
|
||||
|
||||
##############################################################################
|
||||
### Automations - Detect when things are not right. Like any Good Watchdog.
|
||||
@@ -46,8 +47,8 @@ automation:
|
||||
data_template:
|
||||
tweet: >-
|
||||
{{ [
|
||||
"Here is todays #Solar Production. "
|
||||
] | random + " #Tesla (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)" }}
|
||||
"I have just finished crunching the numbers and here is the latest #Solar Production report. "
|
||||
] | random + " #Charts #Tesla (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)" }}
|
||||
image: >-
|
||||
{% set pictures = [
|
||||
"/config/www/custom_ui/floorplan/images/branding/solar_readings.png"
|
||||
|
@@ -57,34 +57,9 @@ group:
|
||||
- sensor.grid_now
|
||||
- sensor.house_now
|
||||
- sensor.solar_now
|
||||
- camera.grafana_solar_graph
|
||||
#-------------------------------------------
|
||||
|
||||
#
|
||||
# automation:
|
||||
# - alias: PiHole Daily stats Tweet!
|
||||
# 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"}}
|
||||
# Located in the Grafana package. Tweets out Solar Production Daily!
|
||||
|
Reference in New Issue
Block a user