Home Assistant interface, operation and notification
After the first start,all integrated devices areautomatically displayed in the home dashboard.
Home Dashboard: Overview
The dashboards can of course be created and customized by yourself.
the display modules are called "Cards" in Home Assistant:
Menu and additional dashboards
In addition to the standard menu items, additional menu items appear for certain integrations. Furthermore, additional dashboards can be created and made available in the menu.
Energy dashboard
For the display of electricity or water consumption can be visualized very easily via the energy dashboard. Those who own a PV system or a balcony power plant can also display its production and surplus:
In order for the energy dashboard to visualize the data, it is sufficient to add the corresponding consumption meters:
Electricity grid, solar panels, battery storage, gas consumption, water consumption, or other individual devices ...
For details on the setup, see: Dashboard using the example of a Fronius Gen24 incl. BYD storage system
Details on how the energy dashboard works, see: HA history: more than 10 days? Long Time Statistic (LTS)
Settings
Developer tools
History
Im Verlauf können die historischen Daten der einzelnen Geräte visualisiert werden:
The default settings for the current sensor data are 10 days, after which, depending on the entity, only long-term statistics data are available. The current sensor data is deleted from the database:
Setting: purge_keep_days integer (optional, default: 10) in the configuration.yaml file:
recorder:
purge_keep_days: 10
See, www.home-assistant.io/integrations/recorder/, or to use a database other than SQLite: Home Assistant database MySQL vs. SQLite and to connect to an InfluxDB, see: InfluxDB: Time series database - Docker and for visualizing: Grafana: Docker - Visualize data and define alarms.
HACS: Must-have frontend packages.
For HACS integration, see: HomeAssistant Integrations. Plotly Graph Card is a definite must-have:
Plotly Graph Card
Since Plotly Graph doesn't necessarily score points visually with the default settings, I had underestimated the card for a long time. With the right parameters, really beautiful charts can be created and Plotly is gradually replacing other graph cards such as"apexcharts-card" or the "history-explorer-card" for me.The highlights of Plotly are its intuitive scroll and zoom function, as well as the countless possibilities to customize the charts as desired:
Software | Lovelace-plotly-graph-card |
---|---|
GitHub | https://github.com/dbuezas/lovelace-plotly-graph-card |
current version | 3.3.4 |
found | 2024-04-04 |
For my use cases, Plotly Graph can replace Grafana and an InfluxDB. At this point just have a look at the page again: I'll try to collect a few examples. If you want to customize the layout of certain cards, you can use lovelance-card-mod:
lovelance-card-mod
Software | Lovelace-card-mod |
---|---|
GitHub | https://github.com/thomasloven/lovelace-card-mod |
current version | 3.4.3 |
found | 2024-04-04 |
With "lovelance-card-mod" elements in Home Assistant can be customized via CCS styles:
lovelance-layout-card
Software | Lovelace-layout-card |
---|---|
GitHub | https://github.com/thomasloven/lovelace-layout-card |
current version | 2024.3 |
found | 2024-04-04 |
The "layout-card" extension allows you to customize the areas in the dashboards, depending on the screen resolution if needed. As a very simple example I use two columns for a screen width larger than 600px, smaller 600px only one column:
Notification to mobile - alert
The Android app "Home Assistant" offers besides numerous cell phone sensor values in Home Assistant also a very simple way to receive notifications from Home Assistant: https://play.google.com/store/apps/details?id=io.homeassistant.companion.android&hl=de_AT&gl=US.
Alternatively, the messenger Signal can be used for notifications, see: Send Signal messages via API: signal-cli-rest-api.
Those who install the Home Assistant app will notice that Home Assistant regularly announces updating the phone sensors after Home Assistant:
Refresh Sensors.
By default, a notification with "Update sensors" is displayed every 15 minutes:
The notice can be easily removed by long pressing on the notification and disabling "SensorWorker":
Deactivating the SensorWorker does not affect the notifications stored in the automations, they still remain active. To receive a notification when an event occurs, an automation can be created for this purpose by clicking on "Configuration" and "Automation":
Notification when a certain value is reached
As an example, I created a notification for monitoring the humidity:
I created a new automation for this notification in Configuration / Automation:
The notification can be tested later with "RUN ACTIONS", but first to the settings of this automation:
service: notify.mobile_app_sm_a405fn
data:
title: Luftfeuchtigkeit Bad
message: >-
Luftfeuchtigkeit: {{states('sensor.bad_2')}}%
Temperatur:{{states('sensor.bad')}}°C
Energy dashboard: example Fronius Gen24 & BYD storage
The Home Assistant Energy Dashboard shows all relevant energy data in a complete overview. Performance data from a wide range of manufacturers or components can be used as the basis for the dashboard. Only sensors with the corresponding performance data are required to supply the interface with data. ... continue reading
{{percentage}} % positive