Another question though, the received update will be triggered if the scene switch is just reporting status in the wake up… correct? Which mean the rule will then be fired as well.
I am not sure if I am right about the Number item type and the received command part…
I never tried that combo since I have been using received update with my Number items.
Maybe some else can share experiences here also.
Unfortunately… (I think that) you are correct.
I believe that I have seen this (or a similar) behavior also in my system.
When I restart OH2, my scene rules are triggered/fired.
I believe that this has to do with the persistence service (mapdb) and the restoreOnStartup option (and not so much with the status update due to the endpoint device wake up)
The state of the Number item is being updated and the rule fires based on the conditions that I set for the scene.
I don’t know that a Number Item cannot receive a command but it is likely that the binding will only postUpdate for a Number Item. I’m pretty sure I’ve used a Number Item with a Switch with Mappings on the sitemap to sendCommand trigger some rules.
Anyway, I had to deal with something similar back when I had a Minimote set up. What I did was have the rule that does the work trigger on changed and another rule that immediately changes the Item to NULL. It would look something like this:
rule "Devolo 1 Switch"
when
Item Dsc1_Scene changed
then
if(Dsc1_Scene.state != NULL){
logInfo("LightsRules", "Devolo Switch changed")
}
end
rule "Reset Devolo 1 Switch"
when
Item Dsc1_Scene received update
then
if(Dsc1_Scene.state != NULL) Dsc1_Scene.postUpdate(NULL)
end
However, I’m not sure that actually addresses the status reporting wake up. The Minimote is battery powered so there was no status reporting. This could be a tough one.
Unfortunately the normal zwave update/wakeup triggers the rule which is causing disturbance for the lights…
I set the wake up time to 1 week for now.
I wanted to use in-wall relays but i have only the live wire running behind the face plate and no access to neutral wire at all
Is there a smart solution for this case??