Home-Assistant Display - Weather Station and more

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.

The displayed data is supplied by a self-built NAS and Docker container with Home Assistant and comes from a ConBee ZigBee USB stick and certain WLAN devices.

Temperature sensors

For temperature readout, I have Zigbee Aqara temperature sensors in use:

on amazon.com:

Aqara Temperature and Humidity Sensor, R...

Availability: Now
Price: $19.99
as of: 2023-09-21 07:06
Details

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.

Temperatures and water flow of my heater

I have placed some temperature sensors and a water flow meter based on an ESP32 in my boiler room, see: DS18B20 Temperature Sensors ESP32, MQTT and WiFi - HowTo and Field report: Ultrasonic flowmeter TUF-2000M. I use a Shelly 1PM to monitor which action the heater is currently performing.

📢 A new post will probably be linked here on 2023-10-02: Control heating with Home Assistant allow push notifications?

on amazon.com:

Shelly 1 PM Relay Switch, WiFi Smart Hom...

Availability: Now
Price: $30.99 ($15.50 / Count)
as of: 2023-09-21 07:06
Details

The base for the display: an old cell phone

As mentioned before, the display consists of an old cell phone and a frame from the 3D printer.

I drilled a hole in the wall for the charging cable and placed a charger in the next room.

Installed Apps

For the actual display, I installed the Home Assistant app on my phone : play.google.com/store/apps/details?id=io.homeassistant.companion.android&hl=en&gl=US.

Fullscreen

In the app in Settings, Companion App,  I turned on "Fullscreen" and enabled "Keep screen On":

Full screen: Hide header: KIOSK Mode

The HACS repository Kiosk Mode allows hiding the header in full screen mode.

Kiosk Mode can be enabled for specific devices or users by adding the following block to the dashboard YAML code:

kiosk_mode:
  user_settings:
    - users:
        - Display
      kiosk: true
      ignore_entity_settings: true

Home-Assistant-View

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. Lovelance-card-mod allows you to customize the elements via CSS styles, which allows you to customize the layout as you like:
 

I also use the package lovelance-layout-card to make better use of the screen. The package allows splitting the screen into arbitrary columns, depending on the resolution of the device:

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 HomeAssistant app, you can use it to transfer all of the smartphone's data to HomeAssistant. 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.

Android version

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.

Conclusion

A smartphone that is no longer needed can be given a new lease of life as a display for Home Assistant. The cell phone is an inexpensive and simple solution, but continuous operation, however, isnot entirely unproblematic for the battery.

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details