[SOLVED] Why won't my morning routine automation fire?

- id: '1581435519029'
  alias: Routine - Dave Morning - Off
  description: ''
  trigger:
  - entity_id: device_tracker.google_maps_xxxx
    from: Home
    platform: state
    to: Away
  condition:
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: 'on'
  - before: 07:00:00
    condition: time
  action:
  - entity_id: script.1581354369899
    service: script.turn_on
  - data:
      message: morning routine - off - success
    service: notify.telegram

I have been tinkering with this for a week and it just never fires.

What am I not seeing?

your formatting is weird.
I cannot test it but what about this

- id: '1581435519029'
  alias: Routine - Dave Morning - Off
  description: ''
  trigger:
    platform: state
    entity_id: device_tracker.google_maps_xxxx
    from: 'Home'
    to: 'Away'
  condition:
    - condition: state
      entity_id: binary_sensor.workday_sensor
      state: 'on'
    - condition: time
      before: '07:00:00'
  action:
    service: script.turn_on
    data:
      entity_id: script.1581354369899
    service: notify.telegram    
    data:
      message: morning routine - off - success
1 Like

it should be ā€˜homeā€™ and ā€˜not_homeā€™ use the developer tools> states page to see the real values of what should be using in automationsā€¦ ā€œHomeā€ and ā€œAwayā€ are just the pretty ones you see in the frontend.

3 Likes

also put your time in quotes, like @AhmadK did in above example

1 Like

Thanks @AhmadK and @Bartem - I have updated my automation. Weā€™ll see how it goes tomorrow AM.

it should be ā€˜homeā€™ and ā€˜not_homeā€™ use the developer tools> states page to see the real values of what should be using in automationsā€¦ ā€œHomeā€ and ā€œAwayā€ are just the pretty ones you see in the frontend.

I thought this might be true but kept forgetting to check (because I was driving) what the status was after leaving, since it says work when at the work zone (which is when I remember). I suppose I could have removed the work zone to be away.

also put your time in quotes, like @AhmadK did in above example

Yet again, using the UI automation setup strikes again. I should really learn a lesson and stop using it. It bites me every time I create one in there instead of in the yaml itself. Itā€™s just so quick and easy. Seems to always be a quotation mark issue. Wonder if itā€™s not just me.

Thanks again guys. Hopefully it works.

good idea, didnā€™t think about it!
I went the good old way and it seems like youā€™re right (and there is no such thing as Away at all)

I also used the Automation Editor at first, and wish I would have learned to do it manually from the beginningā€¦ itā€™s actually much easier once you start remembering the format, and then can just pretty much copy and paste and change a couple entities/etc

Typically itā€™s because I had an idea and started from my phone, which would suck to edit yaml. But I just need to stop doing that. haha.

I will update this thread if itā€™s fixed tomorrow.

Routine - Dave Morning - Off has been triggered

Nice! Thanks guys!

1 Like