Struggling with this, basically found an almost perfect example of what I want to do initially in the documentation -
Created new autromation and adjusted for my devices, but it just will not save.
I really can’t see where the problem in my codes is. It looks identical to the example to me
- id: backdoor_opened_automation
- alias: "Backdoor opened"
trigger:
- platform: state
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
from: "off"
to: "on"
condition: []
action:
- service: scene.create
data:
scene_id: temp_before
snapshot_entities: climate.home_thermostat
- service: climate.set_temperature
target:
entity_id: climate.home_thermostat
data:
temperature: "15"
- alias: "Backdoor closed"
trigger:
- platform: state
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
from: "on"
to: "off"
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.temp_before
IF i strip out the entire ‘Backdoor Closed’ section, remove the dash from the first -alias and just have an automation for the opening, i can save it and it works. Also if i create a second automation formatted the same (without the - in front of alias) that also saves and works. Giving me 2 automations, one for open and one for closing.
Am i being stupid and they are supposed to be 2 separate automations ? The documentation doesnt suggest that and shows it all in one.
2 posts - 1 participant