Hi everyone,
I’ve recently set up the Sonoff ZBMini switch using Zigbee2Mqtt, and everything is working as expected.
According to the device’s specifications (SONOFF ZBMINI control via MQTT | Zigbee2MQTT), it’s possible to send the ON command with additional parameters, specifically “on_time” and “off_wait_time.” These parameters control how long the switch stays ON and the cooldown time before it responds to new timed ON commands.
I can successfully send an MQTT message, and the light turns off automatically after 3 seconds:
action: mqtt.publish
data:
qos: "0"
topic: zigbee2mqtt/Luce Sala 1/set
payload: "{\"state\" : \"ON\", \"on_time\" : 3}"
What I’d like to know is whether it’s possible to store the “on_time” value directly on the ZBMini so that the same behavior applies when the physical button is used to turn on the switch. Is there a way to make this setting persistent on the device?
I understand this could be easily achieved through a Home Assistant automation, but I’m looking for a solution that works independently of whether HA is running or not.
Thanks in advance for any tips or suggestions!