Cat medication automation

Hi all, I started using HA again after a few years and it changed a lot (which is nice :smile: )

I decided to try and make a quick automation to help remind me to give my cat his medication every day (he needs to get it a while after he eats, so if forget sometimes), but I cannot figure out why the state is being ignored in the condition part. On the developer tools if I change the state to ‘on’ or ‘off’ it does change on the dashboard.

I double checked here if I’m doing something wrong, but cannot see it. here

(I have another automation that resets the input_boolean at midnight)

The flow of the automation is to trigger if its 9am and if the toggle on my dashboard is off/false then it needs to send a notification to my phone.

alias: Gee Oreo sy pil
description: ''
  - platform: time
    at: '09:00'
  - condition: state
    entity_id: input_boolean.pil_vir_oreo_gegee
    state: 'off'
  - service: notify.mobile_app_lya_l29
      message: Gee vir Oreo sy pil
      title: Oreo pil
mode: single

Any help would be appreciated thanks.

There’s nothing wrong with your syntax. Which only leaves this:


Is this the actual entity id?

Check it is correctly spelled in the Developer Tools / States menu.

Open your Home Assistant instance and show your state developer tools.

I created the input_boolean through the helper screen under configuration using the toggle option.

Below is the entity. Everything looks correct, but the automation triggers no matter what the state is of the entity input_boolean.pil_vir_oreo_gegee

How are you triggering this to test it?

You are obviously not waiting for 9am every day.

Manually triggering automations skips the conditions.

There is an option for the trigger automation service to include conditions.

Open your Home Assistant instance and show your service developer tools.

Thank you, that helped a lot.

I didn’t know that running the automation from the automation screen skips the conditions.

1 Like