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

Hue Dimmer Switch appears as a light bulb #1

Closed
mvoss96 opened this issue Jun 30, 2020 · 7 comments
Closed

Hue Dimmer Switch appears as a light bulb #1

mvoss96 opened this issue Jun 30, 2020 · 7 comments

Comments

@mvoss96
Copy link

mvoss96 commented Jun 30, 2020

Hi,
thanks for this software.
It seems that the Hue dimmer Switch gets recognized as a light bulb which is not correct.
Not sure whether you can fix this or if its an Issue with home kit

@mvoss96 mvoss96 changed the title Hue Dimmer Switch apperas as light bulb Hue Dimmer Switch appears as a light bulb Jul 1, 2020
@itavero
Copy link
Owner

itavero commented Jul 1, 2020

Can you provide me with the MQTT message zigbee2mqtt sends for this device? (As I don't have one myself)

@itavero
Copy link
Owner

itavero commented Jul 1, 2020

By the way, I just released a version that allows you to exclude devices from the Homebridge integration by adding their IEEE address to the config.json (or via homebridge-ui-x). There is an example in the README.
It's not a fix for you problem, but at least it will help you get rid of the incorrect device for the time being.

Update: 🤔 New feature worked with my test setup but not on my "production" environment apparently. I'll probably look into that later this week. Sorry about that!

@mvoss96
Copy link
Author

mvoss96 commented Jul 1, 2020

Hi, this is the content of the zigbee2mqtt config message:
{ "ieeeAddr": "0x0017880106e85acb", "type": "EndDevice", "networkAddress": 41612, "model": "324131092621", "vendor": "Philips", "description": "Hue dimmer switch", "friendly_name": "Dimmer_Switch", "manufacturerID": 4107, "manufacturerName": "Philips", "powerSource": "Battery", "modelID": "RWL021", "hardwareVersion": 1, "softwareBuildID": "6.1.1.28573", "dateCode": "20190410", "lastSeen": 1593637842215 },'

Thanks for the new feature. I will happily try it later.

@mvoss96
Copy link
Author

mvoss96 commented Jul 1, 2020

when the buttons on the DImmer switch are pressed, the messages look like this:
{"battery":100,"linkquality":34,"update_available":false,"counter":1,"brightness":255,"action":"up-hold-release","duration":1.851}
{"battery":100,"linkquality":34,"update_available":false,"counter":1,"brightness":255,"action":"up-hold-release","duration":1.851}

@itavero
Copy link
Owner

itavero commented Jul 1, 2020

It doesn't have the state property that I've seen on all lights so far, so it should be a rather simple fix to at least not add it as a Lightbulb.

Unfortunately remote controls (push buttons) are not yet supported (see #2). They turned out to be a lot more difficult to handle than simple temperature sensors and lightbulbs.

@itavero itavero closed this as completed in 42f9d81 Jul 5, 2020
@itavero
Copy link
Owner

itavero commented Jul 5, 2020

@mvoss96 I added an additional check so that the state property must also be present to detect a Lightbulb. This should resolve the fact that your dimmer switch is recognized as a Lightbulb.

As mentioned, for "remote control" support, keep an eye on #2.

The changes are currently in the master branch, but not yet released.
If you want you can already try them.

If the erroneous detection of a lightbulb still occurs, we can reopen this issue ;)

@itavero
Copy link
Owner

itavero commented Jul 5, 2020

FYI: Published a new release that includes the fix for this issue.

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

No branches or pull requests

2 participants