Call input_boolean

Hey, can anyone tell me why this input_boolean wont trigger to turn back on at a certain time? Here is a picture of my automation config… thanks

Try adding {} after data

  • data: {}

Sorry doing that has brought up a config error?

Try getting rid of the data: line completely, and just specifying the service and entity_id

- service: input_boolean.turn_on
  entity_id: input_boolean.my_good_morning_bo.....

Pay careful attention to your tabs as well …

1 Like

Heres one that works in my setup

- id: grant_away
  alias: Grant leaves Home
  trigger:
  - entity_id: person.grant
    from: home
    platform: state
  condition: []
  action:
  - entity_id: input_boolean.granthome
    service: input_boolean.turn_on

and another

- id: grant_away_inputboolean
  alias: Grant Away for 15mins
  trigger:
  - entity_id: input_boolean.granthome
    for: 00:15
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - entity_id: input_boolean.grantaway
    service: input_boolean.turn_on

Thank you for your reply’s, I still can’t get it working I have changed my config to what @aheath said and still didn’t turn back on… I don’t see what I’m doing wrong? Thanks

Can you post the entire code instead of screen shots, might help with someone being able to copy paste it to try

1 Like
  • id: ‘1563215568652’
    alias: AlreadyMorning
    trigger:
    • at: 09:36:00
      platform: time
      condition: []
      action:
    • entity_id: input_boolean.my_good_morning_bool
      service: input_boolean.turn_on

Sorry is this better.?

Are you on a PC or phone?

Phone sorry I know the indentation isn’t right…:grimacing::grimacing:

on the phone look for </> and it will make a bit to paste the code in

I tried your code and it worked for me. Will post mine up after dinner for you.

I add ’ ’ around the time ‘19:53’

- id: '1563267910948'
  alias: New Automation
  trigger:
  - at: '19:08'
    platform: time
  action:
    service: input_boolean.turn_on
    entity_id: input_boolean.granthome

Yours would be

- id: '1563215568652'
  alias: AlreadyMorning
  trigger:
  - at: '19:08'
    platform: time
  action:
    service: input_boolean.turn_on
    entity_id: input_boolean.my_good_morning_bool

@jak123uk

Finding it hard to say this without appearing to be rude, so I am just going to ask in the nicest possible default font I can :wink:

Have you read the following:-

Please take particular note of point 11, and the note about code blocks.

I am not having a go, here - just trying to get you the help that you need as fast as possible. Reading code that is not in a code block is nigh on impossible, and YAML is very picky regarding how you tab out your code.

All you need to do to code block is use the appropriate number of back ticks in the appropriate places. Once you know how, it is easy, but you need to learn how. There is a link to explain how to do them in point 11.

I don’t see anything wrong with your automation. You should check to make sure the automation itself is turned on.

Try this example. Adjust the time to whatever you need and confirm the automation is on (otherwise it will never trigger).

- id: '1563215568652'
  alias: AlreadyMorning
  trigger:
    platform: time
    at: '09:36:00'
  action:
    service: input_boolean.turn_on
    entity_id: input_boolean.my_good_morning_boolean

… ninja’d by Phil …

1 Like

Just want to say thank you for everyone that replied and helped me out… The input_boolean now works or so I think I need to wait till 12 o’clock tonight to see if it triggers it back on… but I had set it to on before I went to bed and it called the trigger last night… so in theory it’s off now until it triggers at 12 o’clock to turn it back on ready for the morning!! Fingers crossed!