That was the problem. One sensor was missing the unit measurement.
Today (I hope) I will test the windy automation.
Thanks
1 Like
Today I was able to test the automation. It was windy so the tent close as it should be.
However later when I tried to open the tent (without wind) the automation didn’t reset (reopen)
I am not sure how exactly the automation works, my cover states are below, and I also tried the service cover.cover_open but it didn’t work either.
Usually we open the tent manually, or through HA (not automated)
Just because the tent don’t report the exact state,
when it is partial open (always) it’s state is always unknown.
Can we use of the unknown status in automation?
- alias: Enable auto cover close
trigger:
- platform: event
event_type: call_service
event_data:
domain: cover
service: cover.open_cover
condition:
# Only do something if it's for the cover I care about
condition: template
value_template: "{{ trigger.event.as_dict()['data']['service_data']['entity_id'] == 'cover.50758014840d8e918614' }}"
action:
- service: homeassistant.turn_on
entity_id: automation.Tent_windy
this is working, so all ok.
- alias: Enable auto cover close
trigger:
platform: state
entity_id: cover.50758014840d8e918614
to: "unknown"
action:
- service: homeassistant.turn_on
entity_id: automation.Tent_windy