NodeRED with OH3

Hi All,

After installing and setting up OH3 as a controller, I get a list of items but it seems they wont populate.

In the controller I selected V3 and also put in the API token and user/pass

No state… Any thoughts?

Thanks

Do not put the api token you created in the OAuth field. That token is actually the user name you should use. So, of the three fields, user, pass, and OAuth the only one that should have anything is the user field and that should be the generated token.

Thanks Justin, I did this. Still no state. I figure I can just create an openhab2-in2 node with my Item and thats all I need to display the state right? If so, no joy. The item names are populated (which makes me think the connect to the server is fine) but no state.

Your screens shot shows only one test item Study_Lights. Are you sure your Study_Lights item has a value? Is it a group with state NULL?

Thats right, just setting it up

It certainly does

openhab> openhab:status BedRoom1Sw1
OFF

If I trigger the light via Alexa, I’d expect it to update, but it doesnt even read its current state, let alone a new state. I figure there is nothing I need to do to the node, other than select it from the drop down list of available items

That and select the OH instance that you’ve configured, but it looks from the screen shot like you’ve done that.

Can you access the OH event stream at all? If you deploy this:
image
And check the debug list do you see the event stream?
image

I certainly do:

9/11/2021, 2:08:11 pmnode: d761f43db6293667openhab/items/TVStatus/state : msg.payload : Object
{ type: "OnOff", value: "OFF" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/items/Ensuite_WXA50_Power/state : msg.payload : Object
{ type: "OnOff", value: "OFF" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/things/yamahareceiver:yamahaAV:9ab0c000_f668_11de_9976_ac44f282c977/status : msg.payload : Object
{ status: "ONLINE", statusDetail: "NONE" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/things/yamahareceiver:zone:9ab0c000_f668_11de_9976_ac44f282c977:Main_Zone/updated : msg.payload : array[2]
[ object, object ]
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/things/yamahareceiver:zone:9ab0c000_f668_11de_9976_ac44f282c977:Main_Zone/status : msg.payload : Object
{ status: "ONLINE", statusDetail: "NONE" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/items/Ensuite_WXA50_Power/state : msg.payload : Object
{ type: "OnOff", value: "OFF" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/things/daikin:airbase_ac_unit:DaikinAP65279/status : msg.payload : Object
{ status: "ONLINE", statusDetail: "NONE" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667openhab/items/HouseAir_MasterSwitch/state : msg.payload : Object
{ type: "OnOff", value: "OFF" }
19/11/2021, 2:08:15 pmnode: d761f43db6293667
openhab/items/BedAir_Target_Temp/state : msg.payload : Object
{ type: "Quantity", value: "21 °C" }

And yes, the controller was selected.

OK, worked it out! my error. Its displaying. For some reason Study was a legacy name, no idea why its there! Ive corrected it and I can see it working now :smiley: Its called ‘Study Lights’ in MainUI but the actual item is called BedRoom1Sw1, when I link it to the item name as BedRoom1Sw1, it works fine

Sorry for the stuff around

1 Like