-
Notifications
You must be signed in to change notification settings - Fork 506
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
Add support for OSRAM Lightify 'Switch Mini' and 'Switch 4x' remotes #2917
Add support for OSRAM Lightify 'Switch Mini' and 'Switch 4x' remotes #2917
Conversation
Very interesting, is this an old version of the |
The switch is definitely old. The version is e.1.2.0CK. Which version do you have? I did not find an OTAU to update. Yes the mac starts with the vendor code 000D6F. |
I think the model number will always stay the same so an update won't change it. I don't actually have this switch, we've been talking to other people to get it configured. I do have the 3 button remote though. I have added support for that model, so hopefully this will now work for you if you recompile the code. If the button mappings or configuration are different then we might have to revert these changes and work on another solution. Would you be able to test all the button mappings and tell me what
P.s. you will need to remove the switch from deconz and un-pair it before trying again.. see this link for unpairing. It just ensures that the binding process is done properly. Oh and You will need to add the switch via Phoscon as a "sensor" (the "other" option). |
short press and long press are mixed up. But only for the top left button. The other keys work correctly.
But I also have the problem that not every time I press a key a command comes up. |
Thank you for that! I have updated the mapping for the button, if I understand correctly it should be okay now after recompiling :)
I can't explain this, I will have to ask @Smanar for feedback on this but we will probably need to look at the logs to understand this better. If all the button mappings are good, you will see the events appear in the log as you press them (if you |
The left side now works correctly. On the right side I only have short press events at the moment. |
Good news! I'm glad the left side now works. So the issue with the right side could be because the button is an older version or it could be something else. We will definitely need logs to understand what is happening. We will probably also need other people with this button to tell us if they are getting the same results so we know if we are breaking it for other people or not. |
You haven't this problem with the original Gateway ? |
I got the ConBee II. |
Yeah this is good.. So these are the events that I see in your logs:
I've added |
|
I see the osram switch mini in deconZ app but not as device in web app. DId i made something wrong?
|
@andi78 You're not doing anything wrong. They're working on integrating the switches now. Please ask questions about the web app under the repository phoscon-app-beta. |
@Smanar according to @YKO-de's logs these should be the correct bindings... static const Sensor::ButtonMap osram4ButRemoteMap[] = {
// mode ep cluster cmd param button name
// Button upper-left
{ Sensor::ModeScenes, 0x01, 0x0006, 0x01, 0x00, S_BUTTON_1 + S_BUTTON_ACTION_SHORT_RELEASED, "UL short press" },
{ Sensor::ModeScenes, 0x01, 0x0008, 0x05, 0x00, S_BUTTON_1 + S_BUTTON_ACTION_HOLD, "UL long press" },
{ Sensor::ModeScenes, 0x01, 0x0008, 0x03, 0x00, S_BUTTON_1 + S_BUTTON_ACTION_LONG_RELEASED, "UL long release" },
// Button upper-right
{ Sensor::ModeScenes, 0x02, 0x0300, 0x4C, 0x01, S_BUTTON_2 + S_BUTTON_ACTION_SHORT_RELEASED, "UR short press" },
{ Sensor::ModeScenes, 0x02, 0x0300, 0x01, 0x01, S_BUTTON_2 + S_BUTTON_ACTION_HOLD, "UR long press" },
{ Sensor::ModeScenes, 0x02, 0x0300, 0x47, 0x00, S_BUTTON_2 + S_BUTTON_ACTION_LONG_RELEASED, "UR long release" },
// Button lower-left
{ Sensor::ModeScenes, 0x03, 0x0006, 0x00, 0x00, S_BUTTON_3 + S_BUTTON_ACTION_SHORT_RELEASED, "LL short press" },
{ Sensor::ModeScenes, 0x03, 0x0008, 0x01, 0x01, S_BUTTON_3 + S_BUTTON_ACTION_HOLD, "LL long press" },
{ Sensor::ModeScenes, 0x03, 0x0008, 0x03, 0x01, S_BUTTON_3 + S_BUTTON_ACTION_LONG_RELEASED, "LL long release" },
// Button lower-right
{ Sensor::ModeScenes, 0x04, 0x0300, 0x4C, 0x03, S_BUTTON_4 + S_BUTTON_ACTION_SHORT_RELEASED, "LR short press" },
{ Sensor::ModeScenes, 0x04, 0x0300, 0x01, 0x03, S_BUTTON_4 + S_BUTTON_ACTION_HOLD, "LR long press" },
{ Sensor::ModeScenes, 0x04, 0x0300, 0x47, 0x00, S_BUTTON_4 + S_BUTTON_ACTION_LONG_RELEASED, "LR long release" },
// end
{ Sensor::ModeNone, 0x00, 0x0000, 0x00, 0, 0, nullptr }
}; But this is an old version of the device which could have different bindings. Should I update these bindings on the PR for testing? Also, @andi78 We won't be able to get the button to show in Phoscon because we don't have access to the code. What we have done is told the core deCONZ system how to talk to these new devices. dresden-elektronik will need to update their Phoscon app to allow you to see them on the UI. It looks like you have paired the button okay though so you should see the button working in the API (see this guide and also this API guide) |
Yes, I think Osram make their remote compatible, so I don't think they change the command. Else we just need to make 2 table, will be easy the 2 device have different name. But better if someone can make some test before you make the PR. For the 3 buttons switch we have remake the table at least 6 / 7 time ^^. |
@olicooper You're welcome to do that. I don't get to test it until Tuesday. I can't do it now. |
So I will try to get the changes up on my old repo for testing instead then. Just need to merge all the other updates first. I'll try to do it soon. |
uh much to read.. I will Check the thread on monday evening and geht back to it! |
@pollierer Yeah there was quite a few things happening today! We didn't want to update the code on this PR without testing first, so I copied the changes to my old repository: https://github.com/olicooper/deconz-rest-plugin-old/commits/smanar-osram-switch If you build from that repository then you will be able to see if the button mappings are all working properly now. That's all that needs testing at this point, it looks like everything else is working. You probably don't need to read anything else. |
Hello this is coming from this website https://www.ledvance.com/consumer/smart/faq/faq-for-smart-zigbee-products/index.jsp 5.2.2. HOW CAN I USE THE SMART+ ZIGBEE SWITCH TO CONTROL OTHER SMART+ ZIGBEE PRODUCTS WITHOUT THE USE OF A SMART HOME SYSTEM (VIA TOUCHLINK)?
indeed on the next chapter I can see:
So indeed it's the wrong process |
Hi, there is also another one of the 4 buttons grey switches. This one has a full height line in the middle and something like a small break or antenna.. My one of this kind has also a blue led in the middle. But I can connect this switch on the same way (press upper right and lower left for a moment). thanks for help |
Adding the button
Pairing with a lightThis can be done in home assistant using automations (see this for help) OR directly in the OLD phoscon app by adding the relevant lights to the same group as the button. You can access the old app via Removing an existing button
|
Hi, I had tried to delete the switches from the deconzGUI. My way was reset them, and than delete it. After that tasks the buttons where still visible in the deConz GUI but without the small colored lines which shows the connections. |
For information for those a little bit limited like me (no joke) You can add device using phoscon pairing but you will not see them in this interface. You have to open the VNC interface where you'll find them. |
@larslorenz You can't delete the device on the deCONZ GUI because it doesn't actually delete it at all. My short guide states that you need to delete it through the Phoscon API. It was a good idea to reboot after deleting it though as this will power-cycle the conbee/raspbee which is why it didn't come back for you after rebooting. After you pair the button you should see it when you do
You should add a 'Sensor' not a 'Switch' @grayve is correct, you will not see the button in Phoscon until drezden-elecktronik update the Phoscon GUI, but you can still use the button through the Phoscon API until then. |
@larslorenz if you can see the device in deconz but not in the API, and make inclusion using phoscon Can you give us the model id of the device ? Basic cluster 0x0000 in the table, you probably need to wake up the switch and press the "read" button in same time. |
First I have tzo say sorry, I did againb a check and see that I just had the deconz v .05.78. So I allready installed the v 5.79 but didnt make checks right now. I will do it today later, and give you more informations afterwards. thanks & greets |
Hi, so I tried again some steps. Right now I have surly the ..5.79 prerelease, but also here there is no way to delete the old paired devices with the api. I dont can find them there anywhere, and right now it also doesnt works to delete them from the deconz gui side. greets |
Hi, I try now to connect one switch which I never had connected before. I now use the sensor connection in phoscon, and see the working pairing in deconz gui. Direct special was that right now I get a real name from the device not the before typical kryptic names. Also I see the new group in the old webapp and can configure it like you suggest (put a light in the same group). My questions: thanks in advance.. |
I think you can safely delete these in the deconz gui, you can identify the new entries by pressing a button and watching for the blinking blue/green LED on the deconz gui.
If you want to control the individual buttons then you will have to use
It is just how I have managed to get it to work properly. You shouldn't have any issues but I can't be 100% sure. I haven't had any for 2+ months
Don't worry about deleting the old entries as it is working for you now. Deleting the old entries just ensures the device is paired properly rather than using an old configuration.
We are not drezden developers so I don't have any timeline for you. You'd have to ask them directly somehow (maybe using discord?)
If the buttons are working as expected (not switching all lights etc.) then everything should be fine. Which buttons have you connected - 2 x Switch Mini + 1 x Switch 4x ? You can find out the model numbers in the deconz gui if you need to.
Do all 4 buttons work or just the right side? |
I can delete them but they are directly reappearing
I m using fhem maybe there is a was also do get it done?
Sadly I m not able to reconnect the devices which I used before for trying. I m was only able to connect a new never used before one.
Okay thanks I will do... BUT right after I wrote the last post I see that the button now appears in the pwabeta as a sensor but properly named as a osram switch.. But I was only able to rename the sensor in the phoscon pwabeta.
I have connected working and clean: 1 Osram 4 Buttons; Before the update I had connected one smart switch mini and one of this special osram 4 button switches https://preview.redd.it/h3pwps0q9wa31.jpg?width=1500&format=pjpg&auto=webp&s=7473f78688f48a3797601565b746ba9f32dfcaa3
Sorry it was the left side, but only the left side works for the configured group. thx |
To delete device you can too use command line (but take care, not reversible)
It delete the sensor 7 in the API, but not in deconz. |
sadly I m not able to see the old sensors in the api, so I can not figure out which ID I have to delete. There is only the standard virtual time "sensor" and now the one newly paired 4switch button... Is there A way to reset everything in deconz so I can start from the scratch? |
Yep, you can delete the zll.db file. |
WOW!!! :-) :-) Really great, Thanks to you guys to implement the switches! (y) Unfortunately I'm not able to connect my 4-Button Lightify - Switches :-( I connect them like to the OSRAM gateway. This is what I do:
In the phoscon app happens nothing :-/ after a few minutes it says the the connection failed. [Edit: I also did an upgrade to latest firmware (deCONZ_ConBeeII_0x26660700) and the phoscon app "deconz-latest-beta" according to that official manual: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Update-deCONZ-manually#update-in-raspbian ] Do you guys got it up and running? THANK YOU VERY MUCH FOR YOUR HELP in advance!! :-) |
Hello, what is the model id of the device ? (visible in deconz, cluster 0x0000, you probalby need to press "read" and make the device awake in same time to have values) |
The IEEE is a good one, but not the Manufacture code. 2 things you can try (and first delete the node in deconz to be sure)
|
YEEEAHHH!!!!! :-) great! Exactly that was the issue! THANKS A LOT, mate!! (y) |
Is there any trick to pair like the Switch 4x to the current deconz / conbee II.
Other devices have less issues (I think the Aqara Door sensor was also a bit resistant). What would the right procedure be? I am selecting on the webinterface switches > add new switch > other Then I am trying to press (tried different combinations, either just one or both and reversed the order). left bottom+right top (hold 3sec) = blue blinking = pairing I tried it close by the conbee, or further away where it should be located. No change, no pairing. Any tip what I might do wrong here? I managed to add such a switch to a hue bridge 2, from what I recall that was also a lot of pain. |
I don't have the 4 button switch, but I think that the pairing process has been mentioned before on this issue or one of the related issues. For my 3 button remote I think I went to "add sensor" rather than "add switch" but it was a long time ago now since I last did this so I can't remember exactly what I did. I think you are correct about holding multiple buttons down though. You may have to open up the deconz GUI to check if it has been added already but the pairing process failed part-way through so it didn't appear on the web UI? Details on deleting devices has been mentioned here before too if you need to do that. And I believe there is a guide on accessing the deconz GUI through docker somewhere too. Sorry I can't help you more. |
Check the GUI. For me the pairing worked but it does not show up in the
web interface, just in the network view in the other UI. You can then use
it with the API.
|
thank you for the feedback. I now tried to add it as a sensor (and also via the lamp dialog) but no success. |
HI all, |
@KoljaHenckel I usggest to post on the forums :) It won't show in Phoscon probably, as they need to add support themselves. |
@KoljaHenckel I guess it won't work in your first tries. I also needed multiple tries to get them recognized by Phoscon. Try to reset the switch and afterwards to connect again. Not sure but out of my mind reset should be arrow up and arrow down at the same time until there's an LED signal on the switch. |
Added support for the Osram Switch Mini+ and Osram 4x Button in collaboration with @Smanar
Switch Mini
4x Button
resolves #294
resolves #374
resolves #1893
resolves #2082
resolves #2763