i am using a bit more complex rule in OpenHAB 2.x (see example below). Now I’m not sure how to get them into the new OpenHAB 3 world? Do I have to use ECMAScript or DSL Rule?
The core is the HTTP request with authentication:
OH3 uses the next gen rule engine that was introduced in OH2. Therefore you can use DSL and ECMA scripts. If you prefere to use the Webinterface to write the rules you will need to rewrite the rule in ECMA because vals outside a rule are not possible when creating a rule in the GUI.
But OH3 supports still the old rules. So you can give it a try and place your rule in the rules folder. If you do this you can use variables for serval rules in the same file. And in best case your rule is still working because you use http from a java class and not the http binding which was replaced with OH3
Hello @ysc
While i suppose i could use the HTTP binding for this, but still wanted to check how to handle encoded (gzip) response body? i was trying to fiddle with GZIPInputStream but couldnt do it.
Thanks in advance