Using Home Assistant and Node-Red, I added the “button” Home Assistant entity to a flow. I understand that this will create a button entity in Home Assistant that will trigger a flow when pressed. I can add this entity to a dashboard and trigger the flow from the dashboard. I do not know how to configure this item in Node-Red. The “Entity config” field is the holdup. What do I type there for an entity configuration? How do I add it to a Dashboard?
When I click on the Pencil icon I get the “Edit-ha-entity-config node” page. What goes here? I can hardly even formulate the search term to try and Google my way out of it!
Then I am told that I need to install “node-red custom integration version 1.0.4”, but I cannot find it in the “add integrations” page.
I am bigly stuck. I have been using HA since January and my head is already plucked bald.
Can anyone advise?
This?
Name is whatever you want, you’ll see it in the entity config dropdown menu next time you come back.
Server you probably don’t change unless you have multiple Home Assistant deployments talking to the same Node RED deployment.
Type is button.
Friendly name is its name. Call it whatever you want. I assume the value will be used to set the entity ID as well after slugifying it since there’s no separate option for entity ID.
Icon is an mdi icon like all icons in HA.
Device class is a dropdown. If an option in there describes what happens when your button is clicked then pick it (and then probably don’t set icon). If not, leave it blank.
That’s this. It looks like the doc for button needs an update to link to that. That’s new so I assume it was just missed. The doc for the entity node links to it.
Do you have hacs? If not follow the instructions here. Then you can get it from HACS and make it appear in the integrations menu. Custom integrations aren’t in the OOTB integration list, you have to go download them from somewhere first.
Not really sure what you’ve tried here. Should be as simple as clicking edit on a dashboard, clicking the blue add button, switching to the “by entity” tab and then selecting the button you made. Or if you’re using the autogenerated dashboard then you don’t have to do anything, the button should just appear after its created.
If you’re completely unfamiliar with how to use dashboards in HA I’d recommend starting here. The video and doc should help you get started.
Thank you, CentralCommand Mike. Your post allowed me to get it working! Very useful stuff in your reply.