No, doesn’t work.
But I got a little further. Sending the wake command over mqtt (Wallpanel app) does turn on the screen immediately.
it works as indicated in the WallPanel documentation:
json payloads sent to the mqtt topic: wallpanel/mywallpanel/command
- wake:
{"wake": true}
it also seems to “reset” the issue with the screen not timing out, since the screen goes back to sleep after the timeout when sending that command.
This returned the following logs in logcat:
01-21 10:10:36.142 1206 13999 D AppOps : noteOperation: allowing code 23 uid 10069 package xyz.wallpanel.app
01-21 10:10:36.146 1206 13999 D AppOps : noteOperation: allowing code 23 uid 10069 package xyz.wallpanel.app
01-21 10:10:36.312 672 705 E libnav : CablComputeBacklightLevel(): UpdateType = DifferentSceneUpdate
01-21 10:10:36.328 672 705 E libnav : CablComputeBacklightLevel(): UpdateType = DifferentSceneUpdate
- screen off:
{"wake": false}
doesn not work and does not produce any log entries in logcat either.
however, the adb shell input keyevent 26 still works to turn off the screen, even when it’s stuck on
I tried testing a few other mqtt commands, but they did have no effect (again: not even logcat entries).
the {"settings": true}
command does work, and open the WallPanel settings, however, if the screen times out / or was already timed out before, apparently it blocks further mqtt commands from being executed.
From that state (being in the settings menu) I tried to go back to the Home Assistant dashboard using the {"url":<http://....>}
command, but that one didn’t work either. So best to avoid opening the settings over mqtt.
The {"url":<http://....>}
does work (when not being stuck in the settings), so it can be used to load a specific dashboard - even if that takes 2-3 seconds to complete.
Sadly, the screenOn Parameter in the wallpanel/mywallpanel/state
topic doesn’t work, and does not correctly report the screen state (neither does the brightness level).
So at the moment, we can’t get the current screen state without actually polling them using adb commands.
However, it seems, we can at least turn on the screen in Home Assistant using the mqtt command, and turn if off again using an adb command (there is an ADB integration, I’m going to test that next)