Open azh-github opened 4 years ago
so far I have done so: static void zclZigUP_OnOffCB( uint8 cmd ) ... // Turn on the light if ( cmd == COMMAND_ON ) { Relais(LIGHT_ON); LED(1); } // Turn off the light else if ( cmd == COMMAND_OFF ) { Relais(LIGHT_OFF); LED(0); } ...
But, I need an independent LED, but I’m silent about the tape :)
Send "{"led":"toggle"}" (or on/off instead of toggle) to your "set" topic.
For the WS2812 tape use {"light_color":"..."} for the "set" topic. You can use several parameter formats for that (see https://github.com/formtapez/ZigUP/blob/c14e12ebba28ea22bc18bfca1ce4d822ef75c947/zigbee-shepherd-converters/converters/toZigbee.js#L420 ). Its compatible with nodered's colorpicker.
'Error: Cluster 'genOnOff' has no command '{led:on}' ... 'Error: Cluster 'genOnOff' has no command '{led:off}' in zigbee2mqtt log :(
Cluster 'genOnOff' -- is right target?
i'm use "openHAB2" for tests
Error: Cluster 'genOnOff' has no command ' "{"led":"toggle"}"
Cluster 'genOnOff' is only used for the relais. You dont have to care about the cluster - zigbee2mqtt chooses the right one depending of the command. Maybe your version is outdated and it doesnt know ZigUp yet? Unfortunately i cannot say anything about openHAB2.
o lala! wonderwork ... :)
sh-5.0$ npm version { zigbee2mqtt: '1.8.0', npm: '6.13.4', ares: '1.15.0', brotli: '1.0.7', cldr: '36.0', icu: '65.1', llhttp: '2.0.1', modules: '79', napi: '5', nghttp2: '1.39.2', node: '13.5.0', openssl: '1.1.1d', tz: '2019c', unicode: '12.1', uv: '1.34.0', v8: '7.9.317.25-node.23', zlib: '1.2.11' }
I have the same problem. I want to expose the color picker in zigbee2mqtt by adding e.light_brightness_colorxy(), but when I use it nothing happens. The firmware doesn’t call the “MoveToColor” callback.
hope someone can help us.
So far, all my attempts to manage have not been completely successful. Where can I find out what exactly to send to the topic "mqtt", to control the LED and WS2812 tape. While I control only the relay, sending to the topic 'zigbee2mqtt/ZigUP1/set' <- ON or OFF. I see pulses on the oscilloscope at the output of turning the polarized relay on or off. It's good. But attempts to send to ".../set/led" lead to errors in zigbee2mqtt, but simply to "set" do not give a result. There is no information and can not find - how to. I ask for help. Thanks.