Closed dcolens closed 5 years ago
Availability is not implemented, maybe it's the problem.
You should have a cover entity cover.zigate_0004740000815460_1
and you should be able to open / close and stop
Any news ?
aaah, sorry, I forked and patched it I can submit a pull request if you like ?
yes, PR are welcome :)
Hello i try to use it with home assistant, you can help me ? thank's
@ozer59 I submitted a patch (https://github.com/doudz/homeassistant-zigate/pull/51) that makes the Legrand switch work for me, give it a try and let me know!
To test, replace the cover.py file by https://github.com/doudz/homeassistant-zigate/blob/62867856266c8b96ba809081398ceafaf67e3ca1/zigate/cover.py and restart home-assistant.
ok it's work for me thank's a lot for return of state is hard to code ? sorry for my poor english
thank's for your work
@ozer59 the Legrand switch doesn't support state
I'm trying to use the Legrand mentioned in https://github.com/doudz/zigate/issues/63 with this module.
my first issue was that the cover module is not listed in the supported platforms: https://github.com/doudz/homeassistant-zigate/blob/802dff6fa1fd7ce886bdfc506315d264cd0b2cc2/zigate/__init__.py#L34-L37 this is pretty easy to fix, so I added it to the list.
Adding this line enables the cover module and a cover device gets created:
I'm a bit confused with the fact 2 devices get created:
0004740000815460
and0004740000815460_1
.0004740000815460_1
seems to be the one I'm interested in, however HA lists it asUNAVAILABLE
which it is not. If I press one of the 2 buttons on the switch, I can see the zigate logs on HA debugs so I believe it is connected fine.sample debugs
I can see the 0004740000815460 device but no actions are available, and because 0004740000815460_1 remains unavailable, I can't really do anything with it.
I tried deleting the devices from HA, deleting the zigate.json and restarting. I'm not too sure how the availability state is computed ? Can you help ?
Note: I'm a new to HA, sorry if I missed something obvious?