jeedom-zigate / jeedom-plugin-zigate

Plugin Jeedom for ZiGate key.
MIT License
29 stars 12 forks source link

Ikea Tradfri Wireless Dimmer #144

Closed smulle48 closed 5 years ago

smulle48 commented 5 years ago

Version plugin 1.2.2 Version lib 0.28.1 / 0.28 Version firmware 3.0f

After upgrading the lib, the IKEA wireless dimmer does not work. When added is shows up as an generic device with only refresh. If I downgrade to 0.27.9 it works, and the dimmer is added correctly with all values and commands skaermbillede 2019-02-22 kl 15 24 16

doudz commented 5 years ago

will be fixed by lib 0.28.2

smulle48 commented 5 years ago

sounds great :-)

smulle48 commented 5 years ago

@doudz Hi again

Something is completely wrong with the IKEA support.

Tried to update to 0.28.2 and the dimmer is recognized as an IKEA dimmer, but the link quality is 0. I tried to refresh the dimmer and the "Commandes" page is filled with "weird" information :-)

I then tried to downgrade to 0.27.9 and the link quality is shown correctly.

One problem with all versions of the lib, is that I can't connect the dimmer to any bulb.

For testing purpose, I tried to install Abielle and everything work as it should. I can add the dimmer to the ZigBee network, connect the bulb to the dimmer, and control everything from Jeedom.

Is it correct that I can't see the dimmer state in Jeedom when using this plugin?? (eg. 10%) In Abielle I can see the dimmer state and the bulb state. skaermbillede 2019-02-25 kl 19 56 48 skaermbillede 2019-02-25 kl 19 57 00 skaermbillede 2019-02-25 kl 19 57 11 skaermbillede 2019-02-25 kl 19 57 18

doudz commented 5 years ago

The remote_level_button is not getting change using the remote ?

smulle48 commented 5 years ago

No. Not at all.

This is how it looks on the dashboard skaermbillede 2019-02-26 kl 06 32 08

doudz commented 5 years ago

Looks like the device "type" is missing, maybe discovery hasn't work. Could you try to call "Découverte" on that device ? Remember to awake the remote to get change.

doudz commented 5 years ago

About the Link Quality, it should works, if not maybe the device is not paired ? When you said you can't connect the bulb and the dimmer, what are you doing with abeille ? and with zigate ?

doudz commented 5 years ago

I ordered a bulb and a dimmer, it will be more easy to test

smulle48 commented 5 years ago

I have tried to include/exclude it multiple times but nothing changed. I even tried to PDM reset. It’s like something is blocking the dimmer when included so I can’t connect the dimmer with the bulb. I tried “Découverte” and it was after that, that all the entireties when number showed up on the commandes page.

In Abeille I can connect the dimmer to ZiGate and it shows on the dashboard as a dimmer correctly. I can then afterwards connect the dimmer to the bulb as original with the Ikea Tradfri. It then afterwards shows up on the dashboard correctly as a bulb, so both a bulb and a dimmer is on the dashboard

doudz commented 5 years ago

ok I understand, there's some things that need to be clarified :

Beside that, as convenient functions, for the dimmer Abeille add commands on the jeedom object to send on / off and level to the zigbee group but really it as nothing to do with the dimmer Any time we could create a button and send a ON command to a group and if there's some bulbs in that group they will turn on.

doudz commented 5 years ago

You can't control the dimmer using zigate, Abeille just mimic the dimmer. If this is what you want, maybe we can add it in a next release

smulle48 commented 5 years ago

As long as I can see battery status, link quality and be able to add bulbs directly with the dimmer, I’m happy :-)

One thing though that could be nice, was to be able to see which devices in groups just like the ikea app, and to be able to move a device from group to group.

doudz commented 5 years ago

This will be added soon ;)

doudz commented 5 years ago

I planned to :

smulle48 commented 5 years ago

You are a champ :-)

I really appreciate the great work you are doing.

Btw. Is the plugin working better in HA? Maybe I should try it again. Been over 6 months since I’ve tried it last time:-)

doudz commented 5 years ago

IMHO HA is better :smile:

smulle48 commented 5 years ago

Is the zigbee plugin for HA just as good as yours for Jeedom?

doudz commented 5 years ago

Since you seems interested by battery informations you have to know that there's no battery panel in HA (not natively) but you can still check battery level per device some screen of my HA image image image image image image image

doudz commented 5 years ago

https://github.com/doudz/homeassistant-zigate

smulle48 commented 5 years ago

That’s really nice:-)

Think I’ll take it for a spin later today:-)

smulle48 commented 5 years ago

is it only the ZiGate folder I have to clone into custom_components ?

What about the panels folder?

doudz commented 5 years ago

The zigate folder should be in custom_components and the panels folder at the same level than custom_components

doudz commented 5 years ago

And you can copy your zigate.jso n file from Jeedom to your ha config folder to keep your config

smulle48 commented 5 years ago

can I expose it to HomeKit? :-)

doudz commented 5 years ago

Yes https://www.home-assistant.io/components/homekit/

smulle48 commented 5 years ago

Which one will you recommend. Hass.io or Hassbian? :-D

doudz commented 5 years ago

No Idea, I use a custom install. https://community.home-assistant.io/t/what-is-the-difference-between-hassbian-and-hass-io/35108

doudz commented 5 years ago

Closing, since I made a test and it's working

smulle48 commented 5 years ago

@doudz

Maybe I'm just a complete fool, but now the Link Quality is not shown in Jeedom. I can see the LQI values in the json file though.

And now my Aqara wireless switch gets disabled after a day or so :-(

Version plugin 1.2.2 Version lib 0.28.4 Version firmware 3.0f

skaermbillede 2019-03-04 kl 15 57 46 skaermbillede 2019-03-04 kl 15 58 10 skaermbillede 2019-03-04 kl 16 00 43

doudz commented 5 years ago

If you click on "Synchroniser" the LQI should appear. You could also try to open "informations" of the jeedom object to see differents values like lqi or lastCommunication

smulle48 commented 5 years ago

It did not work, Now I'm installing on a fresh Jeedom to see if it helps.

Looks like Xiaomi problems are known, sadly :-( Hope it will be fixed soon. I'm planning to use the switch as a door bell, but that's not an option atm, when Xiaomi devices are so unstable

doudz commented 5 years ago

I'm not sure you use the last release of the plugin, on the "Santé" page I see "Rssi" but it has been renamed LQI

smulle48 commented 5 years ago

I'm not sure you use the last release of the plugin, on the "Santé" page I see "Rssi" but it has been renamed LQI

I'm on the latest release, and it still says Rssi. Maybe it's changed in the pre-release?

smulle48 commented 5 years ago

Do you know how long it will take before the update is pushed to the Jeedom market? :-)

doudz commented 5 years ago

Jeedom Market is updated every night

smulle48 commented 5 years ago

Okay. Then I have to wait until tomorrow to test it, unless there’s a way to update it manually

smulle48 commented 5 years ago

working now :-)