[SOLVED] Gettings mismatch input "item" expecting "end" errors in rule

Please add code fences to your post.

Here’s the first offender:

then
Item sonoffps.sendCommand(“OFF”)

If you have a variable an item named sonoffps, this should be:

then
sonoffps.sendCommand("OFF")