I have a weird situation with most of my automations showing the “unavailable/on/off” dance in the log. One of the examples below, but it seems like its’ almost across the board of the ones I’ve set. They mostly do work, but I do not get why “unavailable” all the time:
Automation yaml:
alias: Office Heating (day)
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.aarlo_temperature_office
above: '22.5'
id: officetempdayhot
- platform: numeric_state
entity_id: sensor.aarlo_temperature_office
id: officetempdaycold
below: '20.5'
condition:
- condition: time
after: '07:00'
before: '17:30'
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- choose:
- conditions:
- condition: trigger
id: officetempdayhot
sequence:
- type: turn_off
device_id: 57d1a18f0003811a9554b2c295824468
entity_id: switch.laptop_ps4_s2
domain: switch
- conditions:
- condition: trigger
id: officetempdaycold
sequence:
- type: turn_on
device_id: 57d1a18f0003811a9554b2c295824468
entity_id: switch.laptop_ps4_s2
domain: switch
default: []
mode: restart