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

Requesting additional data in mqtt payload #195

Open
woobenjamin opened this issue Feb 5, 2019 · 2 comments
Open

Requesting additional data in mqtt payload #195

woobenjamin opened this issue Feb 5, 2019 · 2 comments

Comments

@woobenjamin
Copy link

Hi,

First, thanks for the code, and second, thanks to all the contributors for posing and answering questions. I am using an OSRAM Sylvania Lightify Dimming Switch 73743 with SmartThings. The switch has two buttons, and has the capability of providing dimming through holding.

In integrating this with SmartThings, it only recognizes it as a Zigbee Button. However, the button gives more than a pushed or not pushed state. In the details of the device, it gives 3 different states:

  • battery:
  • button: pushed|null
  • numberOfButtons: 2

I'm very much hoping that you could update your code to parse all these states, as I want to use the button number to determine whether someone is turning the lights on or off, so button 1 would be ON, and button 2 would be OFF.

Is this possible?

For further information, there are two guides:

  1. https://community.smartthings.com/t/faq-sylvania-battery-power-dimming-switch-model-73743-why-there-are-three-different-dths-to-choose-from/107714
  2. https://community.smartthings.com/t/release-osram-lightify-smart-dimmer-switch-button-controller-device-handler-and-smart-app/39039

I'm using the latter because it gives me the ability to get dimming functions.

Many thanks in advance.

@woobenjamin
Copy link
Author

Well, I resolved it myself! I changed device handlers to:
SmartThingsPublic/devicetypes/adamoutler/lightify-dimming-switch-zigbee.src/lightify-dimming-switch-zigbee.groovy

and it gives on/off which is good enough for me!! 👍

@woobenjamin
Copy link
Author

Just another quick follow on, it seems that all of the various DTH provide extra info, while the one I noted above gives a simple on/off, it seems want to remember the last state, so if I pressed off, the lights go off, but if I then turn the lights back on with an Alexa command, it will not send another off command when I press the off button.

So, if at all possible, can the bridge provide more info in the payload please? Thank you again.

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

1 participant