just installed SmartWings roller blinds using zigbee interface and zigbee2mqtt in HA. It exposes up, down, stop, battery level, and link quality entities. Works great, (you don’t need the remote to pair it BTW) but, the up and down are backwards and it shows blind is 88% open which is actually 88% closed. I was reading in this forum about a template to swap this? How is this done and where to you put the template code etc. would love some suggestions - thank you.
You may need to install the https://spook.boo/ add on then it should give you the option if HA does not have it natively to make an inverse helper:
Thanks for the tip, I will check it out. seems like having an inverse helper would be a great feature to build into HA natively.
for those reading this down the road, turns out that smartWings has an invert option from the remote using a few key sequences. works great now. So far impressed with the new roller blinds.
I also tried this but when I inverted the HA card buttons, it inverted the physical buttons on the remote. If I used the zigbee2mqtt invert setting it wouldnt work for Alexa (alexa close would open and vice versa)
The best I can get is alexa works, the remote works, and the cards are almost right. Only thing is it shows as closed and says open, and vice versa.
Something definitely changed with zigbee2mqtt because I was able to add a smartwings blind months ago and it worked fine.
Weird. I swapped the controls in HA by holding up and down remote keys for 5s, then hit the button on the back (under remote battery cover) and press the P button. with my zigbee2mqtt setup the settings are now correct in HA and the remote still works correctly as expected (up arrow raises blind). my blinds just arrived a day ago. it looks like invert button in zigbee2mqtt only does the cover (reflecting 100 to either be all open or all closed). is there another setting as well?
Do you use Alexa?
I don’t use alexa.
Thanks for the information.
That is the issue I am having. If I change the controller buttons, Alexa reverses, If I reverse Alexa, then HA buttons are inverted.
Might be a moot point as Alexa seems to be going down the drain with subscriptions and loss of features and I think I will move to Siri.
I can confirm that what @mbett writes above works! I’ve been sitting on this for 9 months and finally it all works as expected.
No Alexa here either. @liamp, if it’s anything like Google Home you can probably set up Alexa with some custom phrases or remove these devices from Alexa and set Alexa up to control your shades through HA instead.
@ronverstappen Anything I change breaks HA. If I get the slider to work the updown arrows break. If I get arrows to work Slider is wrong. UP is closed and Down is open.
Pulling my hair out.
The funny thing is that I have a set of blinds I set up on V1.36 and they work fine.
Do you mind doing a step by step on how you paired your blinds with Z2M and what card you are using for HA.
I use the dongle below running z2mqtt
SONOFF Zigbee 3.0 USB Dongle Plus Gateway, Universal Zigbee USB Gateway with Antenna
https://www.amazon.com/gp/product/B09KXTCMSC/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
there are two ways to pair the smartwings blinds to zigbee.
- hold the button on the blind motor for 6 seconds, the blind will jog and a red light will turn on indicating it is in pairing mode. it will then show up in your z2m devices list
- Remove the rear battery cover of the remote, Press the left P button (1 jog), UP (1 jog), and P (1jog), When the Red led light on indicates that you entered the pairing mode.
I had the problem, and fixed it easily. I am using zigbee2mqtt. ymmv
Steps:
- Do the normal pairing
- Detect that in the home assistant UI, both the up/down buttons and the open/closed are backwards. While the buttons on the remote are correct.
- In Home Assistant, go to Zigbee2mqtt | Click on Shade Device | Settings (specific) tab | Invert Cover - and change this from the default to be “true”
- Notice that now home assitant reports that 100% closed, is closed, and open is open. However, also notice that the “up” button in the UI will actually close, and the “down” button will open the blind. Which means we are half way there.
- On the remote, press both the UP and DOWN buttons at the same time, and wait double “bump” on the blind.
- Open the back cover of the remote and press the “P” button
- Go to shade and press the identify button.
- Now notice that on the remote, the up button makes the blinds go up; the down button makes the blinds go down; in the UI, the up button makes the blinds go up; and in the UI, the down button makes the blinds go down. Also the percent open is correct
All is good.
Hope this helps someone else.
The issue is the “state” – is there any way to fix the reported state from the blinds without a helper workaround? This seems like a defect from the blind itself. Dev Console doesn’t appear to have a cluster/attribute on the endpoint.
For clarity, my symptoms are as follows:
- All blinds are paired with both Home Assistant (Z2M) and the Remote
- Remote control works correctly (up is up, down is down)
- Cover Card is INCORRECT, up is down and down is up.
- While using the Invert Cover to true, State shows Closed when Open / Open when Closed. 100% when Opened, 0% when Closed. The Up button on the card is disabled, and tapping the DOWN button does nothing.
- While using the Invert Cover to false, State shows Closed when Open / Open when Closed. 0 % when Opened, 100% when Closed. The Down button on the card is disabled, and tapping the UP button closes it.
Hi, see my response at the bottom here: Cover entities that are 0% = open and 100% = closed - #7 by ciscomike. I was dealing with the same state issue and got it fixed for my Smartwings with the code there. Hope this helps!