Hello, I set up a simple automation to turn on my heater based on google calendar events identifying my workouts. In the description of such events, I include !!-01:00 in order to activate the offset_reached attribute 1 hour in advance. This works, the event gets updated in Home Assistant and the attribute offset_reached is correctly changed to true an hour befor the actual start of the calendar entry.
Now, I set up the following automation:
alias: Heater on from Google Calendar
description: ''
trigger:
- platform: state
entity_id: calendar.heater_on
condition:
- condition: state
entity_id: calendar.heater_on
state: 'on'
attribute: offset_reached
action:
- device_id: XXXXXX
domain: switch
entity_id: switch.shelly_shsw_pm_YYYYYY
type: turn_on
mode: single
This automation doesnāt get triggered, i canāt understand why and how to correct.
Wasnāt working on 0.117 and still not working on 0.118.5.
Any clue?
unfortunately I cannot really support you - besides Iām struggling with the same type of issue ā¦ and Iām lost too although reading that much docu, discord, reddit
Can you maybe post the config of your āheater_onā calendar so I can compare my settings at least.
As I mentioned, the corresponding entity in HA gets updated correctly, and so is the attribute offset_reached . I really canāt understand whatās wrong with the automation.
Thanks! Iāve spend so much time trying to get this to work and use your sensor and it works perfectly. I donāt understand why triggering based on the attribute doesnāt work in automation though!
EDIT:
I added in an or so the state will also trigger the binary_sensor. This way if thereās no offset it will still work.
I have done exactly as above suggested and my Automation is not triggering. I can confirm via developer tools that the binary sensor is properly being updated, however the automation trigger seems to be ignoring the status update. I also tried using direct trigger using the attribute āoff-setā and as seen by everyone posting, that didnāt trigger.