#MQTT Service and commandOnWithTimedOff

1 messages · Page 1 of 1 (latest)

naive oxide
#

I assume that the mqtt service is what I should use in the action, because I can't see any "timed off" options in the light service.

#

But I have no idea how to format a suitable payload for the MQTT message

#

I've got a PIR bound to the bulb that uses, commandOnWithTimedOff, and I see this in the zigbee2mqtt logs:
type 'commandOnWithTimedOff', cluster 'genOnOff', data '{"ctrlbits":0,"offwaittime":0,"ontime":1800}' from endpoint 1 with groupID 0

#

How should I format something similar to use in as a payload in my Home Assistant action?

#

MQTT Service and commandOnWithTimedOff