Hi. I have the following automation:
alias: >-
Increase ventilation mode when high CO2 or Humidity detected - With scenes
(Duplicate - doesn't work)
description: Triggers max mode for N minutes, then return back
trigger:
- type: value
platform: device
device_id: eca8624df19c2feb8152557453625823
entity_id: sensor.mh_z19_co2_value_2
domain: sensor
above: 1000
condition:
- condition: state
entity_id: group.tenants
state: home
action:
- data:
scene_id: ventilation_mode_revert
snapshot_entities:
- input_select.ventilation_mode
service: scene.create
- service: input_select.select_option
data:
option: max
target:
entity_id: input_select.ventilation_mode
- delay:
hours: 0
minutes: 0
seconds: 40
milliseconds: 0
- data:
entity_id: scene.ventilation_mode_revert
service: scene.turn_on
mode: single
but for some reason, it doesn’t reset it to the original ventilation_mode
afterwards, but puts in “low” . Here is the logbook where you can see it somehow messes that up:
Any hints anyone?