Osram/Ledvance Wallplug does not toggle. Turns on, stays on

Hi,

I’m just starting to setup HA and my first pieces of Hardware already give me headaches.
I configured Zigbee successfully with a CC2531 USB Stick, mosquitto and Zigbee2MQTT.
I Added an IKEA Remote and a OSRAM/Ledvance Wallplug.

To test, I set the remotes on/off button, to toggle the switch.
When press the button, the plug turns on. But when I press it again, it stays on instead of toggling to off.

The Logs show the following:

After first press:

zigbee2mqtt:debug 2020-02-19 17:55:05: Received Zigbee message from 'Ikea Remote', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 26569
zigbee2mqtt:info  2020-02-19 17:55:05: MQTT publish: topic 'zigbee2mqtt/Ikea Remote', payload '{"linkquality":55,"battery":74,"action":"toggle"}'
zigbee2mqtt:info  2020-02-19 17:55:05: MQTT publish: topic 'zigbee2mqtt/Ikea Remote', payload '{"linkquality":55,"battery":74,"action":""}'
zigbee2mqtt:debug 2020-02-19 17:55:05: Received MQTT message on 'zigbee2mqtt/0x7cb03eaa0a07f261/set' with data 'ON'
zigbee2mqtt:debug 2020-02-19 17:55:05: Publishing 'set' 'state' to 'Schalter 1'
zigbee2mqtt:info  2020-02-19 17:55:05: MQTT publish: topic 'zigbee2mqtt/Schalter 1', payload '{"state":"ON","linkquality":68}'
zigbee2mqtt:debug 2020-02-19 17:55:05: Received Zigbee message from 'Schalter 1', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 3 with groupID 0
zigbee2mqtt:info  2020-02-19 17:55:05: MQTT publish: topic 'zigbee2mqtt/Schalter 1', payload '{"state":"ON","linkquality":76}'

After Second press:

zigbee2mqtt:debug 2020-02-19 17:55:51: Received Zigbee message from 'Ikea Remote', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 26569
zigbee2mqtt:info  2020-02-19 17:55:51: MQTT publish: topic 'zigbee2mqtt/Ikea Remote', payload '{"linkquality":21,"battery":74,"action":"toggle"}'
zigbee2mqtt:info  2020-02-19 17:55:51: MQTT publish: topic 'zigbee2mqtt/Ikea Remote', payload '{"linkquality":21,"battery":74,"action":""}'
zigbee2mqtt:debug 2020-02-19 17:55:51: Received MQTT message on 'zigbee2mqtt/0x7cb03eaa0a07f261/set' with data 'ON'
zigbee2mqtt:debug 2020-02-19 17:55:51: Publishing 'set' 'state' to 'Schalter 1'
zigbee2mqtt:info  2020-02-19 17:55:51: MQTT publish: topic 'zigbee2mqtt/Schalter 1', payload '{"state":"ON","linkquality":76}'

When I turn the plug off with the switch on it’s side:

zigbee2mqtt:debug 2020-02-19 17:57:11: Received Zigbee message from 'Schalter 1', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 3 with groupID 0
zigbee2mqtt:info  2020-02-19 17:57:11: MQTT publish: topic 'zigbee2mqtt/Schalter 1', payload '{"state":"OFF","linkquality":73}'

So somehow, after toggling it to on, the state does not seem to be saved, although the device reports correctly.

Am I missing something obvious?

So, 2 Hours after I post this and after an update of HASS.io and HA, it works as expected…

Unfortunately I don’t know why. :man_shrugging: