-
Notifications
You must be signed in to change notification settings - Fork 502
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
[Request device support] Support for Namron 4-channel switch (Luzense/Sunricher clone) #2158
Comments
No, it doesn't show in the old web interface either.. Would be great to have it supported as it's a lot cheaper than other brands. |
Probably. Just whitelist it in |
@ebaauw Sorry that I haven't had the time to follow this up, would be great if no more than this is needed. Being new to this, do the devs prefer that I add, build and test this myself and then make a pull request? |
That's what I've done for the devices I own or could borrow. Adding support without having physical access to the device is almost undoable, due to different interpretations of the ZigBee standards by different manufacturers, and due to the complexity of the REST API plugin code (there's always one more place to whitelist a device). |
Do you have an config that works for this switch? |
@monsivar Unfortunately no, I haven't had the time to set up a building and testing environment yet. I'll submit a pull request when I have something working. |
Is there any recipes on the net for adding this switch to the deconz for an nuub like me? @ebaauw |
None official. I did a writeup here: #2061 (comment) |
I'd like support for this switch myself. Going to try to do this over the weekend. |
Nice, I did not see the effort of trying.. |
I am also interested in getting this Namron 4-channel switch to work with Deconz, |
I tried to whiteliste it and button map it as described above and then i was unable to build it in my environment, got an error with missing QT module serialport for some reason and did not have time to debug it. Do I need to install qt explicitly in addition to deconz-dev? EDIT: Set up a fresh new Ubuntu VM and was able to build it. I re-paired the switch but nothing showed up in Phoscon. Maybe I need to whitelist some more places as linked to above. |
+1 for wanting this supported! :) |
Any update on this? |
@eckhart I am having trouble setting the switch in network pairing mode. How did you do it? (Namron 4512703) |
+1 for supporting Namron switches. About pairing: This worked for the 2 channel switch to behave as intended (still needs deconz support), and I checked the manual for the 4-channel and it is the same setup. |
Any updates on this one? |
I hope there is soon ;) Would be awsome.. bought a few of them....... |
OK guys, I have not figured out if my branch works, I think I need to try again. Or can any of you help test my branch above? Build it, install it, test of you can add the button. |
Hi phithor, Great work :) I have tested it. I can now add the 4-channel switch in phoscon app, but it does not show up in phoscon web gui. I see it in the rest-api and shows up in my HomeAssistant, but with no entities. |
Ah, thanks for that, I did not understand what worked and what not. At least we have gotten somewhere when it shows up in the rest-api. AS you I have seen I have a device with ID "4512703". It's corona-time, so I think I will have time to do some more on this today/this weekend. |
Hah, in conclusion the commit I made almost two months ago more or less works perfectly fine. The key to using the switch is pressing open network, activating each of the groups on the switch by pressing a button, then reading the basic cluster of each of the groups while the network is open. Then the groups will be made where you can add lights to. I will push the commit to the main repo asap. |
@phithor cloned your git https://github.com/phithor/deconz-rest-plugin Then I get this problem when trying to test, after running the command: qmake && make -j2 In file included from bindings.cpp:11: |
Hm, I think I got that as well the first time, but I believe that is missing files in your qt setup? Have you installed deconz-dev? |
I have. Restarted my pi, and its working :-) |
Hi. but i still have an problem . The switch is not listed upp in the old web interface, or in the api. Sorry for all the questions, first time manually adding something, and first time cloning from git... so a big learning curve here |
Did you follow the instructions I linked to above? In the old interface, open the network and then read cluster in each of the channels. That should create the groups. |
@Mimiix && @SwoopX I am sort of confused whether support for this device has been implemented or not? It is definitely not working here. Must the device be supported by the Phoscon app for it to be usable and able to control any lights? I have been under the impression that adding support for it in the deconz-rest-plugin is sufficient? For good measure I created a git issue as suggested by @Mimiix: dresden-elektronik/phoscon-app-beta#152 |
It is supported and also whitelisted in the code. However, the support was provided by someone who obviously wasn't that familiar with the code. As such, the underlying request is done. Visibility in Phoscon is a different thing, as Mimiix pointed out, therefore the requirement for a request. |
@habakke i checked your issue in the Phoscon App and I noticed your switch shows manufacturer id "NAMRON AS" in all caps. I have not seen that before. That might why it is not working for you, as the whitelist is only for "Namron AS" if I remember correctly. |
@phithor I can confirm the manufacturer name show all caps "NAMRON AS" as seen in the screenshot of the basic cluster group below: The OTAU cluster group shows the manufacturer ID to be 0x1224 as seen below: |
@phithor I installed the dev env. and did a quick change to the code to assign the sunricher buttonmap if the manufacturer matches upper case "NAMRON AS", compiled and installed. Now the groups are created as expected: I am now able to add lights to the groups in and control them using the buttons. The integration with Home Assistant does not work properly yet though, and I assume this will require the device to be supported by the Phoscon app as per @Mimiix and @SwoopX'es comments. |
Taken care of this in my last PR real quick. While pairing, we now set the Manufacturer to "Namron AS" for all devices beginning with 451270. Should be included in the next release. |
Mine still won´t work. After this release I checked the model identifier number, and it says 4512721, and still "NAMRON AS" with all caps. Is it possible to include the switches with these id numbers? |
Renaming will be done based on the modelId. Of course your device brings another one into play, which doesn't fit the pattern... How many different IDs can one device have...? |
Yeah, they didn't make it easy on us.. Is it possible to add my ID's (or my pattern if there's anyone out there with an ID similar to mine) to the renaming pool? It would be really great to get this to the deconz hassio addon 👍 |
Don't worry, will be supported with the next release. |
August 15th, if you run bare Raspian, without HA and have subscribed to the beta channel. |
I am using Raspian, without HA, but how do i subscribe to the beta channel? |
Thanks, can i run stable and beta side-by-side? |
Nope. But since you already run version .79 I'd assume you're using the beta channel already. |
I will wait until August 15th and see then :) |
Still not able to add it. deconz-latest-beta.deb last modify is 15-Aug-2020 14:04.
|
You first downgraded 6 versions and then upgraded 6 versions. And are still 2 versions behind... You also use the stable branch instead of beta. .79 should be promoted to stable today, .80 next month. |
can you give me te correct commands to get the last one :P |
Hello, i have a question i just got two of these but one with 2 channels and one with only 1 channel. (4 and 2 buttons). |
@t112013 Support was added in .80. So you have to wait until HA updates it. Same goes for @flemmingss : You are not on latest update afaik. Please open a seperate issue. Locking this issue for further conversation. If there's issue, please open seperate userquestions/bugreports. |
This is widely available in Norway, and fits the standard ELKO frames which are common here:
https://www.elektroimportoren.no/namron-zigbee-4-kanaler-bryter-k8/4512703/Product.html
To me it seems more or less identical to the 4-channel ones in #1509 but under a different brand name. It shows up in deCONZ with "Namron AS" as manufacturer instead of "Sunricher" and doesn't show up as a switch in Phoscon/REST API after the switch confirms successful pairing.
Below is what I have from deCONZ. I've read out all the attributes from the seperate channels, they look identical so just including one of them here. Let me know if more info is needed.
The text was updated successfully, but these errors were encountered: