Hi, i’ve implemented a cover template (which call 2 scripts for manage a 4ch sonoff, 1 ch up, 1 ch down). Becouse sonoff is used also from other source (ewelink app, google home) i would like to make an IFTTT script that update the state of cover template when sonoff ch are opened.
So, the question is, how i can update only the state of HA cover template from IFTTT (using webhook)? If is needed or is more easy i can also make a “fake” sensor connected to the cover template and update the state of it. I’ve try some things but i don’t reach any result.
Thank you.
No one has a solution?
automation:
- id: ‘xxxxxxx’
alias: Automation Name
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
action: change_state
action:
service_template:
data_template:
entity_id: cover.covercode
There is a service that change the state of “cover.covercode” or somethig that give me the same result?
Thank you.
Solved by my self. I’ve used the set_cover_position service setting it al 100 while openining, and 0 while closing.
It change the state without call “movement service”.
Bye