#429 - Updated automations to notify when grid goes up or down.
This commit is contained in:
parent
1329c19cad
commit
2c0cdf4bec
|
@ -8,6 +8,7 @@
|
||||||
group:
|
group:
|
||||||
Power:
|
Power:
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.grid_status
|
||||||
- sensor.powerwall_battery_capacity
|
- sensor.powerwall_battery_capacity
|
||||||
- sensor.powerwall_battery_now
|
- sensor.powerwall_battery_now
|
||||||
- sensor.grid_now
|
- sensor.grid_now
|
||||||
|
@ -17,7 +18,6 @@ group:
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
resource: https://192.168.10.90/api/system_status/grid_status
|
resource: https://192.168.10.90/api/system_status/grid_status
|
||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
|
@ -67,7 +67,17 @@ sensor:
|
||||||
unit_of_measurement: W
|
unit_of_measurement: W
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
#
|
|
||||||
# automation:
|
|
||||||
# Located in the Grafana package. Tweets out Solar Production Daily!
|
# Located in the Grafana package. Tweets out Solar Production Daily!
|
||||||
|
#
|
||||||
|
automation:
|
||||||
|
- alias: Notify if Grid is down
|
||||||
|
hide_entity: True
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.grid_status
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: script.notify_engine
|
||||||
|
data_template:
|
||||||
|
value1: "The electrical grid is reporting to be {{ (trigger.to_state.state)|replace('true', 'up')|replace('false', 'down') }}. Please verify with Tesla App."
|
||||||
|
who: 'parents'
|
||||||
|
|
Loading…
Reference in New Issue