Stefan
October 18, 2021, 2:10pm
1
Hello
need help with invers shutter status in end position (not motor direction)
I have added the device QS-zigbee-C01 (Manufacturar is _TZ3000_fccpjz5z = TOMTOP )in deconz via Phoscon. It worked fine!
I could calibrate it with the description i found here:
[(https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3939 )
But
In Homeassistant the status fully open / fully closed is inverted.
The direction of the Motor is ok. But the sensor status of the roller shutter is invers.
That means if the shutter is 100% open, HA mark it as 0% an the button to go down ist disabled.
If the shutter is 0% open, HA mark it as 100% an the button to go up ist disabled.
How can i change the shutter status?
Smanar
October 18, 2021, 3:35pm
2
Stefan
October 22, 2021, 1:33pm
3
thanks for your answer. i have read that i have to install this code
opened 10:06PM - 25 Nov 20 UTC
closed 11:59AM - 07 Dec 20 UTC
Bug report
<!--
- Use this issue template to report a bug in the deCONZ REST-API.
- I… f you want to report a bug for the Phoscon App, please head over to: https://github.com/dresden-elektronik/phoscon-app-beta
- If you're unsure if the bug fits into this issue tracker, please ask for advise in our Discord chat: https://discord.gg/QFhTxqN
- Please make sure sure you're running the latest version of deCONZ: https://github.com/dresden-elektronik/deconz-rest-plugin/releases
-->
## Describe the bug
<!--
Help us understand the issue by providing valuable context.
-->
I have several tuya cover switch. It seems that the implementaiton of tuya cover devices is reporting the attribute 0x0008 "Current Position Lift Percentage" using the scale "% open". It seems that Deconz uses for most of it's cover the scale "% close".
A great job has been done implementing these tuya devices (cover was added in #https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3134)
I spooted this issue in Home assistant in https://github.com/home-assistant/core/issues/40627
## Steps to reproduce the behavior
<!--
If the problem is reproducable, list the steps here:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. Observed error
If the problem can't be reproduced and is sporadic, please provide some details
on how often and when the issue happens.
-->
## Expected behavior
<!--
-->
@Smanar do you thing that the Deconz logic for "Current Position Lift Percentage" could be applied for tuya covers? I mean start using the scale "% closed".
This could be done by applying something in the code like "Current Position Lift Percentage" =100-(Present Current Position Lift Percentage)
Both me and @Kane610 have made extensive testing on this under #https://github.com/home-assistant/core/issues/40627
In this post #https://github.com/dresden-elektronik/deconz-rest-plugin/issues/1121#issuecomment-593112259 @ebaauw explains the logic behind this.
Do you think it's possible to fix it?
Thank you in advance
## Screenshots
<!--
If applicable, add screenshots to help explain the problem.
-->
## Environment
<!--
The deCONZ and firmware versions are found in the Phoscon App: Menu -> Settings -> Gateway,
as well as in the deCONZ GUI: Menu > Help > About deCONZ.
-->
- Host system: (Raspberry Pi / PC / NAS)
- Running method: (Raspbian / Ubuntu / Home Assistent deCONZ Add-on / Marthoc Docker container / Windows / Virtual Machine)
- Firmware version: (26xxyy00)
- deCONZ version: (2.xx.yy)
- Device: (ConBee I / ConBee II / RaspBee I / RaspBee II)
- Do you use an USB extension cable: (yes / no) -- only relevant for ConBee I/II
- Is there any other USB or serial devices connected to the host system? If so: Which?
## deCONZ Logs
<!--
Debug logs can help to investigate certain problems like device pairing and communication issues.
Logging can be enabled on the command line as described in:
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/deCONZ-debug-flags
Secondly, for versions above 2.05.87: In the deCONZ GUI: click Help > debug view. Output of APS,ZDP, ZCL and INFO can be handy.
-->
## Additional context
<!--
If relevant, add any other context about the problem here, like network size, number of routers and end-devices
and what kind of devices/brands are in the network.
-->
cd deconz-rest-plugin
git pull
qmake && make -j2
sudo cp …/libde_rest_plugin.so /usr/share/deCONZ/plugins
But how can i install this. In Deconz or in homeassistant?
I have pur the code in the terminal and get this
Thanks
Mimiix
October 22, 2021, 4:01pm
4
Neither. Needs to be on native linux.
Smanar
October 22, 2021, 4:11pm
5
Stefan
October 22, 2021, 4:34pm
6
For me as an Beginner it looks very difficult. But what about this existing quirk for this device. Is there perhaps an easier way to install it?
opened 06:54PM - 27 Apr 21 UTC
closed 04:17PM - 11 May 21 UTC
problem in dependency
integration: zha
### The problem
I have connected a QS-Zigbee-C01 blind controller with ZHA. It … "works", when I click on up arrow blind goes up and when I click on down arrow bling goes down. However, when blind goes up HA says "it is closing" and when blind is at the top state is closed and position 0. When blind is at the bottom state is opened and position is 100.
I may accept to name things the opposite they are, but it has other implications i.e. when the blind is at top, HA consider it is closed and therefore disable go down button when really is the only direction it could go, so I can only use the possition slider to open it.
How could it be fix?
System is a fresh installation running on a Synology DS216J (package of synocomunity)
### What is version of Home Assistant Core has the issue?
2021.1.5
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Core
### Integration causing the issue
ZHA
### Link to integration documentation on our website
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
Smanar
October 23, 2021, 12:18pm
7
This is for ZHA.
But the PR is already submitted, it s a short modification, perhaps @Mimiix can make magic to make this one be in the future version ^^ ?
Mimiix
October 24, 2021, 2:08pm
8
Not yet. My magic is empty for the moment
Stefan
October 26, 2021, 7:08pm
9
I have found a file here. is it the right one? how to install?
https://github.com/Deejayfool/hass-shutter-card/commit/master
Stefan
October 26, 2021, 7:18pm
10
Today i have installed another shutter switch TS130F from an other vendoor (LoraTap) -TZ3000_8kzqqzu4 But same problem. The Shutter icon in Lovelace is inverted.
If i try to write new position information to the entity i can see the new value in Lovelace. But the icon will not invert.
Smanar
October 27, 2021, 5:35pm
11
I don’t find information about this device on google.
Have you a picture of the device
And a JSON with the real state (to add it on previous PR)
Smanar
October 30, 2021, 7:06am
14
Can use this http://phoscon.de/pwabeta on help/ API information
And you are sure it’s not a wiring issue ?