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
Issue with home assistant and legrand cover shutter celiane netatmo #2812
Comments
So it sounds to me it's a HA issue then. You described the REST API works correctly, right? |
Hello , i don't no because when i had discover my switch in deconz (with HA deconz integration) this entity is automaticaly create in HA . |
Heu ? the command in the api for the shutter is not state/open but state/on or state/bri. Have you the JSON of the device pls ? |
Ok so there is some change since the last @ebaauw modification. |
See #2475 (comment) |
Ok So I have found archive ^^ On previous version State/on = true > Close the shutter, so it's good with last modification
So I realy think the problem is from HA, ca you see the command used by HA ? |
Hello, like mentionned on discord the problem is when i use cover.closed it seems post on deconnz this intsruction 2020-05-25 18:19:19 DEBUG (MainThread) [pydeconz.gateway] Sending "put" "{'on': True, 'bri': 254}" to "172.30.33.8 /lights/3/state" or if i use api rest with lift: 100 my cover is opening non closing |
And using directly the api, this command is working ? If not, try with only "on" or only "bri" Edit: |
Ok, so I realy don't see why the code is not working ? I know how to repair it, but I don't want to break the installation on others users. And As you have Hass, I think you can't test code modification ? I will make an ask on legrand issue > #883 (comment) |
Good evening. No it is no new device but before i use homekit integration in HA with legrand control hub and it's work fine , but my hub is broken and i try to use deconz intead off. the model id is still exaclty "Shutter switch with neutral" With deconz it is my primary test never test before but with homekit or with the physical button is ok I have hassio and i don't know how i can try it because it is just a container in docker but , i don't now how i can build the image specific for hassio To resume , to be sure you have all the good information When i use open.cover When i use stop action When i use api rest If i check on cluster info: When cover is close Thx for help |
Yep, It's clear. I have just 2/3 lines to remove, but I realy think the difference is from your device, perhaps a recent firmware update. I think I will need to check something (perhaps a firmware version, to know if I need to reverse the command or not. Or If realy I don't found clean solution I will disable the "bri" parameter for legrand. Like that, no more problem, and always compatible. ATM, I m waiting return for someone else with the same hardware, to know if you are the only one and why. |
Ok thx |
Hello , i think is probably around this : else if (taskRef.lightNode->modelId() == QLatin1String("Shutter switch with neutral")) but i don't know what exactly i should modify thx a lot |
Just remove the line ^^. Or you can too just disable the "bri" command or ignore it according to the device id. Or you can too use "open" and "close "in HA. There so much method possible, but I didn't choose one yet. |
Ok, i will try one of your solution, but i need more help, i will clone repo off github make the modification but how i can make *.deb after when modification will be done ? |
Are you using HA or Hass.io ? |
Hass.io |
but i think is not a probleme ARG DECONZ_VERSION COPY data/ika-otau-dl.sh /bin/ |
Ok, so sorry, I have already tried to help someone with Hass.io, I can nothing for you There is window, unix, mac and Hass.io. But you can use the normal deb, and change only the api file > libde_rest_plugin.so |
:( it is C language , i m not be sure i will be able to do that :D |
and i m not sure i have right to do that , it seem to be hacking :) |
thank you anyway, i will wait for you to get feedback from other users to maybe update |
On your version you can do all you want, you can freely edit the code. ATM, I think you can act on HA directly ? waiting for patch ? you can't edit the command send by the addon ? |
I'm sorry for insisting like that. but if I can't find a solution I will have to buy a new hub and it is expensive for me. I think that in home assistant I cannot modify anything the code of the cover service is integrated. the only solution for me is to modify the sources of the deconz application. I tried to see but I do not know anything in assembly and therefore I can not modify what I want and redo a deb file. By cons I know docker and I have no problem with it I do not understand when you made your changes in the master branch of git, which compiles the source code? Isn't it your team? but it does not matter. I can see that you are trying to help me. and thank you for that |
oh , my bad it is explain here |
Ha yep, the compiling procedure ? But in HA, you can to use "virtual device" with command line, remember deconz works with simple REST command, it's easy to use. |
Hello, thx a lot i discover the power of rest_command I would have preferred an integrated solution, but it works perfectly well thanks for spending time for me have a nice week |
It seems this issue is resolved or otherwise inactive. If it is not, please re-open! |
Not yet ^^ |
I m Smanar too on it. But now I remember, the firwmare "out of the box" is buggy, I m using an hack in the code, so Legrand have probably corrected the bug on a future firmware and it can explain this result. I will make the code tommorow, I will contact you for test, from my memory you are able to compile the code ? just to be sure, on your capture the attribute lift position is reversed 0x0008, but the command are reversed too ? To check just use deconz , cluster 0102, and try "up" and "down", to check if the 2 command react same, or are reversed too. |
Hello there ! After a lot of test and exchanges with @Smanar, We've got
@pipiche38 : I'm prety sure you'll be intrested in ! Careful : it's long to explain !First, you have to know how works exactly the rollershutter with the switch:
Point 3 and 4 are very important ! How firmware 26 works (0x001a in hexa) (i.e. Firmware "out-of-the-box")
How firmware 33 works (0x0021 in hexa) (i.e. call "Firmware updated")Physical switch action case :
API action case :
ConclusionWith latest FW, any API command need to force a refresh of attribute just after in order to get HA not buggy |
thx for the clear explanation of the problem, but now the question for you is crystal clear....is there any way to fix in HA or in deConz in order to have properly working ? thx One more question....how can I understand which is my firmware installed ? I was looking for one of the two strings referred by you inside deConz cluster info panel and I didn't find it. |
Yes ! @Smanar is going to pull a MR to correct that
Hum, very strange. {
"etag": "e23005c63baee54ae855d83d17ab50c9",
"hascolor": false,
"lastannounced": "2020-10-17T21:54:09Z",
"lastseen": "2020-11-05T14:35Z",
"manufacturername": "Legrand",
"modelid": "Shutter switch with neutral",
"name": "Volet roulant Salon",
"state": {
"bri": 254,
"lift": 100,
"on": true,
"open": false,
"reachable": true
},
"swversion": "0021",
"type": "Window covering device",
"uniqueid": "00:04:74:00:00:99:c9:bf-01"
} |
@lambu76 |
I don't have at all the Gateway. I executed the API call and this is a fragment of the response.
aligned with the Phoscon App. I just bought 10 days ago on Amazon for some tests. |
Hum very strange .... maybe a very old firmware so ... |
Not that one. Mine is BTicino, italian brand . |
Oh .... very different ! |
I think it0's only different in term of cover but not in term of functionalities....btw it generates the same problem. It works perfectly from deConz, but not from HA |
@lambu76 I have already answered (and on several issue), your device is not yet in deconz, if you want to make try with it, you need to compile the code or wait for future version. |
let's wait.... :-(( |
Ok so for the little story, we have found 2 methods to try
All have advantages and disadvantages. For exemple if you use the "stop" command. if you use script or monitoring, or the delay to have the return. @samsam-rolon is testing the 2d method ATM. |
Problem is the same with firmware 0x23 :-( |
I tried last firmware 2.05.88 and there is no changes in the wrong behavior with Legrand Bticino Living Light L4027C used with Hass.IO ....let's hope in the very new version 2.06.00 just released today. |
Yep, the patch was not in the version 88, but in the 2.6.0 |
ok thx. I have to wait the auto update for Deconz add-on into Hass.IO. thx |
yes, i have exactly the same problem ! but as i'm a noob with Deconz and HA, not sure to understand everything..... |
There is a patch (probably) for this bug in the deconz version 2.6.0 (beta version) |
ok.... is it difficult to install it on HA ? |
Yes ^^, and more if you are using container. |
i installed Deconz also on my computer ( Windows10 ).... is it possible to update it there, and then put the Conbee2 on my Pi4 ? |
ha yes to try you can install deconz on the PC I have just see the beta version available for windows too (but the conbee need to be on the PC) It s deconz you need to update, not the conbee. |
after some thought about that, i think the windows version of Deconz is not the same than the Pi4 version under HA.... |
does someone know when version 2.6.0 will be deployed also on Deconz add-on version for Hass.IO ? thx |
@lambu76 do the device is working for you ATM ? |
yes it works with HASSIO with deconz installed as official add on. |
Hello
I need support on integration deconz in HA.
In facte all seems good except for Legrand celiane netatmo cover shutter switch.
The switch is present in deconz and in home assistant too but in HA it remains in closed state continuously
The stop command works, the open command works
but the home assistant closing command does not work, it activates the opening, not closing.
If i use deconz api rest i can open and closed the cover normaly
http://1*******:40850/api/********/lights/3/state
{ "open": false }
http://1*******:40850/api/********/lights/3/state
{ "open": true }
it looks like the entity "cover" in home assistant is badly configured for closing
The text was updated successfully, but these errors were encountered: