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.

Hi

I’m trying to follow the guide for the Sengled Smart Switch E1E-G7FW: https://www.sengled.com.au/shop/smart-light-switch/

I have added the initial code to node_modules/zigbee-herdsman-converters/devices.js:

    {
        zigbeeModel: ['E1E-G7F'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
        model: 'E1E-G7F', // Vendor model number, look on the device for a model number
        vendor: 'Sengled', // Vendor of the device (only used for documentation and startup logging)
        description: 'Sengled smart switch ', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
        supports: 'on/off, brightness, up/down/hold/release, click count', // Actions this device supports (only used for documentation)
        fromZigbee: [], // We will add this later
        toZigbee: [], // Should be empty, unless device can be controlled (e.g. lights, switches).
    },

But I’m really stuck trying to understand the next step where we add a converter to node_modules/zigbee-herdsman-converters/converters/fromZigbee.js.

This device is similar to the Phillips Hue Dimmer Switch so I looked at that code as a starting point but it’s huge. I am very sorry but I don’t understand most of it. Can you please assist?

Here are the logs files I was trying to interpret:

When turning on zigbee2mqtt (after adding the above code):

info  2020-05-25 18:08:36: Device '0xb0ce1814035dd720' joined
info  2020-05-25 18:08:36: Starting interview of '0xb0ce1814035dd720'
info  2020-05-25 18:08:36: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":{"friendly_name":"0xb0ce1814035dd720"}}'
info  2020-05-25 18:08:36: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_started","meta":{"friendly_name":"0xb0ce1814035dd720"}}'
info  2020-05-25 18:08:36: MQTT publish: topic 'zigbee2mqtt/0xb0ce1814035dd720/availability', payload 'online'
debug 2020-05-25 18:08:37: Device '0xb0ce1814035dd720' announced itself
info  2020-05-25 18:08:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_announced","message":"announce","meta":{"friendly_name":"0xb0ce1814035dd720"}}'
debug 2020-05-25 18:08:53: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"modelId":"E1E-G7F"}' from endpoint 1 with groupID 0
warn  2020-05-25 18:08:53: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:08:53: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:08:55: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"sengled"}' from endpoint 1 with groupID 0
warn  2020-05-25 18:08:55: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:08:55: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:08:57: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0
warn  2020-05-25 18:08:57: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:08:57: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:08:59: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
warn  2020-05-25 18:08:59: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:08:59: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:09:01: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"appVersion":9}' from endpoint 1 with groupID 0
warn  2020-05-25 18:09:01: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:09:01: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:09:03: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"stackVersion":0}' from endpoint 1 with groupID 0
warn  2020-05-25 18:09:03: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:09:03: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:09:05: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0
warn  2020-05-25 18:09:05: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:09:05: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:09:07: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
warn  2020-05-25 18:09:07: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:09:07: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
debug 2020-05-25 18:09:09: Received Zigbee message from '0xb0ce1814035dd720', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
warn  2020-05-25 18:09:09: Received message from unsupported device with Zigbee model 'E1E-G7F'
warn  2020-05-25 18:09:09: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
info  2020-05-25 18:09:09: Successfully interviewed '0xb0ce1814035dd720', device has successfully been paired
warn  2020-05-25 18:09:09: Device '0xb0ce1814035dd720' with Zigbee model 'E1E-G7F' is NOT supported, please follow https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html
info  2020-05-25 18:09:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_successful","meta":{"friendly_name":"0xb0ce1814035dd720","supported":false}}'
debug 2020-05-25 18:10:05: Saving state to file /opt/zigbee2mqtt/data/state.json

On button single push:

debug 2020-05-25 18:43:08: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,8,0,1,0,0,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:43:08: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,8,0,1,0,0,0]}'

On button double push:

debug 2020-05-25 18:44:04: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,10,0,5,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:44:04: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,10,0,5,0,1,0]}'

On button long press:

debug 2020-05-25 18:44:42: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,11,0,6,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:44:42: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,11,0,6,0,1,0]}'

Brightness up single press:

debug 2020-05-25 18:45:17: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,12,0,2,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:45:17: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,12,0,2,0,1,0]}'

Brightness up long press:

debug 2020-05-25 18:54:10: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,25,0,2,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:54:10: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,25,0,2,0,1,0]}'

Brightness down single press:

debug 2020-05-25 18:46:58: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,17,0,3,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:46:58: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,17,0,3,0,1,0]}'

Brightness down long press:

debug 2020-05-25 18:46:58: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,17,0,3,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:46:58: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,17,0,3,0,1,0]}'
debug 2020-05-25 18:47:20: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,18,0,3,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:47:20: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,18,0,3,0,1,0]}'

Off button single press:

debug 2020-05-25 18:50:13: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,22,0,4,0,0,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:50:13: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,22,0,4,0,0,0]}'

Off button double press:

debug 2020-05-25 18:50:29: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,23,0,7,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:50:29: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,23,0,7,0,1,0]}'

Off button long press:

debug 2020-05-25 18:50:56: Received Zigbee message from '0xb0ce1814035dd720', type 'raw', cluster '64528', data '{"type":"Buffer","data":[21,96,17,24,0,8,0,1,0]}' from endpoint 1 with groupID 0
debug 2020-05-25 18:50:56: No converter available for 'E1E-G7F' with cluster '64528' and type 'raw' and data '{"type":"Buffer","data":[21,96,17,24,0,8,0,1,0]}'

Appreciate your help completing step 3 of the guide.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lukyjaycommented, May 28, 2020

My debugging attempts messed that file up. Good pickup!

It seems to be working great now so I’ll submit some pull requests to include the above code, include this as a supported device and I’ll have a look at the website documentation to see if it can be expanded to prevent issues from being raised.

Thanks again for all your help, I really appreciate it.

P.S for anyone looking to buy this device, I would recommend spending a little extra ($10~ more) to get a Hue Dimmer Switch instead. I have both and the click and feel of the Dimmer Switch is significantly nicer to use.

0reactions
Koenkkcommented, May 27, 2020

@lukyjay try stopping zigbee2mqtt, remove data/state.json and try again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sengled Smart Light Switch White E1E-G7FW - Best Buy
Shop Sengled Smart Light Switch White at Best Buy. Find low everyday prices and buy online for delivery or in-store pick-up. Price Match...
Read more >
Sengled
Your lights can do more. Sengled makes the world's most advanced light bulbs with color, motion sensors, speakers, cameras and other innovative features....
Read more >
Sengled Smart LED Soft White A19 Bulb
Smart 2700K LED light bulb with app control. Fits most lamps and interior home light fixtures. Add-on for smart hub.
Read more >
Sengled Smart Wi-Fi LED Soft White A19 Bulb
Sengled Smart Wi-Fi LED Soft White bulbs are the easiest way to get started with smart lighting, no hub required. Our Soft White...
Read more >
Sengled Smart LED Lighting System
Sengled Smart LED lights let you control your lights with your app - at home or away from home - or with your...
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