#Help With RoboRock Vacuum Selective Room Cleaning
1 messages ยท Page 1 of 1 (latest)
put the current state nodes in series
you can remove the change node and set the values directly in the current state node
change "entity state" to be the number you want for the room
actually it might be easier to keep the current state nodes in parallel then use a join node and use that array it creates in the call service node
i did the Multipal current state node for just an example. but i cant even get it to work with just 1 of them the vac becomes unavailable for about 5-10 sec like it crashes
there's a mock example. I can't share an actually example because you're on a older version of the HA nodes
it wouldn't import right
the value in the debug node is what would go in the call-service node in the data field. You would also need to set the data field type to J: expression
the current state node output properties would look like
looks like the segments are suupose to be numbers so you would need to change the above image where it's a-z to 0-9
{"command":"app_segment_clean","params":[{"segments": rooms,"repeat":1}]}
you remove the change nodes and put that in the output properties of the current state node
nothing
in the call-service node check the box to output debug info and paste that here
export your flow. the segments i s empty
wait i think i figured that out, but it still doesn't send it
17 needs to be a number not a string
what you have in the call-service data field doesn't make since on how you got the output from the screen show above
{"command":"app_segment_clean","params":[{"segments":["{{rooms}}"],"repeat":1}]}
should be
it was missing the {{}} around the rooms. this is what I have but nothing
remove that from the current state and put it in teh call-service node
what you have is wrong use this
{"command":"app_segment_clean","params":[{"segments": rooms,"repeat":1}]}
i added in the "" it was saying ValueExpected json(516)
rooms is an array, putting quotes around it turns it into a string
you want it as an array
and you have the data field type set to JSON not J:expression