question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Signify/Philips Hue wall switch module (RDM001)

See original GitHub issue

Erik Baauw already added support for this module for deconz: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4566

  • I have one available, connected to a double push button
  • Only the left-button reacts
  • I have no idea how to initialize it properly
  • Tried to combine several examples, but obviously missing some things
    // Signify
    {
        zigbeeModel: ['RDM001'],
        model: '929003017101',
        vendor: 'Signify Netherlands B.V.',
        description: 'Hue wall switch module',
        extend: preset.switch(),
        endpoint: (device) => {
           return {left: 1, right: 2};
        },
        fromZigbee: [fz.command_toggle, fz.battery],
        exposes: [e.battery(), e.action().withEndpoint('left'), e.action().withEndpoint('right'), e.action(['toggle_left', 'release_left', 'hold_left', 'toggle_right', 'release_right', 'hold_right'])],

        meta: {multiEndpoint: true},
        configure: async (device, coordinatorEndpoint, logger) => {
            await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
            await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
        },
        ota: ota.zigbeeOTA,
    },

Results after pushing left button (right button = no result):

Debug Received Zigbee message from '0x001788010b00010d', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 24420
Info MQTT publish: topic 'zigbee2mqtt/0x001788010b00010d', payload '{"action":"toggle_left","action_group":24420,"last_seen":"2021-03-19T10:37:47+01:00","linkquality":54,"state_left":"OFF","update":{"state":"idle"}}'
Info Configuring '0x001788010b00010d'
Info MQTT publish: topic 'zigbee2mqtt/0x001788010b00010d/action', payload 'toggle_left'
Debug Received Zigbee message from '0x001788010b00010d', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 24420
Info MQTT publish: topic 'zigbee2mqtt/0x001788010b00010d', payload '{"action":"toggle_left","action_group":24420,"last_seen":"2021-03-19T10:37:48+01:00","linkquality":54,"state_left":"OFF","update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/0x001788010b00010d/action', payload 'toggle_left'
Error Failed to configure '0x001788010b00010d', attempt 2 (TypeError: Cannot read property 'bind' of undefined at Object.bind (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/lib/reporting.js:33:24) at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices.js:2857:29) at async Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.js:131:13))

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Koenkkcommented, Mar 22, 2021

Makes sense, added the config.

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

0reactions
RubenNcommented, Mar 22, 2021

Added genOnOff and manuSpecificPhilips to the reporting.bind and now all is well. Don’t know if both are necessary, but it works.

    {
        zigbeeModel: ['RDM001'],
        model: '929003017102',
        vendor: 'Philips',
        description: 'Hue wall switch module',
        fromZigbee: [fz.battery, fz.hue_wall_switch_device_mode, fz.hue_wall_switch],
        exposes: [e.battery(), e.action(['left_press', 'left_press_release', 'right_press', 'right_press_release']),
            exposes.enum('device_mode', ea.ALL, ['single_rocker', 'single_push_button', 'dual_rocker', 'dual_push_button'])],
        toZigbee: [tz.hue_wall_switch_device_mode],
        meta: {configureKey: 1},
        configure: async (device, coordinatorEndpoint, logger) => {
            const endpoint = device.getEndpoint(1);
            await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg','genOnOff','manuSpecificPhilips']);
            await reporting.batteryPercentageRemaining(endpoint);
            const options = {manufacturerCode: 0x100B, disableDefaultResponse: true};
            await endpoint.write('genBasic', {0x0034: {value: 0, type: 48}}, options);
        },
        ota: ota.zigbeeOTA,
    },

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set up a Hue wall switch module | Philips Hue US
Set up a Hue wall switch module ... 4. Tap Add accessory. ... 4. Tap Hue wall switch module and follow the on-screen...
Read more >
PHILIPS RDM001 Wall Switch Module Instructions - Manuals+
PHILIPS RDM001 Wall Switch Module · Reorient or relocate the receiving antenna · Increase the separation between the device and receiver · Connect ......
Read more >
How to install the Philips Hue wall switch module - YouTube
Make any light switch smart — all it takes is a few minutes! Follow these easy steps to install your Philips Hue wall...
Read more >
Philips Hue Wall Switch Module - CSA-IOT
Philips Hue Wall Switch Module (RDM001)… ... Hue Wall Switch Module is a non-color controller which is part of the Philips Hue eco-system....
Read more >
Support for Hue wall switch in zigbeephilipshue plugin
Hi, Support for the Hue wall switch was recently added to the philipshue plugin. As I want to run my Nymea setup without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found