Hi there,
im using the telegram-binding to remind myself that 3 days are gone and i should start cleaning again.
This is the rule:
rule "Esmeralda: Check for cleaning request"
when
Time cron "0 0 9 * * ?"
then
logInfo("VACUUM", "ESMERALDA CHECK FOR CLEANING REQUEST")
// if exactly three days are gone
if (dVac1_last_clean_days.state == 3){
logInfo("VACUUM", "ESMERALDA ADDING CLEAN REQUEST")
// Jarvis notification
val telegramAction = getActions("telegram","telegram:telegramBot:jarvis")
telegramAction.sendTelegramQuery("<b> 🧹 Soll Esmeralda wischen? 🧹 </b>\n\nDas letzte mal war vor " + dVac1_last_clean_days.state.toString + " Tagen!","oh_esme_sweep","Wischen","Keine Aktion")
logInfo("VACUUM", "JARVIS NOTIFICATION SENT")
// Create task
lDel_Num.sendCommand(-1)
lTim_Str.sendCommand(lTim_Str.state.toString + String::format( "%1$te.%1$tm.%1$tY", now) + ";")
lTop_Str.sendCommand(lTop_Str.state.toString + "Esmeralda;")
lTxt_Str.sendCommand(lTxt_Str.state.toString + "Ich würde gerne wischen, Senhor! Das letzte mal war vor " + dVac1_last_clean_days.state.toString + " Tagen ;")
lCol_Str.sendCommand(lCol_Str.state.toString + "green;")
lAct_Str.sendCommand(lAct_Str.state.toString + "command;")
lActCom_Str.sendCommand(lActCom_Str.state.toString + "sweep;")
lActItm_Str.sendCommand(lActItm_Str.state.toString + "dVac1_vacuumaction;")
lActTxt_Str.sendCommand(lActTxt_Str.state.toString + "Wischen beginnen;")
lIco_Str.sendCommand(lIco_Str.state.toString + "f7:smallcircle_circle;")
logInfo("VACUUM", "ESMERALDA CLEANING REQUEST ADDED TO LOGLIST")
}
end
As you see
- Each day at 9 am
- If passed Days is exactly 3
- A telegram notification shall be sent
- and “// Create task” does something in my own built task system
If this rule is not executed for a longer time (like e.g. over night), i do NOT get a telegram message and some of the logInfos are missing (see below), BUT the code under “// Create task” is executed
This is what i get from frontail if the telegram message is not sent
You see that everything after Telegram Action seems not to be executed, but the sendCommands under “// Create task” are!
2022-06-01 09:00:00.907 [INFO ] [org.openhab.core.model.script.VACUUM] - ESMERALDA CHECK FOR CLEANING REQUEST
2022-06-01 09:00:00.923 [INFO ] [org.openhab.core.model.script.VACUUM] - ESMERALDA ADDING CLEAN REQUEST
If i then change the rule temporarily (via ssh and VSCode) to execute a few minutes after the current time all of the code gets executed and i get a telegram message with exactly the same code but only changed the cron-time
I assume
- All of my code should be correct because it can properly be executed some times
- Only the fact, that there is a long time where i do not use the telegram binding causes an error
Does this make sense?
Does someone know a similar issue?
I have no idea how to further debug this … maybe some of you have a good advice for that
I already opened
What i found,
but did not help so far:
(Maybe because i dont fully understand it)
My System
- Custom Home Server with TrueNAS-SCALE-Angelfish
- Dockerized openHAB alpine-latest
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: 306664480
totalMemory: 468713472
bindings:
- astro
- chromecast
- http
- ipcamera
- miio
- mqtt
- network
- ntp
- openweathermap
- pushbullet
- somfytahoma
- telegram
- wifiled
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: false
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
pixelRatio: 1
prefersColorScheme: dark
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 8
language: en-US
languages:
- en-US
onLine: true
platform: Linux x86_64
screen:
width: 3440
height: 1440
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: dark
filled: true
pageTransitionAnimation: default
bars: light
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/91.0.4472.164 Safari/537.36
timestamp: 2022-06-01T08:16:21.466Z