Vera OpenSprinkler Child Devices not in Same Room
-
Hello @therealdb , I had to rebuild my sprinkler set up and noticed that none of the child devices that the plugin created automatically showed up in the same room as the parent device. The variable
ChildrenSameRoom
is set to 1 but all my zones are in "No Room". Is there any quick way I can get them all in the same room as the parent device? I have around 18 child devices so manually setting each room will take quite long! -
-
@akbooer Thanks for the tip, unfortunately I am running the plugin on my Vera Plus not OpenLuup. Is this the correct category for Vera plugins?
-
You are good on the category. I think the lua code would do the trick.
for k, v in pairs(luup.devices) do if v.device_num_parent == **opensprinkler parent device number** then luup.attr_set("room", **room number**, k) end end
@rafale77 said in Vera OpenSprinkler Child Devices not in Same Room:
for k, v in pairs(luup.devices) do
if v.device_num_parent == opensprinkler parent device number then
luup.attr_set("room", room number, k)
end
endWell that was way easier than I was expecting!! Thanks @rafale77