Hey guys
I have a bunch of semi-smart Dooya blinds that are integrated via 433Mhz (Broadlink).
They do NOT have any form of positional data fed back to HA neither do they have any binary sensors for open or closed. Each blind physically takes approx 30s to get to its final destination.
I have them integrated into HA using a simple template switch as below:
- platform: template
covers:
mbath_blinds:
device_class: blind
friendly_name: "Master Bathroom Blinds"
open_cover:
service: script.blinds_mbath_up
close_cover:
service: script.blinds_mbath_down
stop_cover:
service: script.blinds_mbath_stop
The script.blinds_mbath_up
simply calls the remote_send command for the blinds.
The switch is exposed to Google Assistant and works fine for open and close.
However I cannot get the script.blinds_mbath_stop
to execute via google (woks ok in the HA UI) and I guessing it is because there is no positional data coming from HA and google is immediately getting the final state of the switch almost immediately from HA and therefore the stop command on a nest hub is greyed out.
Whats the best way of creating a virtual positional sensor based on TIME eg: for 30 seconds after trigger of open_cover: or close_cover: to show a state of moving
or any other relevant state AND if stop_cover is called cancel the timer and change the state to stopped
???
ALSO
What states does Google expect for device_class: blinds for positional or transitional states (obviously important for virtual positional sensor)?
Im sure Im not the first person to do this and any help would be appreciated as Im not a templating natural yet.
Appreciation to anyone that can assist.