node-red-indigo

Posted on
Wed Aug 24, 2022 5:10 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

node-red-indigo

[am I missing something or is there no home for discussion related to the Indigo node-red contrib: https://flows.nodered.org/node/node-red-contrib-indigo?] Not sure if they are actively maintained?

I've been experimenting with using these nodes (as an alternative/complement to MQTT). They work very well testing on the local Indigo machine but the Indigo connection node is hanging node-red when used on a remote machine that in all other respects runs node-red perfectly (an RPi running ChirpstackOS).

Posted on
Fri Aug 26, 2022 1:06 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: node-red-indigo

That's a 3rd party plugin. It's been several years since that Indigo user has posted on the forums, so my guess is that he's moved on. It seems unlikely that it's going to work with the next release and beyond.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Aug 26, 2022 6:40 pm
tazswe offline
Posts: 211
Joined: Mar 13, 2017
Location: Sweden

Re: node-red-indigo

I use Node Red for some applications that I can't do in Indigo, The Indigo Node doesn't work so I use the mqtt nodes and then I use the shims plugin to make devises.


Sent from my iPad with Tapatalk

Posted on
Mon Aug 29, 2022 3:22 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: node-red-indigo

damn!

Posted on
Mon Mar 13, 2023 9:38 am
madscientist offline
Posts: 121
Joined: Jan 05, 2007
Location: Ontario, Canada

Re: node-red-indigo

jay (support) wrote:
That's a 3rd party plugin. It's been several years since that Indigo user has posted on the forums, so my guess is that he's moved on. It seems unlikely that it's going to work with the next release and beyond.


As Jay foreshadowed, I can confirm that the most recent (i.e., nearly 5-year-old) release of the node-red-indigo-contrib palette is not compatible with Indigo 2022.2.0.

Looks like I will need to rework most of my node-red flows to go through an MQTT broker instead of controlling Indigo directly via node-red-indigo-contrib. <sigh>

Posted on
Mon Mar 13, 2023 9:43 am
autolog offline
Posts: 3989
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: node-red-indigo

You will still have to do a change but you can use the new HTTP API | WebSocket API to control Indigo from Node REd. That is what I am now doing. You don't have to use MQTT. :)

Posted on
Mon Mar 13, 2023 10:14 am
madscientist offline
Posts: 121
Joined: Jan 05, 2007
Location: Ontario, Canada

Re: node-red-indigo

Thanks Jon. I will check that out.

Posted on
Tue Mar 14, 2023 2:37 pm
madscientist offline
Posts: 121
Joined: Jan 05, 2007
Location: Ontario, Canada

Re: node-red-indigo

autolog wrote:
You will still have to do a change but you can use the new HTTP API | WebSocket API to control Indigo from Node REd. That is what I am now doing. You don't have to use MQTT. :)


Would you mind sharing an export of one of your node-red flows where you have this working?

Posted on
Wed Mar 15, 2023 3:30 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: node-red-indigo

ditto would like to switch to websockets but I cant seem to get it to work. I can read the all devices definitions feed, and can appear to push a json to ask for a specific device, but not join the 2, unless its not possible with standard node-red websocket nodes.

Posted on
Wed Mar 15, 2023 4:30 am
siclark offline
Posts: 1961
Joined: Jun 13, 2017
Location: UK

Re: node-red-indigo

Got it.. realised that the array values for onOff State of [0] amd [1] flip between true and false, with [1] representing current state.

So you need a
"websocket in" node using this url from docs "wss://your-reflector.indigodomo.net/v2/api/ws/device-feed?api-key=YOUR-API-KEY"
json parse node
switch node based on property msg.payload.objectId. and == your device id
switch node based on the specific value you want to filter on, for my I wanted different actions on true and false, so I used Property msg.payload.patch[6][2][1]. having looked at the json object, and copied the path for the value I wanted.

Hope this gets you moving in the right way. and not down the same rabbit hole I went triyng to get javascript running in nodered!

Simon
Attachments
Screenshot 2023-03-15 at 10.29.23.png
Screenshot 2023-03-15 at 10.29.23.png (99.37 KiB) Viewed 1373 times

Posted on
Sat Mar 18, 2023 1:56 pm
madscientist offline
Posts: 121
Joined: Jan 05, 2007
Location: Ontario, Canada

Re: node-red-indigo

Thanks. I couldn't figure out how to get websockets working, so I ended up converting all my node-red-contrib-indigo dependencies to MQTT subscriptions via FlyingDiver's MQTT Connector/Shims plugins.

Not sure what I would do without FlyingDiver (Joe). Half my house runs on his Indigo plugins. Thanks Joe. You're awesome!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests