After integrating more and more switches, lights and temperature sensors into Home Assistant, I had the idea to replace my classic weather station with a display for Home Assistant. I used an old cell phone, the Home Assistant app and a frame from the 3D printer as the display.
To display as much information as possible on the small screen, I installed the package lovelance-card-mod from the HACS repository in HomeAssistant, see: en-ha-gui#cardmod. Lovelace-card-mod allows you to customize the elements via CSS styles, which allows you to customize the layout as you like:
Originally I used the lovelance-layout-card package to make better use of the screen. Since the Home Assistant supports a new view type, "Sections", I no longer use the package.
Cell phone in continuous use: The battery should not be charged permanently
After only 5 months of use, I noticed a slight bulge on the display: The battery has started to self-destruct and thus finally no more space in the phone:
Here is a picture with the new battery:
The cause is certainly that the battery is constantly charged to 100% and thus constantly exposed to the maximum voltage. In this way I destroyed 2 batteries within a year.
In the meantime, I would still have tried to operate the phone without battery, purely with the charger, whereby this became more of a very bad strobe: The display has always flashed only briefly. Even soldering a mini-battery from a toy drone could not start the phone. For this reason I now got a new battery again. To hopefully make the battery last longer this time, I try to control the charge level and run the phone in the 20-60% battery level range:
Run the battery between 20% and 60%?
If you install the Home Assistant app, you can use it to transfer all of the smartphone's data to Home Assistant. One of the values that is transferred is the battery charge level. The state of charge enables the control of a switchable socket, depending on the state of charge. Below 20%, the charger is to be switched on; above 60%, it is to be switched off.
The battery state is then also an additional indicator on the display:
The maximum voltage in the battery is certainly lower when charging to 60%, which should extend the lifespan. However, the many charging cycles counteract this since the battery now has to be recharged several times per day. In order to charge the phone as slowly as possible, I replaced the 1.3A charger with an old 0.5A charger. The slow charging and fewer charge cycles should help the battery:
It remains to be seen how charging will affect the battery in the long run. If the battery gives up the ghost again, I will report that here.
Restart app
About once a week the Android app started to slow down until it crashed. For this reason I have added to the automation for loading also a notification for the restart of the app: "command_webview". The app is now prophylactically restarted whenever the loading state changes, here is the complete automation:
Another problem could be the Android version used in the future. My old smartphone currently has Android version 7, and the Home Assistant app can currently be installed from Android version 5. If the system requirements for the app change, it might not be updated anymore and in the worst case it might not work at all after an HA update.
Styles are displayed incorrectly
If certain views are not displayed correctly, this could be due to an outdated rendering engine. On Android, the app: "Android System Webview" is responsible for this and should be updated if necessary.
Housed in a sleeve, mounted in a protected location on the north side of my house, the sensor provides reliable temperature readings even when used outdoors. I waterproofed the sensor for this purpose, which does not affect the temperature measurement, but the humidity measurement no longer provides usable values. The sensors work over a wide temperature range: one of the sensors is even in my freezer. Even though the sensor in the freezer always shows a low battery level due to the low temperature, it still works for a long time without having to change the battery.
A smartphone that is no longer needed can be given a new lease of life as a display for Home Assistant. The cell phoneis an inexpensive and simple solution, but continuous operation, however, isnot entirely unproblematic for the battery.
🚧Lovelace cards - layout even smaller: resize
created:
2025-11-19
from
Bernhard
I just created a Github pull request for Home Assistant to customize the sizes of the Lovelace maps almost arbitrarily: The change allows columns and rows smaller than the minimum values specified in the grid_options settings. Background: Creating a dashboard for mobile device or dashboards has become quite a challenge as some cards are much too large.
... continue reading
Questions / Comments