Simple boolean

Hi,

Can anyone let me know why this boolean isn’t turning on?

 - alias: Enable Richard arives home Trigger
   trigger:
     - platform: time
       at: '13:00:00'
   condition:
     condition: or
     conditions:
       - condition: state
         entity_id: device_tracker.richard_pretious
         state: 'away'
       - condition: state
         entity_id: device_tracker.richard_pretious
         state: 'work'
   action: 
     - service: homeassistant.turn_on
       entity_id: input_boolean.trigger_richard_home

The boolean turned on at 19:56 for 28 minutes, but I arrived home at 18:12 and I want it to turn on at 13:00

you’re not using the right command, it should be input_boolean.turn_on

Thanks lolouk44

You can definitely turn an input_boolean on using the homeassistant.turn_on service, although it’s more efficient to use the input_boolean.turn_on service.

I think your problem is the condtion(s) of your automation. E.g., when you’re “Away”, the device_tracker’s state is 'not_home', not 'away'. See Device Tracker Device States.