and rebooted Home Assistant, which does not complain about any error.
The page linked above says “when the button is pressed in the frontend or the button press action is called” but I do not see a button?
Where is the button?
How do I “call the button press action”?
Note: I have a number of sensors reporting via the HA MQTT broker and that part works fine. I can send manually a message to the relay board (from another computer with an MQTT client) and it does get the message so I know that part works too.
Note 2: I am a complete noob with HA so thanks in advance for your patience…
TIA for any help…
This is what I did after creating the button entry under mqtt:
In configuration.yaml, add the button definition as described above. Save the file.
Open the dashboard where you want to place the button and click the Edit icon at the top right.
Create a new section or use an existing one, click the button with a + sign.
This will open a drop down list of available card templates. Select the kind of card you want, I selected Button.
Once the Button card is open, click the drop down box called “Entity” and select the button you just created.
In the Tap Behavior box, select “Perform action” and under “Action”, select “Button: press”
Under Target, click “Choose entity”. This will open a drop down list of available entities. If it does not, you may need to reboot HA and verify there are no error messages. Select the button you created at the first step.
Under “Hold Behavior”, select “Default”.
Save the Button Card
Click the “Done” button at the top right of the dashboard.