I have a sunshade with a Sonoff CH4Pro (Tamosta) and I followed the instructions on this thread:
Hello,
I worked on the Sonoff Dual that I installed the firmware Sonoff-Tasmota. I’ve integrated it with Home-Assistant using MQTT commands.
You can set a Window Cover position from the Window Set Position which is converted from 0-100 to 0-16. I’ve set the timer 2 seconds more (18 sec) in order to go fully down or up.
The Window Position is the current position of the Window Cover that is changed with the MQTT Commands (ON/OFF). If all automations are working correctly, you don’t have to cha…
Everyhing is working BUT:
When the sunshade is rolled up the status is “open” and when is down the status is “closed”.
I need to invert them.
How can I do?
Thanks!
nickrout
(Nick Rout)
November 13, 2018, 7:33am
2
Why not ask in that thread?
Because, IMHO, it could be a general problem: opening a new thread could give more visibility in the future searches.
But you have right, I will post the message in that thread, too!
nickrout
(Nick Rout)
November 13, 2018, 7:42am
4
I just think that the expertise is there, and the contributors to that thread will see your post, they might not see this thread
myle
(StePhan McKillen (Other kiwi Here))
November 13, 2018, 9:08am
5
What about just changing the on to off and the off to on
I don’t think it works because the line
position_template: “{{ (((states.input_number.window_position.state | int) * 100)/18 | int) }}”
gives to HA the status of the sunshade.
At least, it seems to me…