Using a helper as a trigger in an automation

Hi,

I’m attempting to use a input_boolean helper (exposed to Google Home) as a trigger in an automation, but it isn’t working. I am using the State trigger type, and trying to trigger when the input_boolean is turned off. It’s a very simple automation, but it just isn’t triggering and I have a feeling I am doing something wrong with the trigger.

Here’s the automation:

- id: '1646785819956'
  alias: Unlock the front door
  description: ''
  trigger:
  - platform: state
    entity_id: input_boolean.front_door_lock_helper
    to: 'Off'
  condition: []
  action:
  - service: lock.unlock
    data: {}
    target:
      device_id: 61466ceaf7e7c626807a83a52df67b80
  mode: single

The reason I’m doing this is because I’ve exposed the lock from HA to Google Home, but cannot control it from Google Home (even though I can control it fine in HA). It shows up as a lock, but has a “gear” icon in Google Home and doesn’t allow me to lock/unlock from Google Home. So I’m trying to work around this problem by creating a helper to lock/unlock the door with two automations (this is just one of them - the other automation would be to lock the door, but follows the same concept). If there’s a better way to do this than using a helper in an automation to unlock the door, I’m all ears!

Thanks in advance for any help!

-Scott

states are (almost) always lowercase.

to: 'off'
1 Like

Wow, that was the problem! Thanks so much for the assistance!