I have a bluelink Car connected to my openhab and would like to start the heating/ cooling from a blockly rule.
The Car only accepts thing actions to do that. When calling the actions directly from the thing page everything works. How can I integrate this action into a switch in the UI?
This is actually both interesting and scary. Internally in rules, there are “inputs” and “outputs” that are mapped between different “modules” (triggers, conditions and actions are all modules). This system is complicated, and I’m not sure if any of the people familiar with all the details are still around. I know that the code is there, but I’ve never known exactly how to manage it.
Inputs and outputs are mapped automatically by an “algorithm”. This is the first time I’ve seen it fail, but it appears to be what has happened here. To try to understand what happens, can you go to the “Code” tab of the rule, and select YAML + “Show All”. Then copy/paste the YAML of the rule here. I don’t think it will show any information about the automatic mapping, because that’s not stored in the rule, but it might shed some light on what potentially confuses the automatic mapping.
In the YAML view, it’s also possible to manually map this, but again, I’ve never figured out exactly how that mapping is supposed to look (syntax-wise). I don’t quite understand why a condition needs an input mapping, but if you show the rule, perhaps it will become clearer.
I’m sorry, I can’t quite figure out the posted rule. Can you please post it surrounded by triple backticks (```) and with the indentation intact? You have managed to somehow strip the indentation levels, and as they are essential for YAML, I can’t quite tell how the rule looks. There’s something very strange going on the the action, as it seems to have two config sections. But, I can’t tell if it’s a config within a config, or if they are somehow “siblings” (which should be impossible).