Is this the perfect standalone tablet for HA?

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!

4 Likes

Tried A8 - after the first time it wouldnā€™t go to sleep.
Trying A11 now - it wonā€™t wake up :man_shrugging:

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 :wink: )

1 Like

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.

2 Likes

ā€¦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!

7 Likes

Really cool idea. Might have to borrow it!

Beautiful dashboards :heart:

Thanks, added to Troubleshooting section in OP

3 Likes

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.

webview

1 Like

This is awesome. Thanks for the contribution. May be worth repacking the rom in OP to include this!

5 Likes

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 ā€¦

1 Like

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?

1 Like

Followed your instructions and apart from a few differences in paths, it installed and I now have the different web views :slight_smile:

Now to test audio and some of the other issues Iā€™ve been seeing

4 Likes

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

1 Like

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.