I currently have my phone set up to send the time of my next alarm to a sensor in home assistant, it looks like this:
Entity: sensor.alarmtime
State: Thu 6:30 am
Now what I was hoping to do was take the day and time from this sensor and use it in an automation which would trigger at the alarm time, so every morning my light would come on when my alarm goes off, and the automation would automatically be updated as the sensor is updated.
trigger:
platform: time
hour: 6 <-- (taken from sensor state, updated daily)
minutes: 30 <-- (taken from sensor state, updated daily)
seconds: 00
condition:
condition: time
weekday:
- Thu <-- (taken from sensor state, updated daily)
Is this even possible? I am getting a bit lost at this stage so if anyone could point me in the right direction it would be much appreciated!