#Zigbee + aqara smart plug recategorizing diagnostic as sensor
1 messages · Page 1 of 1 (latest)
I'm using zigbee2mqtt with an Aqara smart plug. I have an automation set up to turn off my e-bike's charger when power consumption drops below 15W (because that indicates that it is done charging). However, I'd really like to actually see the power consumption on my dashboard, but I currently can't because it is a "diagnostic" rather than a "sensor". Does anyone know how I could change Power to be treated as a sensor instead?
I'm just guessing because I don't have a device that reports like this, but if "Diagnostic" is an attribute you can make a template sensor that transforms it into a sensor you can use. Check out #templates-archived
So I looked a couple other devices and battery shows up as "diagnostics" but when I look in developer tools for those they're sensors
odd. what does the entity show up as?
Sounds like you might want or need to make a pull request to tweak the configuration of that device. Or, perhaps there's a sensor that's disabled in HA that you can enable?
Cool, a template seems like a good stopgap. In the meantime, yeah, I’ll try to see where in z2m this is being made into a diagnostic. It’s strange because the device doesn’t even report energy, it reports power—I think zigbee2mqtt is integrating it to get energy.