JoDehli / PyLoxone

Python Loxone binding
Apache License 2.0
184 stars 41 forks source link

Error message since HA 0.110.0 #25

Closed Shogun1978 closed 4 years ago

Shogun1978 commented 4 years ago

After moving to the newest HA version I get an error message all entities:

Light is deprecated, modify LoxonelightcontrollerV2 to extend LightEntity Light is deprecated, modify LoxoneColorPickerV2 to extend LightEntity Light is deprecated, modify LoxoneDimmer to extend LightEntity

CoverDevice is deprecated, modify LoxoneGate to extend CoverEntity CoverDevice is deprecated, modify LoxoneWindow to extend CoverEntity CoverDevice is deprecated, modify LoxoneJalousie to extend CoverEntity

SwitchDevice is deprecated, modify LoxoneTimedSwitch to extend SwitchEntity SwitchDevice is deprecated, modify LoxoneSwitch to extend SwitchEntity SwitchDevice is deprecated, modify LoxoneIntercomSubControl to extend SwitchEntity

Covers still work, dimming of lights also. But switches are just working "one-way" (just switching on, off is no longer working). Would be great if PyLoxone could support the newest HA version.

JoDehli commented 4 years ago

Try the new release. Does the switch work now as expected? If not please give me details which kind of switch. Mine are working as expected.

Shogun1978 commented 4 years ago

I upgraded to 0.23, HA 0.110.1 (and .2) so switches work, but light entities just switch on, not off. No more error messages are visible in the developer log (and also nothing on console, I use HA as docker container). P.S.: in HA the entity does not show as "on", stays always off.

JoDehli commented 4 years ago

I tested it on my system. No problems. Can you sent some screenshots of your light configuration in the loxone config that I can make some test lights like in your configuration.

Shogun1978 commented 4 years ago

Seems like I am coming closer to the issue. Your last post gave me another idea, what to test. If I use a normal switch, cover or light entity (light controller), everything works!

If I use a single item (like one digital output of the Miniserver, e.g. Esstisch (which works fine inside of a light controller scene), I can't switch this digital output anymore. Just on, not off. Using the light controller entity and the light control in HA, it works! So it must be connected with the digital output itself. That worked before very well (I use a wall mounted display to control scenes and single light like Leselicht or Esstischlicht).

P.S.: Another test I did shows that the state of the entity seems to switch off and then does use the switch state from Loxone. So the entity jumps back to "off", so if I fast click "on" and "off" again, it switches off. Maybe this helps.

JoDehli commented 4 years ago

Please try the Dev branch. Hope I screwed nothing else up 😬

Shogun1978 commented 4 years ago

You didn't screwed up anything - I am happy that there is a loxone integration at all (moved from Loxone 8.3 to 10 just because of your integration). Maybe stupid question, but how can I get the dev branch?

JoDehli commented 4 years ago

You must copy it by hand over your custom_component folder from the git Dev branch.

Shogun1978 commented 4 years ago

Tried it, works excellent :-) Thank you for that fast fix!