This is the followup about how I solved it using rules.
As mentioned above, changing a thing’s config using the openHAB /things
endpoint works like a charm. So that’s what I’ll do and thoroughly test now. See my real life example:
rules
rule "Work: Slow down Dimmer when adapting level"
when Item work_lights changed to 0
or Item work_lights changed from 0
then
var Number new_value
if(work_lights.state > 0){
logWarn("work.dimmer.adapter", "Dimmer level adaption. Setting to slow steps.")
new_value = 100
}
else
{
logWarn("work.dimmer.adapter", "Dimmer off. Setting to fast steps.")
new_value = 2
}
val String json = '{"config_6_2": ' + new_value + '}'
logWarn("work.dimmer.adapter", json)
sendHttpPutRequest("http://openhab:8080/rest/things/zwave:device:bridge:node18/config", "application/json", json)
end
This works well with the Fibaro Dimmer 2 FGD212
. I just hope they save the settings in a flash memory and not an EEPROM which can only handle a few hundret writes. I’ll report back here if this breaks prematurely.
I’ll also let you hear from any new findings and problems - if any. Until then, I am open to any questions regarding this and wish you guys a nice day!