I use DBeaver (from https://dbeaver.io) on my Windows PC to connect back to HA’s mariadb and it is magic (which means no CLI required).
Configure your mariadb addon to expose TCP 3306
Restart
Point DBeaver to: [HA IP Address]:3306
DBeaver is completely free and allows direct in table edits so you can literally overtype data and then save it so for little tweaks you don’t need to write SQL - just find it, edit it, commit it. Handy if you need to tidy up a few things.
I’m pulling my hair out with this one. I have a serial sensor that gets parsed to show me instant watts. Which works fine.
I used this yaml to turn that into a kWh meter.
- platform: integration
source: sensor.powerw
name: House Energy kWh
unit_prefix: k
unit_time: h
round: 2
And that seems to work a treat:
You would think that it would just show up in the list and I’d be off to the races with energy right? Well it’s not in the list for some reason. And I can’t figure out why.
I’ve tried that but I get this error when I do it:
Invalid config for [sensor.integration]: [device_class] is an invalid option for [sensor.integration]. Check: sensor.integration->device_class. (See ?, line ?).
You need to show your yaml (formatted) and tell us exactly which file it is in for us to help. It looks like you have modified the wrong file or indentation is wrong.
@allocater2 showed an example of what to put in customization.yaml which is the same as what could go in configuration.yaml
homeassistant:
name: Home
unit_system: metric
# etc
customize:
# Add an entry for each entity that you want to overwrite.
sensor.house_energy_kwh:
device_class: energy
Hi, is there any way to add fixed monthly prices to spot hourly prices per kWh? At the moment, it only shows me the price of purchased clean electricity.
It is not necessary for it to appear in the energy panel, but I cannot find the entity for the month in which the total costs are, so that I can add other items per kWh and monthly and view the calculation elsewhere.
Thank you