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)
channels: - id: Eingeschaltet channelTypeUID: http:switch label: Eingeschaltet description: "" configuration: onValue: "true" mode: READWRITE offValue: "false" stateTransformation: JSONPATH:$.properties.value commandExtension: /action/turnOn
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?
I am using:
buildString: Milestone Build
the http binding from SmartHomeJ
266 │ Active │ 80 │ 188.8.131.52104290318 │ SmartHome/J Add-ons :: Bundles :: HTTP Binding