core: Deconz cover slider with wrong position -> 10% sends 90% to deconz
The problem
When using a cover device (deconz cover device) the cover slider is working in “reverse”. If I set the slider to 10% it sends a command to deconz to put at 90% and if I put at 20% it sends a command to deconz to set it at 80%.
Environment
- Home Assistant Core release with the issue: Home Assistant 0.115.3
- Last working Home Assistant Core release (if known): N/A
- Operating environment (OS/Container/Supervised/Core):
- Integration causing this issue: Deconz
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/deconz/
Problem-relevant configuration.yaml
Traceback/Error logs
slider set at 10% (Example)
DEBUG (MainThread) [pydeconz.gateway] Sending “put” “{‘on’: True, ‘bri’: 229}” to “192.168.1.93 /lights/13/state” DEBUG (MainThread) [pydeconz.gateway] HTTP request response: [{‘success’: {‘/lights/13/state/lift’: 90}}] DEBUG (MainThread) [pydeconz.websocket] {“e”:“changed”,“id”:“13”,“r”:“lights”,“state”:{“bri”:228,“lift”:90,“on”:true,“open”:true,“reachable”:true},“t”:“event”,“uniqueid”:“ec:1b:bd:ff:fe:84:f8:10-01”}
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 40 (21 by maintainers)
@Kane610 Just to provide you some feedback. This issue should be solved on Deconz side. I wanted to thank you for all the help and patience! I’m currently using the entire code from the dev that you asked me to test and along with the dev code from Deconz everything is working! Again, thank you!
I forgot to revert the value when setting explicit position within the integration; it needs to be translated to 100 - position.