thkl / homebridge-homematic

Homematic plugin for homebridge: https://github.com/nfarina/homebridge
180 stars 51 forks source link

energy meter HM-ES-TX-WM not directly supported? #684

Open mnni opened 2 years ago

mnni commented 2 years ago

Hello,

I'm using homebridge 1.3.4 and homebridge-homematic v0.2.226. I've added the HM-ES-TX-WM (v1.2) to my raspberrymatic ccu and the ccu subsection "Homekit" (to be exported to homebridge-homematic). Since the energy meter doesn't show up in my home app, I looked at the log and found:

[7/27/2021, 4:00:32 PM] [HomeMatic RasPi] [ServiceClassLoader] There is no service for HM-ES-TX-WM:POWERMETER_IEC1
[7/27/2021, 4:00:32 PM] [HomeMatic RasPi] [ServiceClassLoader] There is no service for HM-ES-TX-WM:POWERMETER_IEC2

After searching the page I noticed this service can maybe added manually to the config. But it doesn't show how this mapping shall work? There is no real example and the info in doesn't show how this can be mapped. https://github.com/thkl/homebridge-homematic/issues/488

Did the name of the power meter change or do these still require manual input? Thank you^!

mnni commented 2 years ago

I've found a solution which seems to work, there is no documented mapping of the serivces available, but after searching around in the source tree I've found a custom mapping which seems to work. Just in case anyone else is searching for days... :)

"services": [
    {
        "type": "HM-ES-TX-WM:POWERMETER_IEC1",
        "service": "HomeMaticHomeKitPowerMeterService"
    }
]
mucki12 commented 1 year ago

@mnni Thanks for the advice. Now my HM-ES-TX-WM is shown as a plug. Eve app shows it also as a plug but with not power measurements at all. Are measurements shown in your eve app?