Hi, I am in the middle of the process of getting rid of the file based configuration. Please don’t discuss why, I just want to simplify the system.
Things, Items, Persistence etc I have already migrated everything.
I am currently trying to transfer the more than 120 DSL-based rules into UI rules as far as possible. And where possible not to inline scripts to keep it as simple as possible.
I have the question of whether it is possible to insert an item value into the output of a Telegram message.
This is how it worked in a DSL rule:
"Battery over 20 per cent, power generation %s. Right time to switch on washing machine, dryer or dishwasher.", Energy_PVoutput.state
Can I also insert something like this in the UI? What would be the syntax for this?
No I don’t think that’s possible. You’ll need to use an inline script.
But if you want something half way between basic UI rules and inline script code, you might consider a look at Blockly. A lot of people who do not already understand code find it easier to work with than text based coding.
Thank you for the clarification.
I’ll see where I can’t do without it, but I’ll use Javascript instead. With Blockly, I’m cautious about what will happen if it is deprecated at some point.
That’s exceedingly unlikely to happen. It’s far too popular and it’s pretty easy to work with an maintain. It’s more likely that JS becomes deprecated some day than Blockly (and I’m not saying JS is in dandger of becoming deprecated).
Also, Blockly “complies” to JS so it makes a decent way to learn how to code rules in JS if nothing else.