stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

Shutter blinds position at HA reboot #131

Closed jokerigno closed 5 years ago

jokerigno commented 5 years ago

I'm using your fork to manage my shutter blinds and everything is ok.

The only "issue" is that if i Reboot my Home Assistant I can't see shutter position anymore.

There's a way to fix it?

Here's my code for covers in HA:

cover:
  - platform: mqtt
    name: "Tapparella"
    availability_topic: "tapparellatele/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    position_topic: "tapparella/stat/SHUTTER1"
    position_open: 100
    position_closed: 0
    set_position_topic: "tapparella/cmnd/shutterposition"
    value_template: "{{ value | int }}"
    command_topic: "tapparella/cmnd/backlog"
    payload_open: "SHUTTEROPEN"
    payload_close: "SHUTTERCLOSE"
    payload_stop: "SHUTTERSTOP"
    retain: false
    optimistic: false
    qos: 0
titomontes commented 5 years ago

It seems you need to set PowerRetain 1 in the console.

It´s working for me for the time being.

jokerigno commented 5 years ago

You are right!

Thank you for your feedback. Issue closed.