It seems like I can not fire automation with numerical values. I have automation that were created a while back that has been working fine but the new ones I can not get it triggered.
Below is one automation
alias: "Automation: Study room turn air purifier on"
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.pm2_5_study_room_air_quality
above: 5
id: above 10
for:
hours: 0
minutes: 2
seconds: 0
- platform: numeric_state
entity_id:
- sensor.pm2_5_study_room_air_quality
id: below 2
below: 2
- platform: device
device_id: 6edb842681e6bdde5ae82cc4a65a03a3
domain: bambu_lab
type: event_print_started
id: Printer on
- platform: device
device_id: 6edb842681e6bdde5ae82cc4a65a03a3
domain: bambu_lab
type: event_print_started
id: Printer off
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- above 10
sequence:
- service: switch.turn_on
target:
device_id: c3e117d81f2889ddf6b070403d45f750
data: {}
- conditions:
- condition: trigger
id:
- below 2
sequence:
- service: switch.turn_off
target:
device_id: c3e117d81f2889ddf6b070403d45f750
data: {}
- conditions:
- condition: trigger
id:
- Printer on
sequence:
- service: switch.turn_on
target:
entity_id: switch.study_air_purifier_plug
data: {}
- conditions:
- condition: trigger
id:
- Printer off
sequence:
- service: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.study_air_purifier_plug
mode: single
Thanks