Hi,
I want to create a simplerule to snd me an email every time a swich is pressed
This is the rule
`import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
rule “Toets gedrukt”
when
Item Licht_Gelijkvloer_Bijkeuken_Centraal changed
then
sendMail( “myemail@domain.be” , “Toets gedrukt” , “Er is een toets gedrukt” )
end
`
The problem is that I get this error while pressing the button
23:33:30.966 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule 'Toets gedrukt': The name 'sendMail(<XStringLiteralImpl>,<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.
Do I have to dd something?
Thanks
Marc