#Help With RoboRock Vacuum Selective Room Cleaning

1 messages ยท Page 1 of 1 (latest)

spice night
#

Here is what I have so far. I have it working some what but I'm trying to have switch's for each room and have the robot go and do the rooms when the house is empty.

formal viper
#

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

spice night
#

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

formal viper
#

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

spice night
#

It still crashes the integration

formal viper
#
{"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

spice night
#

nothing

formal viper
#

in the call-service node check the box to output debug info and paste that here

spice night
formal viper
#

export your flow. the segments i s empty

spice night
#

wait i think i figured that out, but it still doesn't send it

formal viper
#

17 needs to be a number not a string

spice night
#

your right

#

but it doesn't work ๐Ÿ˜•

formal viper
#

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

spice night
#

it was missing the {{}} around the rooms. this is what I have but nothing

formal viper
#

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}]}
spice night
#

i added in the "" it was saying ValueExpected json(516)

formal viper
#

rooms is an array, putting quotes around it turns it into a string

#

you want it as an array

spice night
formal viper
#

and you have the data field type set to JSON not J:expression