waltervl wrote: ↑Tuesday 12 December 2023 23:36
Ok, you should have mentioned that before that you are using the plugin...
If you used the plugin you probably would have named it Zigbee2MQTT.
Can you post a screenshot of your MQTT Auto gateway configuration page. What is written in field Type?
Oops, sorry. I used to use the plugin, looks like I'm now on auto discovery.
I have updated Zigbee2MQTT to the latest version, no change.
I have compared database entries for the buttons from Dec 1 and Dec 12, they are identical apart from the naming syntax for the action.
Example:
Code: Select all
ID HardwareID DeviceID Unit Name Used Type SubType SwitchType Favorite SignalLevel BatteryLevel nValue sValue LastUpdate Order AddjValue AddjMulti AddjValue2 AddjMulti2 StrParam1 StrParam2 LastLevel Protected CustomImage Description Options Color
Old Entry Dec 1st
1071 15 0x00124b002928afa0_action_zigbee2mqtt 129 ZigButton4 action_single 1 244 73 9 0 2 100 1 0 2023-09-10 21:05:10 1073 0.0 1.0 0.0 1.0 0 0 0
New Entry Dec 12th
1144 15 0x00124b0024ffff44_action_zigbee2mqtt 129 ZBut01 (Action)_single 1 244 73 9 0 0 100 1 0 2023-12-12 20:42:20 1144 0.0 1.0 0.0 1.0 0 0 0
I removed all the buttons from Domoticz, force deleted them from zigbee2MQTT.
Re-paired a button
It appeared in Domoticz like this:
Note that Action Double and Action Long which appeared in older versions are no longer there.
Finally, here is the Zigbee2MQTT log showing the published properties (which appear correct as there is an enum of the possible actions).
Code: Select all
MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Wireless button",
"exposes":[{"access":1,"description":"Remaining battery in %, can take up to 24 hours before reported.",
"label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},
{"access":1,"description":"Triggered action (e.g. a button click)","label":"Action","name":"action",
"property":"action","type":"enum","values":["single","double","long"]},
{"access":1,"description":"Voltage of the battery in millivolts",
"label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)",
"label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],
"model":"SNZB-01","options":[],"supports_ota":false,"vendor":"SONOFF"},"friendly_name":"0x00124b0024ffff44",
"ieee_address":"0x00124b0024ffff44","status":"successful","supported":true},"type":"device_interview"}'
Apologies for the lengthy post, trying to get all the information together in one place. I very much appreciate the attention you are giving this issue.