Thanks for your work! This is awesome.
I only have one question, is it possible to disable the app discovery completely (included custom apps)?
Hi,
thank you for your feedback!
No itâs currently not possible to disable the app discovery completely. Do you have a use case where this is an actual problem? For me it never was an issue thus I havenât really thought about that. I think what could be done would be to disable auto discovery and only discover apps during a manually triggered scan. I would need to look into that too see if that requires a change in the binding code or just works out of the box: https://www.openhab.org/docs/concepts/discovery.html#background-discovery
Unfortunately the documentation does not clearly state how/where this configuration can be made
Thanks for your quick reply! Actually this is not a big deal, I use custom apps for a few things like currently playing track, app is created via JS rule, every time I create a new one I need to ignore it in the things Discovery inbox so itâs just a small issue everything else works like a charm!
Hi, thank you for this great binding but i have a problem to display my custom apps with the native Time app. Every time the binding start the native app is hidden.
I need to manualy reboot the awtrix clock to show again the native Time app
Could you please show me how you create the app? I did not observe any similar problems so far
Nothing special, i add app by the inbox. these app display a scrolling text and i activate/desactivate apps by rule.
(When i disabled and enabled the bridge the native Time app is hidden)
And i have 2 strange behaviours
-
in the inbox i have another Awtrix bridge but with another id
-
when i upgrade openhab i always need to reinstall the awtrix binding
perhaps i need to clear the openhab cache ?
Which binding version are you using or where did you get the binding from? The bridge with the different ID in your inbox tells me that you seem to be using the upcoming official version of the binding that will be available with OH5 but you still have the items created by the marketplace version. Could it be that you are using the prerelease version from my GitHub account? Please donât use that version is not ready for production (I should remove that from there)
I think youâre right. I migrated from OH4 to OH5 and didnât realise there was a binding built into the MQTT binding. I usually installed the version available on the STORE and persisted with the OH5 version. I had to recreate the THINGS and everything went back to normal (I hadnât seen a warning about this when I migrated, but I may have missed it). Thank you very much for your help and your explanations
Ok yeah thatâs explains your problems. I just mentioned that the official version is not compatible with the marketplace version in this thread but you may not have seen that of course. I had to change quite a few thing and channel Ids to comply with the OH coding standards to make this binding part of the official code base. On your end that means that you have to recreate your things, glad you figured that out already and got it working again!
Dear Thomas,
thanks for your great work creating this binding!
Just a simple feature request:
Please add the MQTT last will and testament feature to indicate online/offline status that was introduced in v0.98.
This would help for creating a rule to initialize the awtrix apps if the device was (re-)started.
The state âonlineâ or âofflineâ is available in the MQTT topic [PREFIX]/stats/device
.
It could be added as a switch or the general channel status via âAvailability Topicâ like it is done for generic MQTT channels.
Thank you for your input, I agree that this would be a nice addition for the binding. I will have a look at that!
I implemented the LWT handling today but unfortunately it is not really reliable right now. The problem is that the LWT message is not sent as a retained message. Therefore I cannot get the online state unless the clock itself is restarted. So when you initialize your bridge thing when the clock is already running (e.g. due to a OH reboot or when you first create your bridge) you wonât know its online state until the clock is rebooted. @Udo_Hartmann already opened a ticket at the Awtrix 3 Repo: [ISSUE] LWT not showing up · Issue #707 · Blueforcer/awtrix3 · GitHub
If hope this will be changed. If not I think I will just assume that the device is online when the thing is created.
EMQX has a rule engine that allows you to republish the incoming topic to a retained message:
However most users will probably run mosquitto which does not support this.
I just created a PR. The solution was rather simple: As long as the device is online it sends STATS messages on a regular basis. Once one of these messages is received the Thing comes online even when we had not received a LWT message up to then.