-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom app not removed after time set through "lifetime" value #335
Comments
Of course you're doing something wrong: |
My mistake - I am actually on 0.88! 0.48 was a typo. Sorry for the confusion. |
You need to set the lifetime in seconds. |
I want 24h, so it's 24 x 60 x 60 --> 86400sec |
I'm not sure it's made for such a long period .. |
Thanks for checking - didn't see any limitations in the docu besides that the number needs to be an integer and didn't expect 1day to be too long. |
Should be fine now by change the datatype to long. |
Just checked and unfortunately it's still not working. |
I also have this problem. I'm using OpenHAB to publish this data to my MQTT Server, but this should not make a difference. I want it to not show the solar production one hour (=3600s) after it turned to "producing" 0 W. Here my last MQTT publish is from 21:47 (it's now 2:13, so this last change was ~4.5h ago), the MPTT Message was: |
Hi,
I'm using a Ulanzi TC001 with AWTRIX-LIGHT v0.48 and publish custom apps through MQTT from Homeassistant.
As you can see from the snippet below I try to delete the custom app after 24h (86400 seconds) in case there has not been an update. Unfortunately the "lifetime" value doesn't seem to work as the app just doesn't disappear.
service: mqtt.publish data: qos: 0 retain: false topic: awtrix_1/custom/batwarn payload: >- { "text": "{{sensors}}", "icon": 12123, "textCase": 2, "save": true, "lifetime": 86400, "scrollSpeed": 75, "repeat": 1}
Is this a bug or am I doing something wrong here?
Thanks for your help
The text was updated successfully, but these errors were encountered: