Removing automation for the time being to find something better

This commit is contained in:
Jeffrey Stone 2021-05-24 11:52:56 -04:00
parent aa1ddb79b6
commit bab9e2db42
1 changed files with 22 additions and 22 deletions

View File

@ -78,26 +78,26 @@ sensor:
value_template: "{{ value }}" value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/garage_motion/128/1/0" json_attributes_topic: "zwave2mqtt/garage_motion/128/1/0"
automation: # automation:
- alias: 'Battery Alert' # - alias: 'Battery Alert'
initial_state: true # initial_state: true
trigger: # trigger:
- platform: time # - platform: time
at: '10:00:00' # at: '10:00:00'
- platform: time # - platform: time
at: '18:00:00' # at: '18:00:00'
condition: # condition:
condition: template # condition: template
value_template: "{% if states('sensor.low_battery') %}true{% endif %}" # value_template: "{% if states('sensor.low_battery') %}true{% endif %}"
action: # action:
- service: persistent_notification.create # - service: persistent_notification.create
data_template: # data_template:
title: Low Battery # title: Low Battery
message: "{{ states('sensor.low_battery') }}" # message: "{{ states('sensor.low_battery') }}"
notification_id: low-battery-alert # notification_id: low-battery-alert
- service: script.text_notify # - service: script.text_notify
data_template: # data_template:
title: "HA Issue" # title: "HA Issue"
message: "Low battery levels: {{ states('sensor.low_battery') }}" # message: "Low battery levels: {{ states('sensor.low_battery') }}"
who: 'jeff' # who: 'jeff'