LUUP and parameters - REACTOR

Hello,

Can anyone confirm if the Reactor reads LUUP code without problems? And if so, if it is possible to change parameters through LUUP. I would like to change the LED colors of my FIBARO Walli, Dimmer and Switch in relation to the current values consumed.

My rule is:

Luup code:
–SW LED OFF
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”,“12,1b,0”,125)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”,“12,1b,0”,125)
–DIMER LED BLUE
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”,“11,1b,4”,84)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”,“11,1b,4”,84)
–WALLI LED BLUE
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”,“11,1b,4”,98)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”,“11,1b,4”,98)

Everything is working, except the parameters…

Ty

http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_attr_set
to set a parameter
to change colour of led you would need to call action
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_call_action

Changing configuration parameters on Vera generally requires a reconfiguration of the device, usually done at Luup restart. Luup only sends those parameters when it configures the device. You could try invoking a Reconfigure action on these three devices (in service urn:micasaverde-com:serviceId:HaDevice1) individually, but I don’t recommend it, as each will take several seconds to execute, and so doing it for each of the three devices listed will take a long time. I think it has a low probability of success. An alternative would be to figure out the ZWave command string and send it raw (using the SendData action in urn:micasaverde-com:ZWaveNetwork1 service).

Edit: How to do it with the SendData action.

1 Like