-
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
Zigbee onoff controlller added as light instead of switch #1090
Comments
I think this is normal, Osram Smartplugs are also added as lights. Switches are only for remotes etc. |
I believe something else is wrong here. The relay appears to be functional but the device is not working in deConz. I believe it is functional inside of iobroker, https://github.com/ioBroker/ioBroker.zigbee/wiki/Supported-devices where it's called "KS-SM001 (Lamp_01)" I don't mind it looking like a light if it works. But currently it doesnt work! Is there a way to interogate the node in deconz-gui and somehow manually trigger the relay? |
You can select the On/Off cluster and in the Cluster Info Panel trigger all commands manually. |
Thanks @manup, I tried executing the on and off comands from the on off cluster. It changes the value of the onOff boolean state (0x0000) but the device still supplies power. When the device has been reset and is pairing it pulses on and off and I can see the output device being turned on and off and so I'm sure the relay is working. At a loss for where to go from here! |
Good question the On/Off cluster is the only control interface the device offers. If that doesn't work there is little we can do. Does the device has a load connected? |
Is there any chance that the device is being mislabeled in deconz and being reported as a light instead of a switch? I've found information on zigbee2mqtt which makes me think the switch should work https://github.com/Koenkk/zigbee2mqtt/blob/91bbb0d4a800a6d5ac6cf166fea4d53783a3e724/docs/integration/home_assistant.md The instructions say that in order to add it to "smart things" you need to install the smart things alexa skill. What I'm thinking is that the alexa skill is providing more device capabilities than what the device broadcasts on the zigbee network. This is just me guessing though!! |
It seems to be mislabeled as Dimmable light, but that’s unrelated to it being exosed under |
But why it's mislabeled as Dimmable light ? There is nothing in cluster or information to explain that ? @clockworkant |
No, it's hardcoded in the device firmware: the device type is in the simple descriptor of each endpoint. |
Hm, it might be an issue with deCONZ. There's one entry for There's also an entry |
@Smanar the identify doesn't work however when I put the device into pairing mode (by reseting it), it flashes the device |
I'll check the general.xml file, but other than the label it should have no effect on functionality. Again the question: Does the device have a connected load which it can control? |
@manup I'm really sorry, I'm not sure what you mean by "connected load it can control?" |
I mean is the controller actually connected to anything (output) :) |
@manup Ah! Yes. It does have an output attached. I've also verified that during the pairing/reset state when the relay is blinking the output device is also flashing. You can see the setup in this video https://www.dropbox.com/s/2tmg7c6uxixx180/Reset.MOV?dl=0 It's why I'm so baffled that the commands aren't working. Clearly the relay is capable of switching but the deconz commands are not effecting it |
Can you please also double check that the input L (phase, brown) and N (neutral, blue) as well as the output L/N are wired correctly. |
@manup I've rewired the plug and taken some video to show whats going on When the power is toggled from deconz the output still output power however the led is changing strength slightly as you can see from the video. I've included a photo of the wiring as well as how I am testing it in the deconz-gui |
Wiring looks good now. I honestly can tell why the device doesn't electrically switch on/off. From a Zigbee perspective all is working. One more test out curiosity, can you please press the "All off" button in the Phoscon App. The device should stay on. |
The physical device remains but in the web app it shows it to be off.
… On 15 Jan 2019, at 13:04, Manuel Pietschmann ***@***.***> wrote:
Wiring looks good now. I honestly can tell why the device doesn't electrically switch on/off. From a Zigbee perspective all is working.
One more test out curiosity, can you please press the "All off" button in the Phoscon App. The device should stay on.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I just ordered 2 of these from aliexpress. |
I've also ordered one but it hasn't arrived yet. |
I also ordered one from China, I'll report results when it arrives |
@clockworkant did you ever try to pair it with a hue bridge? |
@forast3r I'm afraid I no longer own a hue bridge so I didn't attempt to pair it with the bridge. I'm really interested to see if you guys can get it working. It feels safer than using my modified sonoff basics! |
1 similar comment
@forast3r I'm afraid I no longer own a hue bridge so I didn't attempt to pair it with the bridge. I'm really interested to see if you guys can get it working. It feels safer than using my modified sonoff basics! |
Just checked my amazon order status: delivery 7. Febr. - 19. Febr. |
Just noticed this thread, and I am using these. Got mine of eBay (UK) and noticed I can get from Amazon (UK as well). I paired it and it works as expected. I can control from Phoscon and API with no issues. The only things I have noticed in Phoscon is no firmware version or a correct name for the item: What would be nice if you could assign the correct icon to items (and UK version rather than euro etc.) so it makes more sense rather than it being defaulted for you! |
@ademobile when you mention you've got it working can you confirm that you are able to turn off a device connected to the zigbee onoff controller? I could turn mine off in the UI however the connected device would not alter it's state. If yours is working then it would mean that my device is defective! |
From Phoscon, I can turn off or on as it is connected to my water feature as shown above, also I control it through the API via node red with no issues either |
Just chiming in that the two zigbee on/off controllers that i ordered arrived and work as expected for me. |
pponce: Are you using version: V2_05_59? |
Yes. |
Ok I just upgraded the firmware to 26300500 but still get the device turning on and off multiple times. I wonder if this will be fixed by the new version of deconz or if I have a faulty switch? |
I confirm that my unit with 2.05.59 is working properly with deconz. |
I've just upgraded deConz to the latest version to check if the Zigbee OnOff Controller may work with this version. |
That should be expected behavior? deCONZ can't do much more here other than sending on/off to the device. On my unit it works without issues. Hard to tell why but it seems that some units are faulty for some reason. |
Just wanted to add, I ordered some of these from aliexpress, but the seller contacted me and asked me to cancel the order, saying that there was a quality problem. I asked for more information because I had already ordered another from a different seller [which arrived yesterday] and they said "nothing to worry about, just a problem with the manufacturer". |
@andyjenkinson @manup I've received some more components to play with and used the zigbee2mqtt project in order to test the switch I have. My switch is defective. I'm so sorry! I'm also upset and annoyed that I wasted £10 on it. I feel like buying ikea Tradfri plugs is a better investment. I'm happy to close this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Just for information this device have "Unknow" as type.
And can have different manufacture. |
I've a comment on this topic, because I tried it several hours and couldn't connect the switch couldn't be connected to Phoscon, but if you try to find lamps in a group/room, then the switch appears inside seconds as a lamp. I tried this with two devices. |
I have 3 of these device they are working pretty well, just the inclusion was a bit tricky, I'm using it to manage some devices but on UI these are reported as bulb. |
Yes, it's possible, and "easy" but there is a problem. |
yes, please would be very helpful being able to apply small fix |
Lol, nope you haven't understand ^^, I can explain how to do, but I can't do it. You have the hardware, will be faster for you for test. File light_node.cpp in the function void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
You are perhpas in the DEV_ID_ZLL_DIMMABLE_LIGHT situation (on deconz the name is "dimmable light"), this id have been disabled on the code. It would be the first thing I will try, re-enable this part to test. The code is realy esay, you can make just with copy/paste. But need lot of time to recompile, and restart for tests. |
yes, I have just seen the code is not too tricky, the best way should be compile the code with some debug string, is it possible? then should I exclude and include again the device or is enough replace the library and restart deconz? |
ok, I was able to build the plugin, but how can I identify the right deviceId by using the deCONZ UI? ZCL Version: 1 but where I can find the deviceid? |
Yes, you can compile it as it and use debug mode, to use debug, just run it with command line #55 Yes, you need to exclude and reinclude the device because this part is only triggered during inclusion. If it's realy a probleme, you can make a "fake inclusion" with putting phoscon in inclusion mode and using some fonction on deconz (I don't remember all of them, I can search if you need them) but I have less succed with this method. And you have find a problem ^^. There is no way to find the device ID. On the screenshoot the model id is "dimmable light" on deconz it's for that I m thinking it's something like DEV_ID_ZLL_DIMMABLE_LIGHT (and in this situation "unknow" is something normal because it have been disabled) |
maybe the problem is not in deCONZ but on the device firmware who is declaring itself as On/Off Light what I have found strange was on the general.xml there are : but on the code there is: by checking on this file ( https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/zigbee-switch.src/zigbee-switch.groovy ) so if I check on general.xml under profile id="0104" maybe I should define the device 0000 like
however for now I don't wont remove them from the wall, also I have not clear the logic I don't want play without know the deCONZ logic, for now is easier get a new device just for test meanwhile I'll write a python class to make a workaround on HomeAssistant side |
But you want to change something on deconz or on the API ? Good link you have found. To make test it's easy, just remove the commend on line 509. On general.xml, I m agree with you device id="0100" and like you said on deconz code it's DEV_ID_ZLL_DIMMABLE_LIGHT too So for me it can work if you re-enable the DEV_ID_ZLL_DIMMABLE_LIGHT but ONLY for your manufacturer or model id if you can
|
I have discovered that in my case the device should be the DEV_ID_MAINS_POWER_OUTLET so should be easy fix it, I should just add this device on the switch |
Lol, seriously ? so I was totally wrong. Make a pull request for it, others users will also be able to use the correction too. |
done #2224 |
@Smanar I got a sonoff BASICZBR3 which is really similar to SA-003-Zigbee also the pair procedure is really the same, now it is recognized as On/Off plug-in which is fine. also the sonoff has id DEV_ID_MAINS_POWER_OUTLET |
So your Pull is usefull too for this device. |
I'm attempting to add a zigbee onoff controller
When adding through the web ui as a switch the device is added to deconz as a light.
When I view the light in the deconz software I see the following information
I've tried turning the light off but the power is still being fed to the output. I verified that the onOff value is reporting as false but sadly it's just not working
Any thoughts on how to register the device as a zigbee on off switch?
The text was updated successfully, but these errors were encountered: