Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.87k stars 1.65k forks source link

Version 1.16.0 overall slow network response #4884

Closed Imaginous closed 3 years ago

Imaginous commented 3 years ago

What happened

When pressing a zigbee button or sending in MQTT command to a lamp takes about 1.5 seconds. When sending 2 commands directly after one another to turn on 2 lights. They will turn on about 1.5 - 2.0 seconds after each other.

This started since version 1.16.0. Copied back my 1.15.0 version and everything runs smoothly again.

What did you expect to happen

Thate the commands would be almost instantanious.

How to reproduce it (minimal and precise)

Upgrade to version 1.16.0 -> zigbee network becomes slow. Restore to version 1.15.0 -> zigbee network is fast again.

No devices have been added or changed between the upgrade.

Debug info

Zigbee2MQTT version: 1.16.0 Adapter hardware: Conbee II Adapter firmware version: 0x26660700 Hardware: Raspberry Pi 3

Koenkk commented 3 years ago

@chrishae has anything changed in the Conbee implementation that could cause this?

Imaginous commented 3 years ago

@Koenkk is there a possibility for you to build a 1.16.1 version with the old 1.15.0 Deconz code in it?

I can then try if that runs smoothly and maybe pinpoint the problem a bit better.

2x4ever commented 3 years ago

I can confirm that Zigbee network became much slower in 1.6.X version. I've used conbeeII adapter and light switch responses are slowed down some time up to 5-10 seconds, while in 1.5 it was around 10s of milliseconds. I thought it was due to the fact that I had a lot of devices (around 30 actually) and conbeeII adapter works with Baudrate of 38400. Then i switched the network to ZZH, repaired all devices, but nothing changed. I noticed that log files became flooded by repeated 'attrubuteReports' from the same device. It looks like it is just multiplied several times. And the more network is running the more reports are multiplied. https://pastebin.com/Rurtm4LK Same is for a dimmer action. This is for example dimmer ON action response: https://pastebin.com/RkXjYBEP

One ON action leads to network flood with attributeReports. Being repeated several times (2-3 switch presses) slows down reaction to 5-10 seconds.

Koenkk commented 3 years ago

@Imaginous if running bare metal, you can downgrade the zigbee-herdsman library (which contain the driver code) to the 1.15.0 version when executing in /opt/zigbee2mqtt npm install zigbee-herdsman@0.13.11

@2x4ever does downgrading to 1.15.0 fix your issue?

srnoth commented 3 years ago

Can confirm the same slowdown on 1.6.X with a conbee II adapter. Looking at the MQTT feed, there would be anywhere from 0.5 to several seconds delay between pressing a button, and the corresponding MQTT message showing up.

Return to 1.5.X and the response time immediately returned to normal (MQTT message appears almost immediately as a button is pressed).

Did not have a chance to do any further troubleshooting but I'd be happy to run any diagnostics that would help narrow this down.

Imaginous commented 3 years ago

@Koenkk I have done a couple of test. I run bare metal, so I have downgraded herdsman to 0.13.11 in my 1.16.0 installation.

As I can conclude, the difference must be somewhere in the herdsman code. Since the problem disappears after downgrading the herdsman code.

Note: When the button is pressed I send 2 individual MQTT commands to the 2 gang dimmer module to turn on each lamp.

BTW: is there a json command to set both states at the same time?

Here are the results of different installations.

Hybrid version: 1.16.0 with downgraded herdsman 0.13.11, reacts normal

Single press on, on the Ikea button:

Nov 08 12:00:21 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:21: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"on","battery":74,"click":"on","linkquality":5,"update":{"state":"idle"},"update_available":false}' Nov 08 12:00:22 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:22: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"OFF"}' Nov 08 12:00:22 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:22: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:00:22 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:22: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:00:22 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:22: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:00:25 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:25: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:00:25 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:00:25: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"ON","state_l2":"ON"}'

Single press off on the Ikea button:

Nov 08 12:01:11 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:01:11: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"off","battery":74,"click":"off","linkquality":5,"update":{"state":"idle"},"update_available":false}' Nov 08 12:01:11 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:01:11: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:01:11 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:01:11: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:01:12 domoticapi1 npm[24022]: Zigbee2MQTT:info 2020-11-08 12:01:12: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":14,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}'

Version: 1.16.1, reacts slow

Single press on, on the Ikea button:

Nov 08 12:52:40 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:40: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"on","battery":87,"click":"on","linkquality":200,"update":{"state":"idle"},"update_available":false}' Nov 08 12:52:41 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:41: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"OFF"}' Nov 08 12:52:41 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:41: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:42 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:42: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:42 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:42: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:45 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:45: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:45 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:45: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:45 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:45: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:46 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:46: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:46 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:46: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:52:46 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:52:46: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"ON","state_l2":"ON"}'

Single press off, on the Ikea button:

'Nov 08 12:53:29 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:53:29: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"off","battery":87,"click":"off","linkquality":200,"update":{"state":"idle"},"update_available":false}' Nov 08 12:53:30 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:53:30: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:53:30 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:53:30: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:53:30 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:53:30: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":200,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}' Nov 08 12:53:31 domoticapi1 npm[31538]: Zigbee2MQTT:info 2020-11-08 12:53:31: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}''

Version: 1.16.0, reacts slow

Single press on, on the Ikea button:

'Nov 08 12:47:07 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:07: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"on","battery":87,"click":"on","linkquality":199,"update":{"state":"idle"},"update_available":false}' Nov 08 12:47:08 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:08: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"ON","state_l2":"OFF"}' Nov 08 12:47:08 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:08: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:08 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:08: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:09 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:09: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:12 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:12: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:12 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:12: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:12 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:12: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:12 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:12: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:13 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:13: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:47:13 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:13: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}''

Single press off, on the Ikea button:

'Nov 08 12:47:54 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:54: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"off","battery":87,"click":"off","linkquality":199,"update":{"state":"idle"},"update_available":false}' Nov 08 12:47:54 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:54: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:47:55 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:55: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:47:55 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:55: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}' Nov 08 12:47:55 domoticapi1 npm[31093]: Zigbee2MQTT:info 2020-11-08 12:47:55: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":198,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}''

Version: 1.15.0, reacts normal

Single press on, on the Ikea button:

'Nov 08 12:40:57 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:40:57: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"on","battery":87,"click":"on","linkquality":199,"update":{"state":"idle"},"update_available":false}' Nov 08 12:40:58 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:40:58: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":0,"state":"OFF","state_l1":"ON","state_l2":"OFF"}' Nov 08 12:40:58 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:40:58: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":0,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:40:58 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:40:58: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":0,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:40:58 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:40:58: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":0,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:41:01 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:01: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}' Nov 08 12:41:01 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:01: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"ON","state_l2":"ON"}''

Single press off, on the Ikea button:

'Nov 08 12:41:35 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:35: MQTT publish: topic 'zigbee2mqtt/Alarm_Knop_IKEA', payload '{"action":"off","battery":87,"click":"off","linkquality":199,"update":{"state":"idle"},"update_available":false}' Nov 08 12:41:36 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:36: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:41:36 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:36: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"OFF","state_l2":"ON"}' Nov 08 12:41:36 domoticapi1 npm[30463]: Zigbee2MQTT:info 2020-11-08 12:41:36: MQTT publish: topic 'zigbee2mqtt/Slaapkamer1_Verlichting', payload '{"brightness":0,"brightness_l1":254,"brightness_l2":254,"linkquality":199,"state":"OFF","state_l1":"OFF","state_l2":"OFF"}''

Koenkk commented 3 years ago

@chrishae there seems to be some regression in performance for the Conbee II in herdsman 0.13.11 - 0.13.26, can you investigate this?

Imaginous commented 3 years ago

@Koenkk I have found another strange behavior, I don't think it is directly related. When I send 2 MQTT commands to turn on each light separately they turn on directly after one another with version 1.15.0.

However when I send: { "state_l1": "on", "state_l2": "on" }

So turn both lights on in one command, there is the same 1-1.5 second delay between turning on each lamp as in version 1.16.0, but in this case it also happens in version 1.15.0.

Don't know if it is related, but maybe it is.

Later this week, if I find some time, I will try another Raspberry Pi with a Slaesh CC2652 Stick. To see if it behaves differently.

ChrisHae commented 3 years ago

I have slowed down data transmit a bit to improve stability when sending many commands at once (Some devices did not respond when sending many requests to fast). I could tweak the times to make it a bit faster again. Delay should be around 1sec. 3 or more seconds would indicate a very busy network I think.

You could also use group commands when controlling many lights at once. This should be much faster.

@Imaginous How do I use that command:{ "state_l1": "on", "state_l2": "on" } to control two lights with one command. I would like to test this. How is the exact syntax and topic? in z2mqtt doc I only found this: zigbee2mqtt/[FRIENDLY_NAME]/set

Imaginous commented 3 years ago

@ChrisHae would it be possible to make the delay a parameter in the settings of zigbee2mqtt?

As a programmer I think delays are best avoided. I don't know if there is a way to check if a command has been send?

If you can point me to the source code, I can have a look at it.

I send commands directly after one another and never experienced any problems. On the other hand the zigbee protocol should take care of resends.

The command is send to a single zigbee device with 2 lamps. I send it to: zigbee2mqtt/[FRIENDLY_NAME]/set And a json payload of: { "state_l1": "on", "state_l2": "on" }

Imaginous commented 3 years ago

@Koenkk Tonight I have tested V1.16.1 with a Slaesh stick. Then everything works perfectly normal. So it is clearly the timing adjustment made by @ChrisHae.

I don't want to "bash" anyone, I'm just wanting to help and improve the great work you guys do!

ChrisHae commented 3 years ago

There were Issues of user who sent many requests (about 10 -20) nearly at the same time (https://github.com/Koenkk/zigbee2mqtt/issues/4215) . Some devices did not respond or the messages did not arrived there. I think it is best to use group commands then but never the less I think there should be some time between the messages so that the devices and the coordinator can better handle it.

So did not hard coded a delay between the sending of the messages but instead the coordinator waited until a data request got confirmed before sending the next one. This usualy took about 800ms.

Now I have added a parameter that defines the delay between two requests. I have halved the time and it still works pretty stable. You could test it if the speed is acceptable now. It is in the newest herdsman commit.

It would be also possible to let the user change this parameter in the configuration if @koenkk would let me add this parameter to the configuration.yaml. Let's call it packet_spacing or send_delay or so.

srnoth commented 3 years ago

From an end user perspective 800ms is a massive delay. E.g. I did not get full buy-in from the wife until I changed "multiple_press_timeout" on the Philips Hue remotes from 250ms to 0.

250ms meant the difference between walking into a room, turning on a light and it almost immediately turning on, vs. pressing and consciously waiting for the light to turn on.

I agree that a user configurable value would make more sense.

2x4ever commented 3 years ago

@Imaginous if running bare metal, you can downgrade the zigbee-herdsman library (which contain the driver code) to the 1.15.0 version when executing in /opt/zigbee2mqtt npm install zigbee-herdsman@0.13.11

@2x4ever does downgrading to 1.15.0 fix your issue?

Sorry for the long answer. Was looking for a way to downgrade the hass.io add-on version. Switched to bare metal version, downgraded to 1.15.0 and problem disappeared. So I don't think it is only conbeeii problem, because I switched to zzh stick. I think that reduced conbee transmit rate is only making it worse (triggers it earler).

ChrisHae commented 3 years ago

@2x4ever I'm speaking about a delay from about 400ms to 1s. Some User reported several seconds. This should be another issue here. Also pressing a button on a zigbee remote should not be affected by this. Remotes are bound and communicate directly to the lights.

srnoth commented 3 years ago

@ChrisHae not all use cases allow remotes to be bound directly to lights. Previous to this change, using a remote to trigger automations in HASS was still pretty snappy, especially with "multiple_press_timeout" set to 0ms.

Imaginous commented 3 years ago

@ChrisHae My Ikea button does not communicate directly to the lights. The button press is caught by my software and then the 2 commands are send to the lights. I would say that the delay with the 1.16.0 version might be 1 second. I did not time it.

How can I clone / add only the latest Herdsman version into the existing version? Do I just copy the git files to the /opt/zigbee2mqtt folder and re-run npm ci?

ChrisHae commented 3 years ago

@Imaginous I can't say if this also works. I cloned the zigbee-herdsman repository to my raspberry and added the path to /opt/zigbee2mqtt/lib/zigbee.js const ZigbeeHerdsman = require('/home/pi/zigbee-herdsman');

Or you wait until Koenkk merged this into the newest version of zigbee2mqtt

Koenkk commented 3 years ago

@ChrisHae I don't see any new commits to https://github.com/Koenkk/zigbee-herdsman/commits/master ?

ChrisHae commented 3 years ago

@Koenkk Oh sorry forgot to push. Now it's online.

Koenkk commented 3 years ago

It's in the latest dev now.

@ChrisHae next time you make a change to zigbee-herdsman, you can trigger a new release by going to https://github.com/Koenkk/zigbee-herdsman/actions?query=workflow%3A%22Create+new+release%22 , press "Run workflow" -> press "Run workflow" (you can leave Release type patch as is). This will automatically create a new release and makes a PR to Zigbee2MQTT to update zigbee-herdsman (which I will get a notification for).

juslex commented 3 years ago

I recently left the zzh and returned to conbee 2, however, as I was used to the delay of the zzh, when I returned to conbee 2, I noticed some delay of this in relation to the zzh. What's the reason for that? (Ps. I'm running the herdsman version to 0.13.11 with the conbee.

Imaginous commented 3 years ago

@Koenkk, @ChrisHae

Today I installed the latest dev version of 1.16.1. If I understood correctly this should contain the latest modifications of Chris.

git checkout HEAD -- npm-shrinkwrap.json git fetch git checkout dev # Change 'dev' to 'master' to switch back to the release version git pull npm ci

This version has still got the slow response with the Conbee II stick. Maybe I did something wrong, please let me know if so.

juslex commented 3 years ago

After my previous post, To fix the home assistant bug, I updated yesterday the dev version, which removed the herdsman version to 0.13.11. And I noticed that the slowness continues. I went back to the herdsman version to 0.13.11.

srnoth commented 3 years ago

As long as there are still delays added (even if they are halved) there will be a noticeable slowness. Even the adjustable 250ms delay on the Hue Dimmer Remote was noticeable.

@ChrisHae @Koenkk do you think we will be able to get a user-customizable option to remove the delays added with this fix? It seems a pity to negatively impact usability for use cases that benefit from response time over reliability, just to fix the use case where someone wants to send commands to many zigbee devices simultaneously. Is there a reason they can't use group messaging in that scenario?

ChrisHae commented 3 years ago

@Imaginous The version 1.16.1 is released 16 days ago, so I think it does not contain the new code. @juslex how bis is the delay of that you talk? about 1 second, or severall seconds?

I think it would be nice if I could add a parameter to the configuration.yaml. Where the user could chosse a delay between 10 to 1000ms. it could default to 200 if not specified. @Koenkk Is it possible for me to do that? in my driver.ts of deconz adapter there is already a variable for it.

Koenkk commented 3 years ago

@ChrisHae done, the delay is now passed (https://github.com/Koenkk/zigbee-herdsman/blob/e1eaaf0c20418463ab531cc929bf12dbbd8e66f4/src/adapter/deconz/adapter/deconzAdapter.ts#L52). You can specify by adding to configuration.yaml:

advanced:
  adapter_delay: 200

Note users: this will not work until @ChrisHae starts using the delay in the implementation.

juslex commented 3 years ago

@Imaginous The version 1.16.1 is released 16 days ago, so I think it does not contain the new code. @juslex how bis is the delay of that you talk? about 1 second, or severall seconds?

I think it would be nice if I could add a parameter to the configuration.yaml. Where the user could chosse a delay between 10 to 1000ms. it could default to 200 if not specified. @Koenkk Is it possible for me to do that? in my driver.ts of deconz adapter there is already a variable for it.

Dear @ChrisHae

I was using zzh instead of conbee II, however, I had several problems with it after some time of use. So I decided to go back to the conbee II and started to notice a longer delay - around 800 ms on most cases and sometimes 1s - when compared to zzh when executing this automation the delay is around 200ms.

Automation virtual three-away using zemismart HGZB-42 and HGZB-43 switches:

ChrisHae commented 3 years ago

@koenkk thanks, I will implement this as soon as possible. Let's see if this helps to get the desired behavior for most users.

ChrisHae commented 3 years ago

Ok, the parameter is implemented. add

advanced:
  adapter_delay: 200

to your configuration.yaml it can take values from 50 to 1200 (It is the delay in ms). If you don't add the parameter the default value is 300ms.

Note that you need the latest dev-branch of zigbee2mqtt. I triggered a new release for zigbee-herdsman so I think it will be soon in z2mqtt-dev.

Please share your experiences

Koenkk commented 3 years ago

@ChrisHae merged so it is in dev now, (for Home Assistant edge wait 1 hour)

Imaginous commented 3 years ago

@ChrisHae is there a specific reason you chose 50 as minimum and not 0 or 1?

iAcki commented 3 years ago

Hi @Koenkk && @ChrisHae,

I've pulled the dev branch and now it's really snappy again compared to the behavior before. Thank you very much for fixing it so fast. :)

bkupidura commented 3 years ago

So i also switched to latest-dev container, set adapter_delay: 50 under advanced - but network is still slower than on 1.15(?). This is especially visible when i turn on HA group with multiple (3) zigbee bulbs.

Previously, all bulbs were turned on in same time (or at least my eye was not able to catch difference), and currently i can easy see that bulbs are turned on in sequence.

Is this possible that adapter_delay is setting just one of multiple (used to send commands to nodes) delays?

EDIT: Im almost sure that if i would revert https://github.com/Koenkk/zigbee-herdsman/commit/51184bbf836a09eccb4925c52a330a5009c86b58 everything will be back to normal.

Imaginous commented 3 years ago

As @bkupidura mentioned, I also pulled the latest dev version. When adding adapter_delay: 50 to the configuration.yaml and restarting zigbee2mqtt it is a bit faster, but still way slower then it was before.

@ChrisHae , what did you change? I would like to review the changes, as I don't understand what is causing the delay. If you just changed the delay time then it would make sense that if you put back the old value (or let us put in the value via the new property) it is as fast as it was before. If you have added extra delay code, it might be an idea to encase those in an IF statement. If the configuration property = 0, we ignore the new delays.

Also it seems logical to me that the delay value is only restricted by it's type. Let's say a positive 16bits integer.

As said before, I just want to help. I love the work you have done... it's just that this is a regression for some people, so if we can make it as snappy as it was again via a parameter both sides would be happy.

ChrisHae commented 3 years ago

Thx for your feedback @all @Imaginous @bkupidura wait for new z2mqtt release and then try a delay value of 0 in the configuration.yaml It is a speedup for nearly every internal queues and should be as fast as before.

Imaginous commented 3 years ago

@Koenkk, @ChrisHae

I have test 1.16.2 with adapter_delay: 0 in the advanced section of the config. It is still slow. I have a feeling that the adapter_delay setting is not working at all.

juslex commented 3 years ago

Same situation here

bkupidura commented 3 years ago

Have same feelings, this is why 12d ago i was asking if this delay is controlling all delays used to send commands.

srnoth commented 3 years ago

Was this change included in the new 1.16.2.X releases? Didn't see anything mentioned in the release notes.

Koenkk commented 3 years ago

I've added some extra debug logging to check if it is working correctly. Please provide me the herdsman debug logging when starting z2m.

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

bkupidura commented 3 years ago

@Koenkk

> zigbee2mqtt@1.16.2-dev start /app
> node index.js

ESC[32mZigbee2MQTT:info ESC[39m 2020-12-04 22:53:55: Logging to console only'
ESC[32mZigbee2MQTT:info ESC[39m 2020-12-04 22:53:55: Starting Zigbee2MQTT version 1.16.2-dev (commit #47d26c8)
ESC[32mZigbee2MQTT:info ESC[39m 2020-12-04 22:53:55: Starting zigbee-herdsman (0.13.39)
2020-12-04T21:53:55.335Z zigbee-herdsman:deconz:driver Set delay to 25
CREATED DECONZ ADAPTER
2020-12-04T21:53:55.337Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[<Key>],"panID":6754,"extendedPanID":[<ePanId>],"channelList":[25]},"serialPort":{"baudRate":38400,"path":"/dev/ttyACM0","adapter":"deconz"},"databasePath":"/app/data/database.db","databaseBackupPath":"/app/data/database.db.backup","backupPath":"/app/data/coordinator_backup.json","adapter":{"concurrent":null,"delay":25}}'
2020-12-04T21:53:55.339Z zigbee-herdsman:deconz:driver Opening with /dev/ttyACM0
2020-12-04T21:53:55.342Z zigbee-herdsman:deconz:driver Serialport opened
2020-12-04T21:53:55.342Z zigbee-herdsman:controller:log Started with result 'resumed'
2020-12-04T21:53:55.342Z zigbee-herdsman:controller:log Injected database: true, adapter: true
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-04T21:53:55.344Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:53:55.437Z zigbee-herdsman:deconz:driver send read parameter request from queue. seqNr: 1 paramId: 1
2020-12-04T21:53:55.440Z zigbee-herdsman:deconz:driver query aps data indication

Do you need anything more?

I dont see any difference between delay 0 and 25.

EDIT: Logs from turning on HA group of 3 Ikea bulbs:

2020-12-04T21:59:13.754Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe023c7b/1 genOnOff.on({},{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T21:59:13.755Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T21:59:13.755Z zigbee-herdsman:deconz:adapter {}
2020-12-04T21:59:13.756Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97298d/1 genOnOff.on({},{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T21:59:13.756Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T21:59:13.756Z zigbee-herdsman:deconz:adapter {}
2020-12-04T21:59:13.757Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97291b/1 genOnOff.on({},{"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T21:59:13.757Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T21:59:13.758Z zigbee-herdsman:deconz:adapter {}
2020-12-04T21:59:13.846Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xe765 EP:1 SeqNr. 201 request id: 42
2020-12-04T21:59:13.848Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 42 status: 0
2020-12-04T21:59:13.848Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.855Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2020-12-04T21:59:13.855Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.898Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T21:59:13.929Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T21:59:13.930Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.945Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x8d1e EP:1 SeqNr. 202 request id: 43
2020-12-04T21:59:13.947Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 43 status: 0
2020-12-04T21:59:13.947Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.956Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T21:59:13.956Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.979Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T21:59:13.979Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:13.999Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 204
2020-12-04T21:59:13.999Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T21:59:14.001Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xe765 request id: 42 confirm status: 0
2020-12-04T21:59:14.002Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.002Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 6
2020-12-04T21:59:14.002Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T21:59:14.048Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 44 status: 0
2020-12-04T21:59:14.048Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.055Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T21:59:14.055Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.093Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T21:59:14.093Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.098Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 205
2020-12-04T21:59:14.099Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T21:59:14.099Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x8d1e request id: 43 confirm status: 0
2020-12-04T21:59:14.099Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.099Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 7
2020-12-04T21:59:14.099Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T21:59:14.199Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 206
2020-12-04T21:59:14.205Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T21:59:14.206Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 206 srcAddr: 0xe765 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T21:59:14.206Z zigbee-herdsman:deconz:frameParser response payload: 8,6,11,1,0
2020-12-04T21:59:14.207Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 6
2020-12-04T21:59:14.209Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":6,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":59237,"endpoint":1,"linkquality":217,"groupID":null}'
2020-12-04T21:59:14.209Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.209Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 22:59:14: MQTT publish: topic 'z2ml0/light_kitchen_center_1', payload '{"brightness":254,"last_seen":1607119154209,"linkquality":217,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T21:59:14.299Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 207
2020-12-04T21:59:14.301Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x7300 request id: 44 confirm status: 0
2020-12-04T21:59:14.301Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.302Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 8
2020-12-04T21:59:14.302Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T21:59:14.400Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 208
2020-12-04T21:59:14.401Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 208 srcAddr: 0x8d1e destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T21:59:14.401Z zigbee-herdsman:deconz:frameParser response payload: 8,7,11,1,0
2020-12-04T21:59:14.402Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 7
2020-12-04T21:59:14.402Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":7,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":36126,"endpoint":1,"linkquality":217,"groupID":null}'
2020-12-04T21:59:14.403Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.403Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 22:59:14: MQTT publish: topic 'z2ml0/light_kitchen_center_3', payload '{"brightness":254,"last_seen":1607119154403,"linkquality":217,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T21:59:14.406Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T21:59:14.499Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 209
2020-12-04T21:59:14.501Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 209 status: 5
2020-12-04T21:59:14.599Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 210
2020-12-04T21:59:14.601Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 210 srcAddr: 0x7300 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T21:59:14.601Z zigbee-herdsman:deconz:frameParser response payload: 8,8,11,1,0
2020-12-04T21:59:14.602Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 8
2020-12-04T21:59:14.603Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":8,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":29440,"endpoint":1,"linkquality":217,"groupID":null}'
2020-12-04T21:59:14.603Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T21:59:14.603Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 22:59:14: MQTT publish: topic 'z2ml0/light_kitchen_center_2', payload '{"brightness":254,"last_seen":1607119154603,"linkquality":217,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T21:59:14.699Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 211
2020-12-04T21:59:14.701Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr.: 211 status: 5
2020-12-04T21:59:15.432Z zigbee-herdsman:deconz:driver send read device state from queue. seqNr: 212
2020-12-04T21:59:15.435Z zigbee-herdsman:deconz:frameParser device state: 10100010
2020-12-04T21:59:15.435Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1

EDIT2: Logs from turning on same group with delay=0

2020-12-04T22:42:52.005Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97298d/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T22:42:52.006Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T22:42:52.006Z zigbee-herdsman:deconz:adapter {}
2020-12-04T22:42:52.007Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe023c7b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T22:42:52.007Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T22:42:52.007Z zigbee-herdsman:deconz:adapter {}
2020-12-04T22:42:52.009Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97291b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-04T22:42:52.009Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-04T22:42:52.009Z zigbee-herdsman:deconz:adapter {}
2020-12-04T22:42:52.048Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x8d1e EP:1 SeqNr. 39 request id: 7
2020-12-04T22:42:52.050Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 7 status: 0
2020-12-04T22:42:52.050Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.059Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2020-12-04T22:42:52.059Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.123Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T22:42:52.123Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.147Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xe765 EP:1 SeqNr. 40 request id: 8
2020-12-04T22:42:52.149Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.150Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 8 status: 0
2020-12-04T22:42:52.150Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.159Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T22:42:52.159Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.233Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T22:42:52.233Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.247Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x7300 EP:1 SeqNr. 41 request id: 9
2020-12-04T22:42:52.248Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 42
2020-12-04T22:42:52.249Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.250Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 9 status: 0
2020-12-04T22:42:52.250Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.259Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T22:42:52.259Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.260Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x8d1e request id: 7 confirm status: 0
2020-12-04T22:42:52.260Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.260Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 7
2020-12-04T22:42:52.260Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T22:42:52.291Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-04T22:42:52.291Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.349Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 43
2020-12-04T22:42:52.350Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.351Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xe765 request id: 8 confirm status: 0
2020-12-04T22:42:52.351Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.352Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 8
2020-12-04T22:42:52.352Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T22:42:52.448Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 44
2020-12-04T22:42:52.450Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.450Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.451Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 44 srcAddr: 0x8d1e destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T22:42:52.451Z zigbee-herdsman:deconz:frameParser response payload: 8,7,11,1,0
2020-12-04T22:42:52.452Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 7
2020-12-04T22:42:52.453Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":7,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":36126,"endpoint":1,"linkquality":219,"groupID":null}'
2020-12-04T22:42:52.453Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.454Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 23:42:52: MQTT publish: topic 'z2ml0/light_kitchen_center_3', payload '{"brightness":254,"last_seen":1607121772453,"linkquality":219,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T22:42:52.548Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 45
2020-12-04T22:42:52.551Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-04T22:42:52.555Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x7300 request id: 9 confirm status: 0
2020-12-04T22:42:52.555Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.555Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 9
2020-12-04T22:42:52.555Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T22:42:52.648Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 46
2020-12-04T22:42:52.650Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 46 srcAddr: 0xe765 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T22:42:52.651Z zigbee-herdsman:deconz:frameParser response payload: 8,8,11,1,0
2020-12-04T22:42:52.651Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 8
2020-12-04T22:42:52.652Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":8,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":59237,"endpoint":1,"linkquality":219,"groupID":null}'
2020-12-04T22:42:52.652Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.653Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 23:42:52: MQTT publish: topic 'z2ml0/light_kitchen_center_1', payload '{"brightness":254,"last_seen":1607121772652,"linkquality":219,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T22:42:52.656Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-04T22:42:52.748Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 47
2020-12-04T22:42:52.751Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 47 status: 5
2020-12-04T22:42:52.849Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 48
2020-12-04T22:42:52.851Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 48 status: 5
2020-12-04T22:42:52.950Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 49
2020-12-04T22:42:52.952Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 49 srcAddr: 0x7300 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-04T22:42:52.953Z zigbee-herdsman:deconz:frameParser response payload: 8,9,11,1,0
2020-12-04T22:42:52.953Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 9
2020-12-04T22:42:52.954Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":9,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":29440,"endpoint":1,"linkquality":219,"groupID":null}'
2020-12-04T22:42:52.954Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-04T22:42:52.955Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-04 23:42:52: MQTT publish: topic 'z2ml0/light_kitchen_center_2', payload '{"brightness":254,"last_seen":1607121772954,"linkquality":219,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-04T22:42:53.050Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 50
2020-12-04T22:42:53.051Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr.: 50 status: 5
Koenkk commented 3 years ago

@bkupidura I don't understand why 0 is not working yet, what is logged when you set it to 1?

bkupidura commented 3 years ago

Start log with delay=1:

Zigbee2MQTT:info  2020-12-06 19:36:05: Logging to console only'
Zigbee2MQTT:info  2020-12-06 19:36:05: Starting Zigbee2MQTT version 1.16.2-dev (commit #47d26c8)
Zigbee2MQTT:info  2020-12-06 19:36:05: Starting zigbee-herdsman (0.13.39)
2020-12-06T18:36:05.795Z zigbee-herdsman:deconz:driver Set delay to 1 CREATED DECONZ ADAPTER
2020-12-06T18:36:05.796Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[Key],"panID":6754,"extendedPanID":[extendedPanID],"channelList":[25]},"serialPort":{"baudRate":38400,"path":"/dev/ttyACM0","adapter":"deconz"},"databasePath":"/app/data/database.db","databaseBackupPath":"/app/data/database.db.backup","backupPath":"/app/data/coordinator_backup.json","adapter":{"concurrent":null,"delay":1}}'
2020-12-06T18:36:05.798Z zigbee-herdsman:deconz:driver Opening with /dev/ttyACM0
2020-12-06T18:36:05.801Z zigbee-herdsman:deconz:driver Serialport opened
2020-12-06T18:36:05.802Z zigbee-herdsman:controller:log Started with result 'resumed' 
2020-12-06T18:36:05.802Z zigbee-herdsman:controller:log Injected database: true, adapter: true
2020-12-06T18:36:05.803Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-06T18:36:05.803Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:36:05.803Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-06T18:36:05.804Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:36:05.804Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101010
2020-12-06T18:36:05.804Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:36:05.897Z zigbee-herdsman:deconz:driver send read parameter request from queue. seqNr: 1 paramId: 1
2020-12-06T18:36:05.901Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-06T18:36:05.903Z zigbee-herdsman:deconz:frameParser MAC: 0x00212effff054b79 
2020-12-06T18:36:05.997Z zigbee-herdsman:deconz:driver send read parameter request from queue. seqNr: 3 paramId: 7
2020-12-06T18:36:06.000Z zigbee-herdsman:deconz:frameParser NWKADDR: 0
Zigbee2MQTT:info  2020-12-06 19:36:06: zigbee-herdsman started

Logs from turning on group with delay=1:

2020-12-06T18:39:22.602Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe023c7b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T18:39:22.602Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T18:39:22.602Z zigbee-herdsman:deconz:adapter {}
2020-12-06T18:39:22.603Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97291b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T18:39:22.603Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T18:39:22.603Z zigbee-herdsman:deconz:adapter {}
2020-12-06T18:39:22.604Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97298d/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T18:39:22.604Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T18:39:22.604Z zigbee-herdsman:deconz:adapter {}
2020-12-06T18:39:22.621Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xe765 EP:1 SeqNr. 145 request id: 96
2020-12-06T18:39:22.622Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 96 status: 0
2020-12-06T18:39:22.622Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.631Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2020-12-06T18:39:22.632Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.668Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T18:39:22.668Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.722Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x7300 EP:1 SeqNr. 146 request id: 97
2020-12-06T18:39:22.723Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 97 status: 0
2020-12-06T18:39:22.723Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.725Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-06T18:39:22.733Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T18:39:22.733Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.756Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T18:39:22.756Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.821Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x8d1e EP:1 SeqNr. 147 request id: 98
2020-12-06T18:39:22.822Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 148
2020-12-06T18:39:22.824Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 98 status: 0
2020-12-06T18:39:22.825Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.825Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-06T18:39:22.832Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T18:39:22.832Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.832Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xe765 request id: 96 confirm status: 0
2020-12-06T18:39:22.832Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.833Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 74
2020-12-06T18:39:22.833Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-06T18:39:22.863Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T18:39:22.863Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.922Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 149
2020-12-06T18:39:22.924Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x7300 request id: 97 confirm status: 0
2020-12-06T18:39:22.925Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:22.925Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 75
2020-12-06T18:39:22.925Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-06T18:39:22.925Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-06T18:39:23.022Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 150
2020-12-06T18:39:23.023Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 150 srcAddr: 0xe765 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T18:39:23.023Z zigbee-herdsman:deconz:frameParser response payload: 8,74,11,1,0
2020-12-06T18:39:23.024Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 74
2020-12-06T18:39:23.024Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":74,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":59237,"endpoint":1,"linkquality":130,"groupID":null}'
2020-12-06T18:39:23.025Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:23.025Z zigbee-herdsman:deconz:adapter response received
Zigbee2MQTT:info
2020-12-06 19:39:23: MQTT publish: topic 'z2ml0/light_kitchen_center_1', payload '{"brightness":254,"last_seen":1607279963024,"linkquality":130,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-06T18:39:23.027Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-06T18:39:23.123Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 151
2020-12-06T18:39:23.125Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 151 srcAddr: 0x7300 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T18:39:23.125Z zigbee-herdsman:deconz:frameParser response payload: 8,75,11,1,0
2020-12-06T18:39:23.126Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 75
2020-12-06T18:39:23.126Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":75,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":29440,"endpoint":1,"linkquality":130,"groupID":null}'
2020-12-06T18:39:23.126Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:23.127Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-06 19:39:23: MQTT publish: topic 'z2ml0/light_kitchen_center_2', payload '{"brightness":254,"last_seen":1607279963126,"linkquality":130,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-06T18:39:23.129Z zigbee-herdsman:deconz:driver query aps data confirm
2020-12-06T18:39:23.222Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 152
2020-12-06T18:39:23.224Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x8d1e request id: 98 confirm status: 0
2020-12-06T18:39:23.224Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:23.224Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 76
2020-12-06T18:39:23.224Z zigbee-herdsman:deconz:driver query aps data indication
2020-12-06T18:39:23.322Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 153
2020-12-06T18:39:23.324Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 153 status: 5
2020-12-06T18:39:23.422Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 154
2020-12-06T18:39:23.424Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 154 status: 5
2020-12-06T18:39:23.522Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 155
2020-12-06T18:39:23.524Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 155 srcAddr: 0x8d1e destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T18:39:23.525Z zigbee-herdsman:deconz:frameParser response payload: 8,76,11,1,0
2020-12-06T18:39:23.525Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 76
2020-12-06T18:39:23.526Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":76,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":36126,"endpoint":1,"linkquality":130,"groupID":null}'
2020-12-06T18:39:23.526Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T18:39:23.526Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-06 19:39:23: MQTT publish: topic 'z2ml0/light_kitchen_center_3', payload '{"brightness":254,"last_seen":1607279963526,"linkquality":130,"state":"ON","update":{"state":"idle"},"update_available":false}'
Koenkk commented 3 years ago

@bkupidura looks good, so with 1 you still have delays?

bkupidura commented 3 years ago

Yes, delays are still here - its especially visible with this group, as those are bulbs in single "lamp". But based on log timestamps: 2020-12-06T18:39:23.025Z Light1 turned on 2020-12-06T18:39:23.127Z Light2 turned on 2020-12-06T18:39:23.526Z Light3 turned on

Its ~500ms delay (not 1ms as in config) - and turning on 3 lights in 0.5s is definitely received by human eye as "in sequence" ;)

EDIT. I got that in config, we are setting send delay and not "end result" (lights turned on) delay. But in 1.15.X it was better.

EDIT2. To be sure that im not crazy :) i switched back to 1.15.0, here are logs:

2020-12-06T20:28:11.561Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe023c7b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcE
ndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.561Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.561Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.563Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97298d/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.563Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.563Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.564Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97291b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.564Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.564Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.599Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xe765 EP:1 SeqNr. 61 request id: 56
2020-12-06T20:28:11.601Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 56 status: 0
2020-12-06T20:28:11.602Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.610Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2020-12-06T20:28:11.610Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.639Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.639Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.649Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x8d1e EP:1 SeqNr. 62 request id: 57
2020-12-06T20:28:11.651Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 57 status: 0
2020-12-06T20:28:11.652Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.660Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.660Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.699Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x7300 EP:1 SeqNr. 63 request id: 58
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 58 status: 0
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.718Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.718Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.749Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 64
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xe765 request id: 56 confirm status: 0
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 32
2020-12-06T20:28:11.769Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.769Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.799Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 65
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x8d1e request id: 57 confirm status: 0
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 33
2020-12-06T20:28:11.849Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 66
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x7300 request id: 58 confirm status: 0
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 34
2020-12-06T20:28:11.899Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 67
2020-12-06T20:28:11.901Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 67 status: 5
2020-12-06T20:28:11.949Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 68
2020-12-06T20:28:11.951Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 68 status: 52020-12-06T20:28:11.561Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe023c7b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcE
ndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.561Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.561Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.563Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97298d/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.563Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.563Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.564Z zigbee-herdsman:controller:endpoint Command 0xec1bbdfffe97291b/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint"
:null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null})
2020-12-06T20:28:11.564Z zigbee-herdsman:deconz:adapter zclFrame.payload:
2020-12-06T20:28:11.564Z zigbee-herdsman:deconz:adapter {}
2020-12-06T20:28:11.599Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0xe765 EP:1 SeqNr. 61 request id: 56
2020-12-06T20:28:11.601Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 56 status: 0
2020-12-06T20:28:11.602Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.610Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10100110
2020-12-06T20:28:11.610Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.639Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.639Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.649Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x8d1e EP:1 SeqNr. 62 request id: 57
2020-12-06T20:28:11.651Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 57 status: 0
2020-12-06T20:28:11.652Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.660Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.660Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.699Z zigbee-herdsman:deconz:driver DATA_REQUEST - destAddr: 0x7300 EP:1 SeqNr. 63 request id: 58
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:frameParser DATA_REQUEST RESPONSE - request id: 58 status: 0
2020-12-06T20:28:11.708Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.718Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.718Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.749Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 64
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0xe765 request id: 56 confirm status: 0
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.752Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 32
2020-12-06T20:28:11.769Z zigbee-herdsman:deconz:frameParser DEVICE_STATE changed: 10101110
2020-12-06T20:28:11.769Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.799Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 65
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x8d1e request id: 57 confirm status: 0
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 1 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.802Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 33
2020-12-06T20:28:11.849Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 66
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - destAddr: 0x7300 request id: 58 confirm status: 0
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:11.852Z zigbee-herdsman:deconz:adapter sendZclFrameToEndpoint - message send with transSeq Nr.: 34
2020-12-06T20:28:11.899Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 67
2020-12-06T20:28:11.901Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 67 status: 5
2020-12-06T20:28:11.949Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 68
2020-12-06T20:28:11.951Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 68 status: 5
2020-12-06T20:28:11.999Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 69
2020-12-06T20:28:12.002Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 69 status: 5
2020-12-06T20:28:12.050Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 70
2020-12-06T20:28:12.052Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 70 status: 5
2020-12-06T20:28:12.101Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 71
2020-12-06T20:28:12.102Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 71 status: 5
2020-12-06T20:28:12.152Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 72
2020-12-06T20:28:12.154Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 72 status: 5
2020-12-06T20:28:12.202Z zigbee-herdsman:deconz:driver DATA_CONFIRM - sending data state request - SeqNr. 73
2020-12-06T20:28:12.203Z zigbee-herdsman:deconz:frameParser DATA_CONFIRM RESPONSE - seqNr.: 73 status: 5
2020-12-06T20:28:12.252Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 74
2020-12-06T20:28:12.255Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 74 srcAddr: 0xe765 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T20:28:12.255Z zigbee-herdsman:deconz:frameParser response payload: 8,32,11,1,0
2020-12-06T20:28:12.255Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 32
2020-12-06T20:28:12.256Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":32,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":59237,"endpoint":1,"linkquality":145,"groupID":null}'
2020-12-06T20:28:12.256Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:12.257Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-06 21:28:12: MQTT publish: topic 'z2ml0/light_kitchen_center_1', payload '{"brightness":254,"last_seen":1607286492256,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-06T20:28:12.302Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 75
2020-12-06T20:28:12.303Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 75 srcAddr: 0x8d1e destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T20:28:12.303Z zigbee-herdsman:deconz:frameParser response payload: 8,33,11,1,0
2020-12-06T20:28:12.304Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 33
2020-12-06T20:28:12.304Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":33,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":36126,"endpoint":1,"linkquality":145,"groupID":null}'
2020-12-06T20:28:12.304Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:12.305Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-06 21:28:12: MQTT publish: topic 'z2ml0/light_kitchen_center_3', payload '{"brightness":254,"last_seen":1607286492304,"state":"ON","update":{"state":"idle"},"update_available":false}'
2020-12-06T20:28:12.352Z zigbee-herdsman:deconz:driver DATA_INDICATION - sending read data request - SeqNr. 76
2020-12-06T20:28:12.358Z zigbee-herdsman:deconz:frameParser DATA_INDICATION RESPONSE - seqNr. 76 srcAddr: 0x7300 destAddr: 0x0 profile id: 0x104 cluster id: 0x6
2020-12-06T20:28:12.358Z zigbee-herdsman:deconz:frameParser response payload: 8,34,11,1,0
2020-12-06T20:28:12.359Z zigbee-herdsman:deconz:adapter resolve data request with transSeq Nr.: 34
2020-12-06T20:28:12.359Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":34,"manufacturerCode":null,"commandIdentifier":11},"Payload":{"cmdId":1,"statusCode":0}},"address":29440,"endpoint":1,"linkquality":145,"groupID":null}'
2020-12-06T20:28:12.359Z zigbee-herdsman:deconz:driver networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
2020-12-06T20:28:12.360Z zigbee-herdsman:deconz:adapter response received Zigbee2MQTT:info
2020-12-06 21:28:12: MQTT publish: topic 'z2ml0/light_kitchen_center_2', payload '{"brightness":254,"last_seen":1607286492359,"state":"ON","update":{"state":"idle"},"update_available":false}'

2020-12-06T20:28:12.257Z Light1 turned on 2020-12-06T20:28:12.305Z Light3 turned on 2020-12-06T20:28:12.360Z Light2 turned on

So on 1.15.0 lights were turned on in 103ms.

Koenkk commented 3 years ago

@chrishae can you investigate this further. It looks like the delay option is set correctly but somehow is not honored everywhere.

ChrisHae commented 3 years ago

I see the delay option does not have the desired effect. So I will do some rework and change the behaviour of the delay setting of 0 to the old behaviour of version 1.15.0. I think it will be done tomorrow or some other day this week.

ChrisHae commented 3 years ago

Ok, adapter_delay: 0 in configuration.yaml is now the same behaviour as it was in version 1.15.0 and before. Therefore the delays should be gone. (available with new release) for explanation:

adapter_delay: 0 = minimal/no delay adapter_delay: 1 .. 50 = small delay (may improve devices not function as expected) adapter_delay: 51 .. 1200 = delay up to 1,2 seconds (use this if you experience some devices not responding or other errors)

please note: delay of 0 does not mean literally "no delay". @bkupidura can you please test it? @koenkk workflow did not succeed. Don't know why.

Koenkk commented 3 years ago

@ChrisHae fixed, Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)