zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
465 stars 182 forks source link

Add service to pass data directly to a node in a flow #6

Closed legomind closed 4 years ago

legomind commented 4 years ago

Almost exactly how webhooks work but with services as well.

My use case for this is pretty simple. I want to pass data from button click events in esphome via homeassistant.service Action

The idea is to have an esphome automation on the button double click event that will call a nodered service in home assistant, and that would in turn trigger the corresponding node in nodered.

zachowj commented 4 years ago

I am pretty sure you can accomplish this now using homeassistant-event-action in ESPHome then using an Events: all node listening for the event.

legomind commented 4 years ago

very clever. Somehow I didn't think of that.

Thanks!