Multiple Outputs synchronization

I have three Philips Hue bulps (Output) in one lamp, all connected to one UI switch. When i switch on the lamps in the UI, these do not switch on synchronously, but one after the other.

Is there a way to turn on all the lights in sync?

Setup: zigbee2mqtt, mosquitto and node-red on a Raspberry Pi

They can never be exactly the same time but how have you connected the nodes? In parallel or serial?

setup01

How does it get from MQTT to the lights? If that is through zigbee2mqtt then the issue does not lie in node-red but how it gets from MQTT to the lights.

1 Like

Yes, you are right - through zigbee2mqtt and i guess this is not a node-red problem.

I checked the logs and it sends the commands with a delay of 1 sec

  zigbee2mqtt:info 4/15/2019, 1:51:08 PM Zigbee publish to device '0x001788010285e1a8', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - null
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010285e1a8', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010285e1a8', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010285e1a8', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010285e1a8', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM Zigbee publish to device '0x001788010290a0d5', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - null
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010290a0d5', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM Zigbee publish to device '0x00178801029b1f25', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - null
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010290a0d5', payload '{"state":"OFF","linkquality":84,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010290a0d5', payload '{"state":"OFF","linkquality":84,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:08 PM MQTT publish: topic 'zigbee2mqtt/0x001788010290a0d5', payload '{"state":"OFF","linkquality":84,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:09 PM MQTT publish: topic 'zigbee2mqtt/0x00178801029b1f25', payload '{"state":"OFF","linkquality":86,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:09 PM MQTT publish: topic 'zigbee2mqtt/0x00178801029b1f25', payload '{"state":"OFF","linkquality":65,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:09 PM MQTT publish: topic 'zigbee2mqtt/0x00178801029b1f25', payload '{"state":"OFF","linkquality":65,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'
  zigbee2mqtt:info 4/15/2019, 1:51:09 PM MQTT publish: topic 'zigbee2mqtt/0x00178801029b1f25', payload '{"state":"OFF","linkquality":65,"brightness":254,"color_temp":366,"color_mode":2,"color":{"x":0.457,"y":0.41}}'

I don't know about zigbee, perhaps it is inherently slow and can only do one thing at a time. I use Sonoff devices (and the many similar products) with the Tasmotta firmware, which use wifi so are effectively instantaneous.

Can't you use Delay nodes to get the timing aligned to the slowest one?

Isn't there a node-red node for controlling Phillips hue devices? If so, have you tried it? Surely without the middleware it will be much closer to synchronous?

There isnode-red-contrib-huemagic, but i want to use the devices without the vendors bridge or gateway - that's why i am using zigbee2mqtt.

The whole problem is not related to node-red - but anyway - for those who may encounter the same problem: I solved it by adding the three bulps to one group in zigbee2mqtt. All bulps now switch on and off at the same time.

"Zigbee2mqtt has support for Zigbee groups. By using Zigbee groups you can control multiple devices simultaneously with one command"