#Z2M: always add timed-off to payload

1 messages · Page 1 of 1 (latest)

pearl stone
#

I’d like to utilize the timed-off feature for my smart plugs, which is documented here:
https://www.zigbee2mqtt.io/devices/3RSP02028BZ.html#on-with-timed-off

However I’d like to know if it is possible to modify every ON command such that it’s not possible to turn the device on without setting the “timed off” to a fixed duration.

I could create an automation to trigger when the device is turned ON in order to send the timed off payload, but that seems clunky.

hoary lily
#

I don't think HA has any native support for the concept at all

#

You can probably work around that by creating your own MQTT switch that sends the right payloads, and hide the "real" one

pearl stone
#

Ah, damn. OK I’ll play around with that. If it accepts the payload while it’s already on, I think the automation might work. Otherwise I’ll have to go with a new switch. Maybe the new switch is a cleaner method anyway…