Hi all,
I’ve recently set up Tasmota based IR Readers (Hichi) for our energy meters via MQTT.
In general, it works fine, however using MQTT they do not expose a unit for the values, this seems to be a resource saving feature of Tasmota.
I worked around this by creating these entries using the customizing integration:
sensor.stromzahler_eg_haus_power:
unit_of_measurement: 'W'
sensor.stromzahler_eg_haus_energy:
unit_of_measurement: 'kWh'
sensor.stromzahler_eg_haus_en_out:
unit_of_measurement: 'kWh'
sensor.stromzahler_og_haus_power:
unit_of_measurement: 'W'
sensor.stromzahler_og_haus_energy:
unit_of_measurement: 'kWh'
sensor.stromzahler_og_haus_en_out:
unit_of_measurement: 'kWh'
However this seems to break the Influxdb recording. Without the unit, I was reading their data from the standard “state” measurement (as defined in my influxdb config in Homeassistant). Once activating the customization, I can neither see new values in the “state” measurement, nor in the overwritten measurement for them.
Is this a bug or am I doing something wrong?
For reference, here is my influxb config:
influxdb:
api_version: 2
ssl: false
host: influxdb
port: 8086
token: !secret influxdb_token
organization: !secret influxdb_org
bucket: homeassistant
tags:
source: HA
tags_attributes:
- friendly_name
default_measurement: state
exclude:
entities:
- zone.home
domains:
- persistent_notification
- person
include:
domains:
- sensor
- binary_sensor
- sun
entities:
- weather.home
Thanks,
Robin