Evening all, me again. Sorry I thought this one would be a really simple one but for some reason by automation is not nut firing. If I fire it manually via configuration it’s actions are carried out perfectly but when left to fire automatically it never gets hit and I can see that from the last run time.
I have an input_number and I want to fire one routine when the number hits 0 and another one when its above 0
Here is the code I have:
- id: "1632849891989"
alias: New Ticket Flag On
description: "When unassigned tickets is above 0 turn the new ticket flag on"
trigger:
- platform: numeric_state
entity_id: input_number.new_open
above: "0"
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.new_tickets
mode: single
- id: "1632849891990"
alias: New Ticket Flag Off
description: "When unassigned ticket count hits 0 turn the new ticket flag off"
trigger:
- platform: numeric_state
entity_id: input_number.new_open
below: "1"
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.new_tickets
mode: single
I have tried using the developer tools to set the state of input_number.new_open to 0, 1, 2 and 999 and it doesn’t trigger any of those automations…
Am I being stupid?