I have some IOMZB-110 devices, and I want to use the “On with timed off” ability of the devices, but I’m not yet aware of how to override the payload.
Any hint please
I have some IOMZB-110 devices, and I want to use the “On with timed off” ability of the devices, but I’m not yet aware of how to override the payload.
Any hint please
I am currently using this script with ZHA to press for 500 ms. It works without MQTT though.
sequence:
- action: zha.issue_zigbee_cluster_command
metadata: {}
data:
cluster_type: in
ieee: xx:xx:xx:xx:xx:xx:xx:xx
endpoint_id: 116
cluster_id: 6
command: 66
command_type: server
params:
on_time: 5
off_wait_time: 10
on_off_control: []
You will use the mqtt.publish service/action and send the command including your payload towards the mqtt-broker.
I figured my only one zigbee actor is capable too and did some testing with the help of @Kool, the one from @sullivan in this post and looking at Zigbee-herdsman - cluster.ts.
You’ll need to send the onWithTimedOff command (66) of the cluster genOnOff (6) including all required attributes (ontime, offwaittime, ctrlbits):
action: mqtt.publish
data:
topic: zigbee2mqtt/Schlafzimmer/set
payload: |-
{
"command": {
"cluster": 6,
"command": 66,
"payload": {
"ontime": 5,
"offwaittime": 10,
"ctrlbits": 0
}
}
}
Above action was successfully published and interpreted. You can try by removing one of the payload attributes like ontime - looking at the Zigbee2Mqtt-Logs you will then see an error as Parameter 'ontime' is missing
:
z2m: Publish 'set' 'command' to 'Schlafzimmer' failed: 'Error: ZCL command 0x1234567890/1 genOnOff.onWithTimedOff({"on_time":5,"off_wait_time":10,"ctrlbits":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Parameter 'ontime' is missing)'
Sadly I think my LED driver from 2016 doesn’t do anything with the payload (The Zigbee2Mqtt page of a similar Paulmann device as mine isn’t contained in the device list tells: “Support depends on the light firmware”). At least the command is executed as the light turns on blinking once (maybe some kind of what do you want from me?
not knowing what to do with the payload ).
So keep us informed if it works out for you