Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for switching scenes with LIDL FB21-001 remote control #5543

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

martin-schlossarek
Copy link
Contributor

After pairing and using the LIDL FB21-001 remote control (which comes with the "LIVARNO home LED-Deckenleuchte") I've noticed the following debug messages when pressing the On-button multiple times:

# 1st press
Zigbee2MQTT:debug 2023-03-03 19:57:31: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:31: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:32: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:32: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:33: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:33: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:33: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:33: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:34: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:34: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'

# 2nd press
Zigbee2MQTT:debug 2023-03-03 19:57:36: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:36: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:36: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:36: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:37: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:37: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:38: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:38: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:38: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:38: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'

# 3rd press
Zigbee2MQTT:debug 2023-03-03 19:57:40: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,97,253,2],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:40: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,97,253,2],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:40: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,97,253,2],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:40: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,97,253,2],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:41: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,97,253,2],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:41: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,97,253,2],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:42: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,97,253,2],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:42: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,97,253,2],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:42: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,97,253,2],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:42: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,97,253,2],"type":"Buffer"}'

# 4th press
Zigbee2MQTT:debug 2023-03-03 19:57:44: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,98,253,3],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:44: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,98,253,3],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:45: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,98,253,3],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:45: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,98,253,3],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:45: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,98,253,3],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:45: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,98,253,3],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:46: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,98,253,3],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:46: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,98,253,3],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:47: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,98,253,3],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:47: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,98,253,3],"type":"Buffer"}'

# 5th press
Zigbee2MQTT:debug 2023-03-03 19:57:31: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:31: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:32: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:32: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:33: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:33: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:33: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:33: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:34: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,95,253,0],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:34: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,95,253,0],"type":"Buffer"}'

# 6th press
Zigbee2MQTT:debug 2023-03-03 19:57:36: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:36: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:36: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:36: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:37: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:37: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:38: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:38: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'
Zigbee2MQTT:debug 2023-03-03 19:57:38: Received Zigbee message from '0x8cf681fffe4b6272', type 'raw', cluster 'genOnOff', data '{"data":[1,96,253,1],"type":"Buffer"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2023-03-03 19:57:38: No converter available for 'FB21-001' with cluster 'genOnOff' and type 'raw' and data '{"data":[1,96,253,1],"type":"Buffer"}'

[...]

The data in the raw message contains a counter (4th octet) which counts from 0 to 3 and starts over. Apparently this looks like a scene switcher. After installing the Lidl Home app, I was able to confirm that the function is intended for switching scenes.

This PR implements a new converter "tuya_switch_scene" which does the following:

1st press on On-Button: publish {"action":"on", ...}
2nd press on On-Button: publish {"action":"switch_scene", "scene": 0}
3rd press on On-Button: publish {"action":"switch_scene", "scene": 1}
4th press on On-Button: publish {"action":"switch_scene", "scene": 2}
5th press on On-Button: publish {"action":"switch_scene", "scene": 3}
[... repeat from scene 0 ...]

Pressing the Off-Button resets the scene counter to 0

converters/fromZigbee.js Outdated Show resolved Hide resolved
The LIDL FB21-001 remote control supports switching between four different scenes by pressing the On-button multiple times in a row.

1st press on On-Button: publish {"action":"on", ...}
2nd press on On-Button: publish {"action":"switch_scene", "scene": 0}
3rd press on On-Button: publish {"action":"switch_scene", "scene": 1}
4th press on On-Button: publish {"action":"switch_scene", "scene": 2}
5th press on On-Button: publish {"action":"switch_scene", "scene": 3}
[... repeat from scene 0 ...]

Pressing the Off-Button resets the scene counter to 0
@martin-schlossarek
Copy link
Contributor Author

Renamed scene to action_scene.

@Koenkk
Copy link
Owner

Koenkk commented Mar 5, 2023

Thanks @martin-schlossarek

@Koenkk Koenkk merged commit 737d006 into Koenkk:master Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants