alokin79
(Nikola)
January 19, 2016, 1:59am
1
i´ve been scratching my head and searching the web for 4 hours now
i am desperate for help
i have a fibaro 2xrelay switch mounted on my water pipe heated floor system, NOW! when i send switch command to ON, the magnet switch on the heating system CLOSES
i need to reverse so ON = OFF, OFF=ON
i´ve tried (invert_state=true) but that only works on multilevel switch command witch doesn’t works on my device
i guess i have to make a RULE for that but don´t know how
rlkoshak
(Rich Koshak)
January 19, 2016, 2:38am
2
You can create a rule with a Proxy Item.
// Items
Switch fibaroSwitch {binding stuff}
Switch ProxyFibaroSwith "nice label for sitemap" <icon> // no binding
// Rule
rule "Send command to Fibaro"
when
Item ProxyFibaroSwitch received command
then
if(ProxyFibaroSwitch.state == ON) fibaroSwitch.sendCommand(OFF) else fibaroSwitch.sendCommand(ON)
end
1 Like
bartus
(B K)
January 19, 2016, 2:55am
3
What about using mappings=[0=“ON”, 1=“OFF”] in the sitemap, when you add the Switch item?
alokin79
(Nikola)
January 19, 2016, 2:56am
4
Thanks
but sent the relay to a continuous loop
just deleted the code after ELSE then it worked
but now i need it to show correct switch status, and by correct i mean opposite
alokin79
(Nikola)
January 19, 2016, 2:58am
5
never done mappings before could you float me some code
this is the switch
Switch Garagevarme1 “Off/On” (Temperatur) { zwave=“4:1:command=switch_binary”}
bartus
(B K)
January 19, 2016, 3:00am
6
Try this in your sitemap
Switch item=Garagevarme1 label="your label here" mappings=[0="ON", 1="OFF"]
alokin79
(Nikola)
January 19, 2016, 3:12am
7
Thanks a lot
now i can go to sleep… its 04:12
rlkoshak
(Rich Koshak)
January 19, 2016, 3:54am
8
It wont work without the else. Something else is wrong. Are you sure the
proxy item has no binding? I. E. No curly brackets.
Are you sure you copied it just as it appears: triggered by the proxy,
only send command to the item with the binding?
Please post your items and rule.