I deleted the extra } at the end, and executed the rule and it still doesn’t work. I’ve updated the washer and dryer rule to use the mail to text rather than pushover service, and it doesn’t work either:
Washer Rule here (dryer is the same, just a different temperature device):
triggers:
- id: "1"
configuration:
itemName: WashingMachine_Electricmeterwatts
type: core.ItemStateChangeTrigger
conditions:
- inputs: {}
id: "3"
configuration:
itemName: WashingMachine_Electricmeterwatts
state: "0"
operator: =
type: core.ItemStateCondition
actions:
- inputs: {}
id: "2"
configuration:
type: application/vnd.openhab.dsl.rule
script: >-
val mailActions = getActions("mail","mail:smtp:52c3a81f84")
mailActions.sendHtmlMail("4169971839@txt.bell.ca", "Arnett Manor", "<h1>Alert</h1>The Washer is done", "https://images.app.goo.gl/LaBjt86F7cMn5NcB6")
LivingRoomEcho_Speak.sendCommand('The Clothes are so very clean')
type: script.ScriptAction
I think any extra __ are gone now since I cleaned up the rules also.
Now I still get some error about the sonoff hot tub rule, and also something about “whitespace” in the email string. Any ideas? Log is here:
2021-05-13 17:24:51.015 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"fnnenY2S","ts":1620941091014,"version":8}
2021-05-13 17:24:51.102 [DEBUG] [onoff.internal.connections.Websocket] - Pong Response received
2021-05-13 17:24:51.249 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Hot tub temp","deviceid":"10010bb4e8","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"20201116001","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:17:67:21","mac":"d0:27:02:17:67:20","ui":"æ’温æ’湿改装件","modelInfo":"5c700feecc248c47441fd24f","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","chipid":"009BE3A7","staMac":"84:CC:A8:9B:E3:A7"},"brandName":"SONOFF","brandLogo":"https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TH16R2","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":-2,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"46be8646-4c1f-4b1c-a597-503e6bcfa7db","online":true,"params":{"bindInfos":{},"version":8,"sledOnline":"on","init":1,"switch":"off","fwVersion":"3.4.1","rssi":-74,"staMac":"84:CC:A8:9B:E3:A7","startup":"off","pulse":"off","pulseWidth":500,"sensorType":"DS18B20","currentHumidity":"unavailable","currentTemperature":"38.5"},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":-2},{"itemType":1,"itemData":{"name":"Front spotlights","deviceid":"10005b9604","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"WO1818607","brandId":"58e5f344baeb368720e25469","apmac":"d0:27:00:b7:29:59","mac":"d0:27:00:b7:29:58","ui":"æ’温æ’湿改装件","modelInfo":"5a2e1add0cf772f92c342ef4","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","staMac":"80:7D:3A:68:7B:0B","chipid":"00687B0B"},"brandName":"Sonoff","brandLogo":"https://us-ota.coolkit.cc/logo/m6N8zJB0O3EVvhCei6zCPStFeKYKAzSa.png","showBrand":true,"productModel":"TH10","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":-1,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"9c70a0e9-161a-4b51-9869-0bae4b6a1eef","online":true,"params":{"bindInfos":{},"init":1,"switch":"off","fwVersion":"3.4.1","rssi":-70,"staMac":"80:7D:3A:68:7B:0B","startup":"off","sensorType":"DS18B20","currentTemperature":"20.1","currentHumidity":"unavailable","sledOnline":"on","version":8,"pulse":"off","pulseWidth":500,"mainSwitch":"off","deviceType":"normal"},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":-1},{"itemType":1,"itemData":{"name":"Dryer temperature","deviceid":"10005b9606","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"WO1818607","brandId":"58e5f344baeb368720e25469","apmac":"d0:27:00:b7:29:5d","mac":"d0:27:00:b7:29:5c","ui":"æ’温æ’湿改装件","modelInfo":"5a2e1add0cf772f92c342ef4","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","staMac":"80:7D:3A:68:7B:2F","chipid":"00687B2F"},"brandName":"Sonoff","brandLogo":"https://us-ota.coolkit.cc/logo/m6N8zJB0O3EVvhCei6zCPStFeKYKAzSa.png","showBrand":true,"productModel":"TH10","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":0,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"fa325905-af58-4e78-90c4-81eb3812f1d8","online":true,"params":{"init":1,"rssi":-65,"staMac":"80:7D:3A:68:7B:2F","startup":"off","fwVersion":"3.4.1","switch":"off","sensorType":"DS18B20","currentTemperature":"19.4","currentHumidity":"unavailable","mainSwitch":"off","deviceType":"normal","version":8,"sledOnline":"on","pulse":"off","pulseWidth":500,"uiActive":60},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":0}],"total":3}}
2021-05-13 17:24:51.256 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10010bb4e8
2021-05-13 17:24:51.267 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10005b9604
2021-05-13 17:24:51.276 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10005b9606
2021-05-13 17:25:08.878 [DEBUG] [ternal.connections.ConnectionManager] - Connection Check Running for mixed mode
2021-05-13 17:25:35.423 [WARN ] [ab.binding.mail.internal.SMTPHandler] - javax.mail.internet.AddressException: Local address contains control or whitespace in string ``Arnett Manor''
2021-05-13 17:25:35.430 [WARN ] [ab.binding.mail.internal.SMTPHandler] - javax.mail.internet.AddressException: Local address contains control or whitespace in string ``Arnett Manor''
2021-05-13 17:25:51.020 [DEBUG] [onoff.internal.connections.Websocket] - Websocket Sending Message:ping
2021-05-13 17:25:51.025 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"4C5pxUOP","ts":1620941151025,"version":8}
2021-05-13 17:25:51.113 [DEBUG] [onoff.internal.connections.Websocket] - Pong Response received
2021-05-13 17:25:51.310 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Hot tub temp","deviceid":"10010bb4e8","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"20201116001","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:17:67:21","mac":"d0:27:02:17:67:20","ui":"æ’温æ’湿改装件","modelInfo":"5c700feecc248c47441fd24f","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","chipid":"009BE3A7","staMac":"84:CC:A8:9B:E3:A7"},"brandName":"SONOFF","brandLogo":"https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TH16R2","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":-2,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"46be8646-4c1f-4b1c-a597-503e6bcfa7db","online":true,"params":{"bindInfos":{},"version":8,"sledOnline":"on","init":1,"switch":"off","fwVersion":"3.4.1","rssi":-74,"staMac":"84:CC:A8:9B:E3:A7","startup":"off","pulse":"off","pulseWidth":500,"sensorType":"DS18B20","currentHumidity":"unavailable","currentTemperature":"38.5"},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":-2},{"itemType":1,"itemData":{"name":"Front spotlights","deviceid":"10005b9604","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"WO1818607","brandId":"58e5f344baeb368720e25469","apmac":"d0:27:00:b7:29:59","mac":"d0:27:00:b7:29:58","ui":"æ’温æ’湿改装件","modelInfo":"5a2e1add0cf772f92c342ef4","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","staMac":"80:7D:3A:68:7B:0B","chipid":"00687B0B"},"brandName":"Sonoff","brandLogo":"https://us-ota.coolkit.cc/logo/m6N8zJB0O3EVvhCei6zCPStFeKYKAzSa.png","showBrand":true,"productModel":"TH10","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":-1,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"9c70a0e9-161a-4b51-9869-0bae4b6a1eef","online":true,"params":{"bindInfos":{},"init":1,"switch":"off","fwVersion":"3.4.1","rssi":-70,"staMac":"80:7D:3A:68:7B:0B","startup":"off","sensorType":"DS18B20","currentTemperature":"20.1","currentHumidity":"unavailable","sledOnline":"on","version":8,"pulse":"off","pulseWidth":500,"mainSwitch":"off","deviceType":"normal"},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":-1},{"itemType":1,"itemData":{"name":"Dryer temperature","deviceid":"10005b9606","apikey":"53c83924-c0eb-4ffa-a289-190c37aae625","extra":{"uiid":15,"description":"WO1818607","brandId":"58e5f344baeb368720e25469","apmac":"d0:27:00:b7:29:5d","mac":"d0:27:00:b7:29:5c","ui":"æ’温æ’湿改装件","modelInfo":"5a2e1add0cf772f92c342ef4","model":"PSA-BHA-GL","manufacturer":"深圳æ¾è¯ºæŠ€æœ¯æœ‰é™å…¬å¸","staMac":"80:7D:3A:68:7B:2F","chipid":"00687B2F"},"brandName":"Sonoff","brandLogo":"https://us-ota.coolkit.cc/logo/m6N8zJB0O3EVvhCei6zCPStFeKYKAzSa.png","showBrand":true,"productModel":"TH10","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"603aedab1b16ca000753d87e","index":0,"roomid":"603aedab1b16ca000753d87d"},"shareTo":[],"devicekey":"fa325905-af58-4e78-90c4-81eb3812f1d8","online":true,"params":{"init":1,"rssi":-65,"staMac":"80:7D:3A:68:7B:2F","startup":"off","fwVersion":"3.4.1","switch":"off","sensorType":"DS18B20","currentTemperature":"19.4","currentHumidity":"unavailable","mainSwitch":"off","deviceType":"normal","version":8,"sledOnline":"on","pulse":"off","pulseWidth":500,"uiActive":60},"denyFeatures":["localCtl","switchWifi","cloudTimer-effectivePeriod"]},"index":0}],"total":3}}
2021-05-13 17:25:51.317 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10010bb4e8
2021-05-13 17:25:51.326 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10005b9604
2021-05-13 17:25:51.334 [DEBUG] [f.internal.messaging.MessageProvider] - Forwarding state to 10005b9606
Hot Tub rule is here:
triggers:
- id: "1"
configuration:
itemName: Hottubtemp_Temperature
type: core.ItemStateChangeTrigger
conditions:
- inputs: {}
id: "3"
configuration:
itemName: Hottubtemp_Temperature
state: "35"
operator: <
type: core.ItemStateCondition
actions:
- inputs: {}
id: "2"
configuration:
type: application/vnd.openhab.dsl.rule
script: >-
val mailActions = getActions("mail","mail:smtp:52c3a81f84")
mailActions.sendHtmlMail("4169971839@txt.bell.ca", "Arnett Manor", "<h1>Alert</h1>The Dryer is done", "https://images.app.goo.gl/AfsbNgVFy2u7912z7")
LivingRoomEcho_Speak.sendCommand('The hot tub temperature has fallen below 95 degrees, please check it')
type: script.ScriptAction
I don’t know what to check for the email whitespace.