- Platform information:
- Hardware: Docker Container x84_64/1GB RAM
- OS: Linux openhab-2.4.0-final-deb-12.2018 4.4.59+ #23824 SMP PREEMPT Fri Oct 12 18:31:34 CST 2018 x86_64 GNU/Linux
- Java Runtime Environment: openjdk version “1.8.0_192”
OpenJDK Runtime Environment (Zulu 8.33.0.1-linux64) (build 1.8.0_192-b01)
OpenJDK 64-Bit Server VM (Zulu 8.33.0.1-linux64) (build 25.192-b01, mixed mode) - openHAB version: Upgrade from OH 2.3 Release Build to OH 2.4 Release Build
Issue of the topic: Getting error in karaf console:
22:32:37.933 [ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Checking Devolo Sensor On- or Offline': The name 'sendMail' cannot be resolved to an item or type; line 31, column 7, length 85
22:32:37.940 [ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Checking Fibaro Sensor On- or Offline': The name 'sendMail' cannot be resolved to an item or type; line 54, column 5, length 85
22:32:37.940 [ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Checking Fibaro Sensor On- or Offline': The name 'sendMail' cannot be resolved to an item or type; line 54, column 5, length 85
22:32:37.941 [ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Checking Devolo Sensor On- or Offline': The name 'sendMail' cannot be resolved to an item or type; line 31, column 7, length 85
Affected rules are:
rule "Checking Devolo Sensor On- or Offline"
when
Thing "zwave:device:73a3cf04:node2" changed
then
var wz_status = getThingStatusInfo("zwave:device:73a3cf04:node2").getStatus()
ZwaveWzStat.postUpdate(wz_status.toString())
if (wz_status.toString() == 'OFFLINE')
{
logInfo("FILE", "***** ZWAVE: zWave Thing: Devolo Sensor is " + wz_status)
val message = "From ZWAVE Rule: Devolo Sensor is >> " + wz_status + " <<. Please consider rebooting the Docker container !!!"
sendMail("bla@yahoo.kx", "From ZWAVE Rule: Devolo Sensor is " + wz_status + " ...", message)
}
else
{
logInfo("FILE", "***** ZWAVE: zWave Thing: Devolo Sensor is " + wz_status)
val message = "From ZWAVE Rule: Devolo Sensor is >> " + wz_status + " <<."
sendMail("bla@yahoo.kx", "From ZWAVE Rule: Devolo Sensor is " + wz_status + " ...", message)
}
end
rule "Checking Fibaro Sensor On- or Offline"
when
Thing "zwave:device:73a3cf04:node3" changed
then
var gh_status = getThingStatusInfo("zwave:device:73a3cf04:node3").getStatus()
ZwaveGhStat.postUpdate(gh_status.toString())
if (gh_status.toString() == 'OFFLINE')
{
logInfo("FILE", "***** ZWAVE: zWave Thing: Fibaro Sensor is " + gh_status)
val message = "From ZWAVE Rule: Fibaro Sensor is >> " + gh_status + " <<. Please consider rebooting the Docker container !!!"
sendMail("bla@yahoo.kx", "From ZWAVE Rule: Fibaro Sensor is " + gh_status + " ...", message)
}
else
{
logInfo("FILE", "***** ZWAVE: zWave Thing: Fibaro Sensor is " + gh_status)
val message = "From ZWAVE Rule: Fibaro Sensor is >> " + gh_status + " <<."
sendMail("bla@yahoo.kx", "From ZWAVE Rule: Fibaro Sensor is " + gh_status + " ...", message)
}
end
The mails are sent even though the error occurs. Unfortunately these rules are only triggered at startup hence I can not see if behaviour changes during runtime. But I am using the sendMail function in a lot of other rules but I only see the errors in these two rules.
Everything worked fine on version “OH 2.3 Release Build” !!!
Any idea what goes wrong?
Cheers
Justus