OH3: logInfo in rule

Hi,
I processing the migration from OH2 to OH3 and try to use the new Webbased approach to create rules.

In OH2 my rule looks like this:

rule "Rolladen runter"
when
	Channel 'astro:sun:rolladen:set#event' triggered START
then
	gRolladenWohnen.sendCommand("DOWN")
	gRolladenSchlafen.sendCommand("DOWN")
	logInfo("astro.rules", "Rolladen ausser Wohnzimmer schliessen")
end

The basics are clear for me, but how to integrate the “logInfo”

Assuming you choose Rules DSL as the language for the Script Action exactly as that line is written here. First create the script action and choose Rules DSL as the langauge. Then add the three lines of code between then and end.

1 Like