Input button helper not available as trigger for automation

I am trying to create a “virtual button” (that’s what it’s called on Hubitat Elevation) that I can expose to Google Home so that I can kick off an automation using a voice command. I have created an input button helper, but it is unavailable to select as a trigger for an automation.

Is it possible to use a input button helper as a trigger for an automation? If not, what is the best way to accomplish a “virtual button” that can be exposed to Google Home?

You can use the an input button helper entity to trigger an automation, but you need to use a State trigger:

trigger:
  - platform: state
    entity_id: input_button.test_button

I don’t used Google home so I can’t comment on that part of the equation.

Thank you! I was previously l looking for a device trigger, but a state trigger was what I was looking for!

When state changes to unavailable or unknown , the automation fires ! ! !

With automation like this, it fires each time i restart HA

so i’m trying like this (i’m actually testing…):

trigger:

  • platform: state
    entity_id: input_button.xxxxxxxxxxx
    not_to:
    • unknown
    • unavailable
    • undefined