cant find the answer, and even Thanasis on Discord #energy wasnt sure… so, maybe you can help me out:
checking Sensor Entity | Home Assistant Developer Docs confuses me on the matter of a total_increasing entity for gas consumption, which I now have configured as
- platform: mqtt
state_topic: 'MAC/energy-dsmr4/538d72d9/gas'
unique_id: gas_totaal
name: Gas totaal
unit_of_measurement: m³
icon: mdi:counter
value_template: >
{{value|round(2)}}
state_class: total_increasing
device_class: gas
but do I understand correctly the state_class and device_class are not compatible? as in, total_increasing cant be device_class: gas?
asking because no error is logged anywhere, and the gas usage seems to be recorded just fine
in short:
we can have
state_class: measurement
device_class: gas
on a sensor but not
state_class: total_increasing
device_class: gas
?