Hello. I have several sonoff Dualr2 devices flashed with tasmota to make blinds work, but when I have a power outage they lose calibration, so I have to make them go up until the end and then I can use them again.
Maybe it’s a tasmota issue or something I didn’t set up fine, but until I figure it out I thought that I could make HA keep the % in an input number so if I detect a power outage, the blinds can go up, wait several seconds and then go to the same position, but I am stuck.
Hi, did you investigated more and found a way to fix without an automation? and in the meantime did you updated the code based on your second post? It seems it still uses entity_id as trigger.
Hi, I have same problem. Out of 4 blinds 2 forget their position after an outage. Does some option set this behavior? I dont remember setting such behavior explicitly ever, but maybe I really just dont remember.
Example from today: all blinds were open, then power outage occured, and after it was over, two blinds were in closed state in tasmota. Then evening automation hit and it closed all blinds except those, that were falsely in closed state.
This have to be set for every blind, so in my house I have 14 of these automations.
I have another automation that calls an script if I have a power outage in hours when my children are awake:
alias: Corte de luz -> Persianas de arriba
description: ""
trigger:
- platform: state
entity_id:
- sensor.power_outage
attribute: acStatus
from: ok
to: error
condition:
- condition: time
after: "09:05:00"
before: "15:30:00"
- condition: time
after: "17:20:00"
before: "21:00:00"
action:
- service: script.1691596479324
data: {}
mode: single
The script does the following: disables all automations from 1, then completely opens all the blinds, waits for a minute (so it be sure that blind is completely open), then sets the blind to the position previous to the power outage, enables all automations again and then sets the position in the input number again:
I know it’s not clean and probably there is a better approach (as @t.srubar stated, maybe there is an option that I set in some blinds and not in others?) but until somebody find another solution seems enough for me.