Zigbee switch or relay with auto off

Hi all.
For many switches and din rail breakers zigbee2mqtt show following:

On with timed off
When setting the state to ON, it might be possible to specify an automatic shutoff after a certain amount of time. To do this add an additional property on_time to the payload which is the time in seconds the state should remain on. Additionnaly an off_wait_time property can be added to the payload to specify the cooldown time in seconds when the switch will not answer to other on with timed off commands. Support depend on the switch firmware. Some devices might require both on_time and off_wait_time to work Examples : {"state" : "ON", "on_time": 300}, {"state" : "ON", "on_time": 300, "off_wait_time": 120}

Do somebody knows device where this feature works for sure?
Thanks in advance.

You do this via automation, you set the trigger as the device being on and the action to be delay or timer then do the action you need in this case the shut off action for the switch/relay you are using at the time.

Thanks, but this is not an answer to my question.
Sure I am aware of automations, I am using HA for many years. There is reason why I’m looking for such device. It will drive pretty powerfull siren fo alarm system and I want to be sure that this siren will never be on to long. Ok, I can create such device using Esphome, but before that I’m trying to find something already exists, not reinventing the wheel.
Therefore I asked pretty specific question, so please, I need just answer to it, not beginner course. Thanks again.

Found that this feature works with TRADFRI bulb E14, white spectrum, globe, opal, 600 lm (LED1733G7) by IKEA
and also TRADFRI bulb E12/E14/E26/E27, color/white spectum, globe, opal, 600 lm (LED1624G9) by IKEA

Tested with:
Topic: zigbee2mqtt/friendly_name/set
Payload: {“state” : “ON”, “on_time”: 10}

There is good chance that all IKEA firmware supports this feature, so I will try with IKEA E2204 TRETAKT smart plug, it is available in my lokal IKEA for just €6.99

Update:
Bought IKEA E2204 TRETAKT smart plug and I can confirm, On with timed off works with both firmware, stock 20230206 and updated 20240215.

2 Likes