I am able to choose the sensors now. Regarding this, I wonder if I am using the right way to import the xml data using rest, maybe there is another method cleaner?
I have some Tuya devices that measure power (in W); and I am trying to represent that in kWh using the integration (Reiman sum integral). Set as follows:
you should no set the last_reset any longer as this is taken car of by the correct state_class
lastly, thought not a deal breaker, try to set all attributes directly on the sensor config, and not via customize, if at all possible. Not sure if the sensors you use are from the integration Slimme Lezer, or template sensors. If the latter, set the attributes in the template. If the former, doesnt that integration set the state_class?
The last_reset was necessary for the Energy tab to accept the Slimmelezer as a source for energy consumption. Many people in this topic have done the same. I’m puzzled by why it wouldn’t work before.
Regarding the gas: I’ve tried with the m3 in the customize_glob. That has not solved the problem. Also I wouldn’t have the slightest idea where or how to edit the state class for Slimmelezer. Do you know?
Also I think template sensors aren’t allowed in the energy tab.
this seems a very clear message. the unit is incorrect. it really should be m³ and if the entity doesn’t have that, you should either be able to set it in the customize, or preferably, check in the core repo on the integration and file an issue there.
did you check here https://www.zuidwijk.com/initial-setup-slimmelezer/ ?
sure template sensors are allowed, as long as they fit the bill. that is, are of the correct state_class and have the correct unit
- unique_id: lights_total_device_energy
name: Lights total device energy
state: >
{{states('sensor.lights_inside_total_device_energy')|float(0) +
states('sensor.lights_outside_total_device_energy')|float(0)}}
unit_of_measurement: kWh
icon: mdi:lightbulb-group-outline
device_class: energy
state_class: total_increasing
working just fine in the panel
the state_classes have been fixed in core HA to set the last_reset, so you shouldn’t need to set that manually.
btw, if yours in a total sensor, the state_class should be total_increasing.
what does your sensor look like in dev tools states?
Hi, have problem with my 2xBlitzwolf sph2 wifi (mqtt) smart plug sensors. How to solve this? In my configuration.yaml not have these sensors. Get from mqtt integration. TY