Happy user here - two of these up and running now, using Wallpanel to run a tailored HA dashboard and wake the screen on motion. Thanks @mattmon!
Tried A8 - after the first time it wouldnāt go to sleep.
Trying A11 now - it wonāt wake up
I tried disabling sleep in developer options, but still no luck - after a minute of inactivity, the display is off, and I canāt wake it up again. What am I missing?
did you try the camera on/camera off slider on the A11 image?
If itās any help - in the 8.1 ROM, I use fully kiosk browser. In each room I have these in, I also have an Athom presence sensor (PIR and mmWave). I have some scripts and automations that turn the screen off when no motion detected. This is via the fully kiosk integration and the screen switch. It turns off ok but doesnāt turn it back on (most be some quirk in this ROM). However, setting the screen brightness does turn it back on so I also turn that down before switching off the screen and then on wake, set the brightness full. I donāt bother with the motion detection options via screen camera. Works well, quickly and reliably and does exactly what I want to see. I want my screens on and showing everything whenever someone is in the room (or the dogs )
This is the latest dashboard Iāve been working on - similar on all devices but with different lighting scenes and individual lighting controls. Mix of mushroom and bubble card for the popups. Lots of things happening here including conditional alert cards for water softener salt level low, post through letterbox, popup front door camera with TTS announcements etc.Washer and dryer give estimated times and current modes (probably one of the most useful bit of info). Tried to keep it simple with only the most useful info shown.
ā¦and what Iāve found REALLY useful is to setup a maintenance dashboard where I can manage all of my ThinkSmart devices and nspanel proās. I can dynamically set header and sidebar on/off, restart the browsers and reload the start URL. So when programming in my office, I just click and they all reload and refresh ready to go. Love these!
Really cool idea. Might have to borrow it!
Beautiful dashboards
Thanks, added to Troubleshooting section in OP
Rather than building Bromite webview, you can just put treble-overlay-bromite-webview.apk
in /vendor/overlay
, then you can use any webview.
Here are my notes;
First download Bromite Webview for ARM from;
# Change to the unpacked kingston-ha-rom folder.
cd ~/edl/kingston-ha-rom/
# make a folder to store the bits.
mkdir webview
# move and rename bromite webview.
mv ~/Download/arm_SystemWebView.apk ./webview/Bromite-Webview.apk
cd webview
# fetch and unpack bromite webview overlay.
wget https://github.com/arovlad/bromite-webview-overlay/releases/download/v0.4/BromiteSystemWebViewOverlay.zip
unzip BromiteSystemWebViewOverlay.zip
# fetch mulch webview.
wget --output-document Mulch-Webview.apk https://gitlab.com/divested-mobile/mulch/-/raw/master/prebuilt/arm/webview.apk
cd ../flash
# make a directory to mount the vendor image in.
mkdir tmp
#mount vendor image
sudo mount -t ext4 -o loop vendor.bin ./tmp/
# put treble-overlay-bromite-webview.apk in vendor overlay directory.
sudo cp ../../webview/BromiteSystemWebViewOverlay/vendor/overlay/treble-overlay-bromite-webview.apk tmp/overlay/
# make sure the permissions and ownership are correct.
sudo chmod 644 ./tmp/overlay/treble-overlay-bromite-webview.apk
sudo chown root:root ./tmp/overlay/treble-overlay-bromite-webview.apk
# unmount vendor image
sudo umount ./tmp
# flash the new vendor.bin
# Make sure the thinksmart is provisioned.
adb shell settings put global device_provisioned 1
adb shell settings put secure user_setup_complete 1
# enable developer options.
# Install webviews.
adb install ~/edl/kingston-ha-rom/webview/Bromite-WebView.apk
adb install ~/edl/kingston-ha-rom/webview/Mulch-Webview.apk
# Choose the webview of your choice in developer options.
Add the DivestOS repository to F-droid so Mulch Webview can recieve updates.
This is awesome. Thanks for the contribution. May be worth repacking the rom in OP to include this!
Thatās great thanks very much. Iāll try this over the next few days. In the first GitHub link from a very quick scan/read, thereās also a simpler (possibly) install process. Will that work too?
When i try to use adb sideload
I get:
E:Failed to load open driver control: Permission denied
adb devices
is also empty.
So probably not.
ETA: It looks like /build.prop
in boot.bin is a link to /system/etc/prop.build
might be able to fix, hang on ā¦
And your full instructions are for an already fully flashed device or before you flash?
Away from home at the moment so donāt have it in front of me.
Oh, and can you just flash vendor.bin or would you still do the whole set?
Followed your instructions and apart from a few differences in paths, it installed and I now have the different web views
Now to test audio and some of the other issues Iāve been seeing
Please keep us posted.
If you guys develop a solution, Iāll update the ROM zip in OP.
I tried sliding it back and forth but the screen was still locked. Anything else I should be trying?
Not back and forth - just one way!
Unfortunately early quick tests donāt yield any results in getting audio to play through the browser (chrome installed) or just the WebView that HA is using via Fully Kiosk. I can play audio through the device by sending TTS messages etc and that works great. I tried YouTube too in a browser and no audio. There must be something lower level that causes the issue.
Firefox does not exhibit many of the issues that people are experiencing.
Itās also not webview, so ymmv
Iāll try it. Wonāt help for HA though
Hereās an interesting patch set for Chromium webview that appears to try addressing the problem.
Unfortunately, itās pretty old and was never accepted. Who knows how applicable it is to the current code base.