Flash a Hue lamp with Twitter hashtags

This flow will look for specific twitter hashtags and will flash a Philips Hue lamp once when a hashtag is detected. It requires the hue node (you need to have installed node-red-nodes and the node-hue-api module) and a valid Hue access token.

It is a simple flow that also demonstrates how to set parameters on the Hue node using the message input.

[{"id":"e973b4e.f168c48","type":"twitter in","twitter":"","tags":"#iot","user":"false","name":"iot","topic":"tweets","x":111,"y":128,"z":"d192ee66.2e6d1","wires":[["a2a6b979.5d5948","74b8bc6d.8b4744"]]},{"id":"a2a6b979.5d5948","type":"function","name":"set_payload","func":"msg.payload = \"alert\";\nmsg.lamp = 2;\n\nreturn msg;","outputs":1,"x":286,"y":127,"z":"d192ee66.2e6d1","wires":[["aef74415.5108b8"]]},{"id":"aef74415.5108b8","type":"HueNode","name":"FlashHue","username":"","discovery_mode":"","lamp_id":"2","color":"EBF5FF","brightness":"100","lamp_status":"AUTO","x":467,"y":127,"z":"d192ee66.2e6d1","wires":[[]]},{"id":"74b8bc6d.8b4744","type":"debug","name":"","active":true,"console":false,"complete":false,"x":254,"y":224,"z":"d192ee66.2e6d1","wires":[]}]

Flow Info

Created 10 years, 10 months ago
Updated 9 years, 4 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • function (x1)
Other

Tags

  • hue
  • twitter
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option