If you have the dashio add-on, then the device is already integrated with Home Assistant. You don’t need the node-red node for that. You grab the states from Home Assistant.
Ok thanks for the directions, just for clarity, these entities are to be created as input_booleans which can toggle/switch states ?. Or is there any other entity type which i need to create for these momentary switches (Dash Buttons).
Onwards I guess the workflow would be
Use dasshio to call HA service to toggle input sensor switch on each press.
Use Node-Red events: state node to query the toggle switch state and do the desired action(s).
Is this the direction of thought you are referring to ?
I don’t think there is any momentary switches in HA. At the end of the automation though, you could reset the state of the switch (boolean, or mqtt switch)
Yes. The node palette you were looking at adding accomplishes the same exact thing as the dasshio add-on. You can even have the dasshio add-on talk directly to your node-red instance…but it wasn’t going to give you anything different than what you can accomplish on your own.
This concludes setting up a basic light on/off automation using node-red and amazon dash buttons using input booleans without using Node-Red nodes specifically for dash button (which require libpcap and tcpdump dependencies - apparently not so easy to install on a running HassIO installation).
I guess the possibilities are endless now. Will keep on doing the experiments and will post again.
I try to only use Node Red for the automation pieces, and HA holds all the states and devices. So I don’t have my Home Automation strung across several different services and dependencies.