Trying to use the new sensor data for my Android phone to turn on my light, but I do not know how to set the trigger.
If the device “sensor.sm_g973f_next_alarm” atteribute “Local_Time” is now, turn on “light.bedroom”
My sensor data:
Entity_id: "sensor.sm_g973f_next_alarm"
State: "2020-09-02T03:45:00.000Z"
Atteributes:
Local Time: 'Wed Sep 02 05:45:00 GMT+02:00 2020'
Package: com.urbandroid.sleep
Time in Milliseconds: '1599018300000'
friendly_name: SM-G973F Next Alarm
icon: 'mdi:alarm'
device_class: timestamp