Hi there,
I am struggeling with setting up a fibaro smart plug. I am using the FibaroGatway, that has a REST-API to read the state and change the state.
Unfortunately, the current state is defined as:
“value”.“true” ← means on
"value:“false” ← means off
so no problem, I use the onValue/offValue attributes
The part that I am struggling with is how to switch the state. it is done by the url /action/turnOn (and /action/turnOff)
I tried using MAP transformation in the Link as well as in the channel settings and I tried replacing the onValues with true /false and I tried to use the commandExtension with /action/turn%2$s I haven’t figured out how to do it.
I don’t want to write a rule for this…
Can you help?
thanks!
I am using:
version: 3.1.0.M3
buildString: Milestone Build
the http binding from SmartHomeJ
266 │ Active │ 80 │ 3.1.2.202104290318 │ SmartHome/J Add-ons :: Bundles :: HTTP Binding
I didn‘t try, but I think that. MAP transformation of the outgoing value (command transformation)
true → On
false → Off
together with %2$s should do the trick. If it‘s not a bug, this should first use true as value for an ON command and then transform it to On and insert that as command in the outgoing request.