Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created August 5, 2023 15:25
Show Gist options
  • Select an option

  • Save Didgeridrew/09e3e8ab88db9d183b6a7470f10abc29 to your computer and use it in GitHub Desktop.

Select an option

Save Didgeridrew/09e3e8ab88db9d183b6a7470f10abc29 to your computer and use it in GitHub Desktop.
HA - increasing trigger value
alias: zTest increasing trigger value
description: ""
trigger:
- platform: state
entity_id:
- input_number.ztest_1
for:
milliseconds: 500
condition:
- condition: template
value_template: "{{ trigger.to_state.state|float > trigger.from_state.state|float }}"
action:
- service: notify.alexa_media_amanda_s_living_room_dot
data:
data:
type: tts
message: Testing. Value {{ trigger.to_state.state }}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment