I am new to zigbee2mqtt and all my devices stay online and have good connections but I'm struggling with some automations. Below is an example of a trigger.
triggers:
- trigger: state
entity_id:- switch.plug_bay_window
from: - "off"
- "on"
This one triggers when the device turns off and on not when it goes from off to on. I also have leak detectors that in zigbee2mqtt the only trigger available in automations is below.
triggers:
- switch.plug_bay_window
- entity_id:
- binary_sensor.leak_sensor_basement_sink_water_leak
from: "off"
to: "on"
trigger: state
The issue is the automation is not triggering and in zigbee2mqtt has the option of water detection from "clear" to "detected" instead of "off" and "on". Is there a setting I'm missing somewhere?
- binary_sensor.leak_sensor_basement_sink_water_leak