Open SHU-red opened 2 years ago
This issue has been mentioned on openHAB Community. There might be relevant details there:
Can you confirm this problem still exists on openHAB 4.2.0 ?
If so, can you provide a log with the rules, slightly adapted with extra logging:
rule "Check for cleaning request"
when
Time cron "0 0 9 * * ?"
then
logInfo("VACUUM", "CHECK FOR CLEANING REQUEST")
// if exactly three days are gone
if (dVac1_last_clean_days.state == 3){
logInfo("VACUUM", "SENDING CLEANING REQUEST")
val telegramAction = getActions("telegram","telegram:telegramBot:mybot)
telegramAction.sendTelegramQuery("<b> 🧹 Shall i clean up? 🧹 </b>\n\nLast time was " + dVac1_last_clean_days.state.toString + " days ago!","oh_esme_sweep","Sweep","No Action")
logInfo("VACUUM", "CLEANING REQUEST ADDED TO LOGLIST")
} else {
logInfo("VACUUM", "NO SENDING A REQUEST DAYS SINCE LAST CLEAN :" + dVac1_last_clean_days.state)
}
end
Expected Behavior
Current Behavior
I hope there is no error on my side, but the fact that exactly this code is working after i re-set the time value for testing purposes tells me that i did not make errors in coding ... hopefully
Possible Solution
Steps to Reproduce (for Bugs)
Context
Your Environment
runtimeInfo: version: 3.2.0 buildString: Release Build locale: en-US systemInfo: configFolder: /openhab/conf userdataFolder: /openhab/userdata logFolder: /openhab/userdata/logs javaVersion: 11.0.13 javaVendor: Alpine osName: Linux osVersion: 5.10.109+truenas osArchitecture: amd64 availableProcessors: 4 freeMemory: 98751320 totalMemory: 310378496 bindings: