#293 - Updated with the ability to tweet out realtime dynamic images of Solar Production!
This commit is contained in:
parent
532b9dc842
commit
338a57de4d
|
@ -8,11 +8,13 @@ climate.downstairs:
|
||||||
climate.upstairs:
|
climate.upstairs:
|
||||||
friendly_name: 'Nest Upstairs'
|
friendly_name: 'Nest Upstairs'
|
||||||
icon: mdi:air-conditioner
|
icon: mdi:air-conditioner
|
||||||
|
sensor.downstairs_nest_eta:
|
||||||
|
hidden: True
|
||||||
|
sensor.upstairs_nest_eta:
|
||||||
|
hidden: True
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
## Sun Section
|
## Sun Section
|
||||||
###################################
|
###################################
|
||||||
sun.sun:
|
sun.sun:
|
||||||
hidden: true
|
hidden: true
|
||||||
|
|
|
@ -2,8 +2,10 @@ Weather:
|
||||||
entities:
|
entities:
|
||||||
- climate.downstairs
|
- climate.downstairs
|
||||||
- sensor.downstairs_thermostat_humidity
|
- sensor.downstairs_thermostat_humidity
|
||||||
|
- binary_sensor.downstairs_nest_away
|
||||||
- climate.upstairs
|
- climate.upstairs
|
||||||
- sensor.upstairs_thermostat_humidity
|
- sensor.upstairs_thermostat_humidity
|
||||||
|
- binary_sensor.upstairs_nest_away
|
||||||
- sensor.dark_sky_cloud_coverage
|
- sensor.dark_sky_cloud_coverage
|
||||||
- sensor.dark_sky_minutely_summary
|
- sensor.dark_sky_minutely_summary
|
||||||
# - sensor.dark_sky_nearest_storm_distance
|
# - sensor.dark_sky_nearest_storm_distance
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
#-------------------------------------------
|
||||||
|
# @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
#-------------------------------------------
|
||||||
|
# homeassistant:
|
||||||
|
# customize_glob:
|
||||||
|
# "*.*_sleep_hours":
|
||||||
|
# unit_of_measurement: hours
|
||||||
|
# icon: mdi:sleep
|
||||||
|
#
|
||||||
|
# hidden: False
|
||||||
|
#-------------------------------------------
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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: 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.
|
||||||
|
##############################################################################
|
||||||
|
automation:
|
||||||
|
- alias: 'Tweet Solar Production'
|
||||||
|
hide_entity: false
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
to: 'below_horizon'
|
||||||
|
from: 'above_horizon'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- delay: '0{{ range(1,3) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}'
|
||||||
|
- service: script.tweet_engine_image
|
||||||
|
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)" }}
|
||||||
|
image: >-
|
||||||
|
{% set pictures = [
|
||||||
|
"/config/www/custom_ui/floorplan/images/branding/solar_readings.png"
|
||||||
|
] %}
|
||||||
|
{{ pictures|random }}
|
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
Loading…
Reference in New Issue