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

New device Namron Zigbee RGB remote #2766

Closed
toremick opened this issue Jan 17, 2020 · 2 comments
Closed

New device Namron Zigbee RGB remote #2766

toremick opened this issue Jan 17, 2020 · 2 comments
Labels
stale Stale issues

Comments

@toremick
Copy link

Added support for a remote i bought
Link to a norwegian store

  • Identifies as: "4512706"
  • Have made all the buttons except for the rgb wheel and button on top. (Dont have any RGB devices to test with)
  • The Number "62720" used in groupid changes every time the remote is reset for pairing, so that would need changing for whoever uses it.

Running the latest dev. of zigbee2mqtt, could anyone please help me on how to submit these changes for others? A step by step guide for submitting to git :)

devices.js:

{
       zigbeeModel: ['4512706'],
       model: 'NAMRONRGBREMOTE',
       vendor: 'Namron',
       description: 'Remote control',
       supports: 'dim, colortemp, groups, setcolor ',
       fromZigbee: [fz.NAMRONRGB_on, fz.NAMRONRGB_off,fz.generic_battery, fz.NAMRONRGB_up_down_dim, fz.NAMRONRGB_cw_ww, fz.NAMRONRGB_scenes, fz.NAMRONRGB_move_to_color_temp],
       toZigbee: [],
   },

fromZigbee.js

   NAMRONRGB_on: {
        cluster: 'genOnOff',
        type: 'commandOn',
        convert: (model, msg, publish, options) => {
            const button = msg.groupID-62720;
            return {action: 'on',  action_group: button};
        },
    },
    NAMRONRGB_off: {
        cluster: 'genOnOff',
        type: 'commandOff',
        convert: (model, msg, publish, options) => {
            const button = msg.groupID-62720;
            return {action: 'off',  action_group: button};
        },
    },


  NAMRONRGB_up_down_dim: {
        cluster: 'genLevelCtrl',
        type: 'commandStepWithOnOff',
        convert: (model, msg, publish, options) => {
            const locgroup = msg.groupID-62720;
            const direction = msg.data.stepmode === 1 ? 'down-dim' : 'up-dim';
            return {action: direction, action_group: locgroup};
        },
    },

  NAMRONRGB_cw_ww: {
        cluster: 'lightingColorCtrl',
        type: 'commandStepColorTemp',
        convert: (model, msg, publish, options) => {
            const locgroup = msg.groupID-62720;
            const direction = msg.data.stepmode === 3 ? 'cw' : 'ww';
            return {action: direction, action_group: locgroup};
        },
    },


 NAMRONRGB_scenes: {
        cluster: 'genScenes',
        type: 'commandRecall',
        convert: (model, msg, publish, options) => {
            const locgroup = msg.groupID-62720;
            const scenenumber = msg.data.sceneid;
            return {action: `scene_${scenenumber}`, action_group: locgroup};
        },
    },


 NAMRONRGB_move_to_color_temp: {
        cluster: 'lightingColorCtrl',
        type: 'commandMoveToColorTemp',
        convert: (model, msg, publish, options) => {
            const locgroup = msg.groupID-62720;
            return {action: 'setcolor', action_group: locgroup, transition_time: msg.data.transtime, action_color_temperature: msg.data.colortemp};
        },
    },

@Koenkk
Copy link
Owner

Koenkk commented Jan 17, 2020

There are some guides available on how to create a pr, e.g. https://youtu.be/rgbCcBNZcdQ

If you cannot no problem, then I can add them, let me know.

@stale
Copy link

stale bot commented Mar 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issues
Projects
None yet
Development

No branches or pull requests

2 participants