Raspberry Pi 3
Home Assistant All In One Installer
Aeotec Z-Stick Gen5
Aeotec Siren Gen5, Z-Wave Plus, 105dB siren with strobe alerts, Plug-in, Backup battery
Aeotec by Aeon Labs ZW120 Door / Window Sensor, Small, White
Hi All,
I am trying to put together a simple automation that involves a window/door sensor that when the sensor is removed from its position (tampered with) or the window opens, a siren device sounds for 10 seconds. I’m having some difficulties with my basic knowledge of writing these automations.
For the first part I wrote the below but it is having problems:
it’s probably in the above: this would only work if you move from value=0 to value=254 in a single step, no other values in between.
What should the sensor.aeotec_zw120_door_window_sensor_gen5_burglar_5_10 normally return?
Personally I don’t like the numeric_state platform, but that’s just a preference, so I’d code it this way:
Since there are two windows in the bedroom both with a sensor on each window, is there a way to write the automation where I can include both in the same YAML file instead of creating a YAML file for the right window and one for the left window?
The only different in the entity_id is one has _2 on the end to identify each separately.