I can see the switches, turn them off, and even see their wattage but I want them to be individual sensors that will report to influxdb like my fitbit, or anything else that is a sensor does.
How do you break those watts, voltage, amps etc out as individual sensors?
can i see how this is in your config yaml? Its making my home assistant go into safe mode. also is this all you have or do you have my code plus this? or do i erase my code and just use yours?
Should I be using something else for Unraid? I’m seeing solutions online that I don’t even have options for. @chairstackercode doesn’t look like mine but I’m using the official way. Just kind of confusing.
I am also using the Docker version of Home Assistant Core.
InfluxDB is not configurable through the Integration Setup UI. You have to configure it with YAML. So you and I are using the same InfluxDB Integration.
All attributes of an entity are available as fields under a measurement named the same as the entity in InfluxDB, unless you deviated from the recommended configuration as listed on the doc page you linked to.
I’d recommend looking at the data you have already in InfluxDB and then writing template sensors for anything that’s missing, though, as I said before, for me anyway, everything is already there unless I’ve specifically excluded it.
My setup is pretty standard, with only one addition that won’t affect this:
Yep below is my Yaml. Let me know if I’m crapping the bed here but it works fine.
The problem is my HS110 just has switch functions of off and on. Even when i try to add a gauge to Lovelace theres no option for current wattage or anything else, unless I’m missing it?
My fitbit information is all being tracked and an option in influxdb no problem. I can also easily add it to my front page. Its just the Hs110 that I can only see it on the switch itself.
Then I think you have something broken with the HS110. I have 4 HS110’s in my home, and all of them appear as switches in Home Assistant and all of them have the following attributes:
current_power_w
total_energy_kwh
voltage
current_a
today_energy_kwh
And all of those attribute are visible in InfluxDB.
You are correct! I used your influxdb yaml and it’s there! Thanks a lot. I don’t know what was wrong with mine but I can now get power in my Grafana from home assistant.
One last question for you. If I wanted to make a little widget on my Lovelace using attributes, current wattage etc, how do you do that? I am just seeing sensors.