RapierXbox / ShellyElevate

Software needed to run Home Assistant on the Shelly Wall Display while still keeping all the functions.
MIT License
25 stars 0 forks source link

Kiosk-Mode or supressing adress bar? #4

Open Fritz-la-chatte opened 1 month ago

Fritz-la-chatte commented 1 month ago

Hi, I watched your short video with the Home Assitant interface with great enthusiasm.

Soon, thanks to your instructions, I would like to try putting the HA on the Shelly Wall Display. I noticed in your video that the address bar is still visible in the browser. https://github.com/user-attachments/assets/dfbf606d-deba-43f9-ac13-08e8eea46190

Is it possible to suppress this with a fully kiosk mode in Chrome, to gain more working space and better overview on the display?

Another approach might be to combine this FullyKiosk app, if the manufacturer allows it. https://www.home-assistant.io/integrations/fully_kiosk/

Just an idea, but first of all, I want to thank you for all your effort!

RapierXbox commented 4 weeks ago

Hi, I noticed that too. When you scroll down, the search bar disappears. I was planning to use WebView in a separate application, but the old preinstalled version of WebView doesn't work well with Home Assistant. Updating WebView was tricky for me and often led to a boot loop. However, I'm working on a guide to help with this and will be publishing it soon.

Fritz-la-chatte commented 3 weeks ago

That would certainly be great, as it would surely have a positive impact on the user experience.

Thank you for further optimizing this already great implementation!

KaHa6uc commented 2 weeks ago

Hello, Shelly Wall Display lead dev here. Just a few notes:

First, great work, @RapierXbox

Next, any browser that you install will use the webview that is currently installed. Stock webview cannot show the HA pages in a fully usable manner, no matter what browser you use.

Finally, there is a new Wall Display version coming with new hardware and the webview will be updated to a more recent version that will be able to show HA normally. With this new version HA will be supported internally.

Again, great work!

Fritz-la-chatte commented 1 week ago

@KaHa6uc That's basically what RapierXbox has already said and is now trying to correct.

I actually also bought the wall display as a thermostat. In the meantime, people are suggesting that you shouldn't rely on the internal sensor and that you should integrate an external H&T. (very appealing...) Now, apparently, if I understand right, the money is to be taken out of the customer's pocket because the product is generally disappointing or unsuitable for many users and to invest money once again in a new hardware revision. An interesting approach. I'm sure that someone from the HA community, not least RapierXbox, will also be able to solve this problem. If my guess is correct, I don't understand why Shelly doesn't release an update with a full webview and support the community. Shamed be he who thinks evil of it.

For me, this product is likely to be my 1st & last from Shelly under these circumstances, as I could have bought a Chinese touchscreen with relay for around €35. On the hardware side, it would have been just as good, if not better. A real disappointment.

KaHa6uc commented 1 week ago

@Fritz-la-chatte This is really not the place for this, but I will nevertheless reply you, because you seem to be confused. Maybe I wasn't clear, and I will try to fix this.

Neither the Thermostat functionality, nor HomeAssistant integration were on the table when we first designed the Wall Display. We did find out there were issues with the temperature reading correctness when we received the first golden samples from the factory but initially those were overcome with an internal temperature offset. Only after we started implementing the Thermostat we found out that those readings were unreliable for this function. Hence we started offering free BLU H&T devices for every Wall Display purchased from the earliest batches. More info, here. Is this appealing enough for you?

As for the webview, we never intended to actually use it. We're using a proprietary Android build from what is called "a solution company" and only designed and wrote the front-end application. What we had was enough until recently, when we decided that HomeAssistant integration is a must. That's when we found out that the webview is outdated as hell and HA would not work, almost at all. Although using a webview in a system process is strongly discouraged for security reasons (here), we are currently preparing an OTA update that will update the implementation, and after that there will be another update in which HomeAssistant will be integrated in this webview in the application, so no, your guess is not correct - native HA integration will be available for the first Wall Display version. This large update will not be needed for the new hardware version, which will come with a more recent webview implementation and native HA integration.

You know what's really disappointing? Putting up invectives without being informed. I'm sorry we have lost you as a client. Maybe we should have popped up a message on the screen saying you're eligible for a free BLU H&T? Oh, sorry, I forgot about ./adb shell pm disable cloud.shelly.stargate...

Now that [I hope] I have made myself clear, let's keep this issue clean and refrain from any more off-topic comments.

Again, praises for the great work of RapierXbox!

RapierXbox commented 1 week ago

Hi everyone,

Thanks again for your appreciation of my project. I’m reaching out to see if anyone with more knowledge might be willing to help me test the new version. I’ve figured out how to install a new system WebView, but the method I’m using is quite risky and could potentially result in a boot loop. I’m considering trying it out, but my family won't be thrilled if the lights don’t work for the next week since I don’t have a spare to test on, haha.

Also, it’s great to see someone from the Shelly team here!

RapierXbox commented 1 week ago

@KaHa6uc That's basically what RapierXbox has already said and is now trying to correct.

I actually also bought the wall display as a thermostat. In the meantime, people are suggesting that you shouldn't rely on the internal sensor and that you should integrate an external H&T. (very appealing...) Now, apparently, if I understand right, the money is to be taken out of the customer's pocket because the product is generally disappointing or unsuitable for many users and to invest money once again in a new hardware revision. An interesting approach. I'm sure that someone from the HA community, not least RapierXbox, will also be able to solve this problem. If my guess is correct, I don't understand why Shelly doesn't release an update with a full webview and support the community. Shamed be he who thinks evil of it.

For me, this product is likely to be my 1st & last from Shelly under these circumstances, as I could have bought a Chinese touchscreen with relay for around €35. On the hardware side, it would have been just as good, if not better. A real disappointment.

Also added official thermostat implementation in the readme for you!

Fritz-la-chatte commented 2 days ago

Hello RapierXbox,

I don't know how much I should tell you thank you for this effort. After realizing that the internal sensor is a bit “fickle” and I don't see the point of coupling an external sensor, which I find unattractive, I switched all the classic GIRA thermostats to anthracite Homematic wall thermostats instead of the wall display. Since then, I have been hoping for a worthwhile alternative use, whereby I then intend to sacrifice a “stupid” wall lightswitch and until then look forward to your fantastic solution of the HA dashboard with switching function.

So I can only repeat how great I think your work is!

Many thanks and best regards from Austria.