NorthernMan54 / node-red-contrib-homebridge-automation

Homebridge and Node-RED Integration
Apache License 2.0
107 stars 18 forks source link

Is it possible to add some examples to the documentation? #86

Open Jacksonbm1 opened 3 years ago

Jacksonbm1 commented 3 years ago

This is kind of a feature request. I'm new to node-red and js in general, so would you be able to provide some examples in the documentation? For example, lets say I wanted a switch to change the colors of my lights, how would I do that? I'm guessing I need to use a function, but it would be super helpful to see some homebridge-specific docs. There are a lot online for Home Assistant, but their node-red integrations seem more GUI focused.

NorthernMan54 commented 3 years ago

Did you look at the wiki on GitHub, there a couple of examples there

https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/wiki

Also on the homebridge discord server channel #automation the community is pretty active, and should be able to provide some tips.

PS The quick hack to determine how to control a device is to create a hb-event node, wire it to a debug node, then control it via the home app. The debug node will contain the appropriate payload for the device. Then feed that payload to a control node, with what ever values are appropriate for what you want to do.

slimslickner commented 3 years ago

@NorthernMan54 I came here to ask how to find the payload. I think it would be worth including this in the wiki!

PS The quick hack to determine how to control a device is to create a hb-event node, wire it to a debug node, then control it via the home app. The debug node will contain the appropriate payload for the device. Then feed that payload to a control node, with what ever values are appropriate for what you want to do.

NorthernMan54 commented 3 years ago

@ticknert Pro Tip - anyone should be able to post to the wiki