Is it possible to set this setpoint to several devices at once just by adding more id numbers ? - how is it done ?
luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“SetCurrentSetpoint”, {NewCurrentSetpoint = lul_hrt4zwset},28)
Is it possible to set this setpoint to several devices at once just by adding more id numbers ? - how is it done ?
luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“SetCurrentSetpoint”, {NewCurrentSetpoint = lul_hrt4zwset},28)
I’m not aware of a way to do a Z-Wave multicast. So I guess you’d just have to repeat the statement for every device.
No, you must call the call_action function for each device. To make it simpler I suggest adding the device IDs in a table like this:
local deviceIds = {28, 29, 40}
for _, devId in pairs(deviceIds) do
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat","SetCurrentSetpoint", {NewCurrentSetpoint = lul_hrt4zwset},devId)
end
“_” is a valid variable name and it’s usually used for unused table indexes, like in this example.
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules