casperse
(Casperse)
1
Hi All
This has been working perfectly but today I can see that my Home tracking isnt working and I have tracked it down to Node-Red
I really hope someone can help me out?
I made a binary bayesian sensor : binary_sensor.victoria_presence
I then created a Node-Red state of home and not_home like this
And it worked perfectly, but today I see this in the debug window:
I have looked at the sensor and its working fine:
I have another flow in Node-Red and that is working, so it’s not the HA connection
This is so strange haven’t touched this, so why did it stop working?
Updated HA to latest Hass.io could that break it?
Best regards
Casperse
Error:
[error] [api-current-state: ] TypeError: Cannot read property ‘indexOf’ of undefined
Try to use payload.state
in Property
field.
casperse
(Casperse)
3
Thanks - That solved the errors but the device tracker is still broken?
(Is this caused by a upgrade of Node-Red?)
The last Set presence data is:
{“dev_id”:“victoria_bayesian”,“location_name”:“home”}
Your help is much appreciated I am going on vacation soon and nothings is working, when “Home state” isnt working
I had the same problem with payloads after Node-RED update.
Use Debug Nodes to identify the msg and try to understand what’s happening.
Some msgs have changed to objects.
casperse
(Casperse)
5
I have never used a debug node, but I added one and then I get the old error message again?
(I think I will stop auto update of node-red this is causing allot of trouble)
casperse
(Casperse)
6
For some reason I can’t go from ON --> switch?
subzero79
(Subzero79)
7
In the output of the debug node, change to complete object message, instead of payload
casperse
(Casperse)
8
Ok didn’t know that then I get:
Really don’t know what this means I can see the trigger is on so the state should be home?
UPDATE
AND:
Then it looks like I should remove .state
Now I just need to know why the “Set presence doesn’t work”
casperse
(Casperse)
9
SOLVED : The switch needs to be changed to “payload.state” but the sensor needs to stay: “payload”
(Why ohh why did they change this?) Thanks for helping me use bug mode in Node-red
1 Like
casperse
(Casperse)
10
UPDATE: New update makes this change VOID, you have to change it back!
msg.payload (Only)