I’ve created a button called “Test button” and it appears just fine in the Overview. When I click on the name and settings tab, it says the entity id is input_button.test_button. All good so far, and now I’d like an automation to press it. I created an automation and created a “Call service” action with the service set to “Button: Press”. I then have to type input_button.test_button into the target, as nothing comes up for the “Choose entity”. It looks OK in the as the “Test button” entity appears with the correct icon.
When I trigger the automation, nothing happens and this appears in the home_assistant.log file:
My Zwave dimmer goes offline regularly. When I go to integrations, zwave, find the dimmer, and I click the available button, the dimmer comes back online within seconds. So pressing this button does have a result.
Also, when I make this button available in my dashboard, this is working.
But when I do this in the automation, nothing happens.
What am I doing wrong?
Edit:
When this is working I will use this as a trigger (to avoid unneeded button-presses):
- platform: state
entity_id: light.flush_dimmer_0_10v_boilerweerstand
to: "unavailable"
for:
minutes: 2