homebridge-fhem with Homebridge 1.3.x does not work (for me)
Opened this issue · 4 comments
I've been using homebridge-fhem for a long time now w/o any big problems until and including v1.2.5 of Homebridge.
I tried it with Homebridge v1.3.4 but as soon as I use the FHEM plugin with it I cannot add the bridge to Homekit on iOS, after some seconds I get the response that the bridge cannot be added. If I disable the FHEM plugin I can add the bridge w/o any problems on v1.3.4. After I re-enable the FHEM plugin everything stopped working, even after disabling the plugin again, the iOS Homekit is totally b0rked and I have to start from scratch - again. Even a 2nd bridge with FHEM-only does not work at all. Even if I just add one FHEM device to Homebridge, it won't work at all :-(
So I tried it with v1.2.5 again, I can add the bridge w/o any problems and see my 134 devices and all are up and running. Upgraded to Homebridge v1.3.4 and the problems came back - So again a restart from scratch.
I already posted the problem at github homebridge issues w/o any ideas (yet)
i'm running witch v1.3.4 and it works. so there is no general problem. please show the homebridge log.
Hi justme,
there's nothing special in the homebridge log. Adding the bridge stops at a random accessory.
After some hours of trial & error I found out that these outlet configs in FHEM will brick homebridge:
please see attached picture (I don't know how to properly paste that here on github so it stays readable)
If I add something like this to the outlet config (I use this for HmIP-PSM), Homekit will add the Bridge and everything is online:
history:size=1024
OutletInUse=6.POWER,threshold=1
E863F126-079E-48FF-8F27-9C2605A29F52=6.CURRENT,name=Current,format=FLOAT,factor=0.001
E863F10D-079E-48FF-8F27-9C2605A29F52=6.POWER,name=Power,format=FLOAT
E863F10C-079E-48FF-8F27-9C2605A29F52=6.ENERGY_COUNTER,name=Energy,format=FLOAT,factor=0.001
that won't make any sense for that PEHA PHC outlets because they do not have any measurement features like the ones from Homematic.
log without the homebridgemapping option set:
[6/30/2021, 3:58:02 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen is outlet
[6/30/2021, 3:58:02 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen has
2021-06-30 15:58:02 caching: PHC_SD_EG_Hauswand_aussen_Steckdosen-state: off
[6/30/2021, 3:58:03 PM] Initializing platform accessory 'PHC_SD_EG_Hauswand_aussen_Steckdosen'...
[6/30/2021, 3:58:03 PM] [FHEM] creating services for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 3:58:03 PM] [FHEM] information service for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 3:58:03 PM] [FHEM] manufacturer, model and serial number characteristics for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 3:58:03 PM] [FHEM] name (siriName) characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 3:58:03 PM] [FHEM] Outlet service for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 3:58:03 PM] [FHEM] On characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:state
[6/30/2021, 3:58:04 PM] [FHEM] query: On for PHC_SD_EG_Hauswand_aussen_Steckdosen-state
log with the homebridgemapping option set:
[6/30/2021, 4:01:15 PM] Initializing platform accessory 'PHC_SD_EG_Hauswand_aussen_Steckdosen'...
[6/30/2021, 4:01:15 PM] [FHEM] creating services for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 4:01:15 PM] [FHEM] information service for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 4:01:15 PM] [FHEM] manufacturer, model and serial number characteristics for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 4:01:15 PM] [FHEM] name (siriName) characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 4:01:15 PM] [FHEM] Outlet service for PHC_SD_EG_Hauswand_aussen_Steckdosen
[6/30/2021, 4:01:15 PM] [FHEM] On characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:state
[6/30/2021, 4:01:15 PM] [FHEM] OutletInUse characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:6.POWER
[6/30/2021, 4:01:15 PM] [FHEM] Custom Current characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:6.CURRENT
[6/30/2021, 4:01:15 PM] [FHEM] Custom Power characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:6.POWER
[6/30/2021, 4:01:15 PM] [FHEM] Custom Energy characteristic for PHC_SD_EG_Hauswand_aussen_Steckdosen:6.ENERGY_COUNTER
[6/30/2021, 4:01:17 PM] [FHEM] query: On for PHC_SD_EG_Hauswand_aussen_Steckdosen-state
[6/30/2021, 4:01:17 PM] [FHEM] query: OutletInUse for PHC_SD_EG_Hauswand_aussen_Steckdosen-6.POWER
[6/30/2021, 4:01:17 PM] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BReadingsVal(%22PHC_SD_EG_Hauswand_aussen_Steckdosen%22,%226.POWER%22,%22%22)%7D&XHR=1
[6/30/2021, 4:01:17 PM] [FHEM] query: Custom Current for PHC_SD_EG_Hauswand_aussen_Steckdosen-6.CURRENT
[6/30/2021, 4:01:17 PM] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BReadingsVal(%22PHC_SD_EG_Hauswand_aussen_Steckdosen%22,%226.CURRENT%22,%22%22)%7D&XHR=1
[6/30/2021, 4:01:17 PM] [FHEM] query: Custom Power for PHC_SD_EG_Hauswand_aussen_Steckdosen-6.POWER
[6/30/2021, 4:01:17 PM] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BReadingsVal(%22PHC_SD_EG_Hauswand_aussen_Steckdosen%22,%226.POWER%22,%22%22)%7D&XHR=1
[6/30/2021, 4:01:17 PM] [FHEM] query: Custom Energy for PHC_SD_EG_Hauswand_aussen_Steckdosen-6.ENERGY_COUNTER
[6/30/2021, 4:01:17 PM] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BReadingsVal(%22PHC_SD_EG_Hauswand_aussen_Steckdosen%22,%226.ENERGY_COUNTER%22,%22%22)%7D&XHR=1
2021-06-30 16:01:17 caching: PHC_SD_EG_Hauswand_aussen_Steckdosen-6.ENERGY_COUNTER:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.ENERGY_COUNTER not a number:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.ENERGY_COUNTER not a number:
2021-06-30 16:01:17 caching: PHC_SD_EG_Hauswand_aussen_Steckdosen-6.POWER:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.POWER not a number:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.POWER not a number:
2021-06-30 16:01:17 caching: PHC_SD_EG_Hauswand_aussen_Steckdosen-6.CURRENT:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.CURRENT not a number:
[6/30/2021, 4:01:17 PM] [FHEM] PHC_SD_EG_Hauswand_aussen_Steckdosen-6.CURRENT not a number:
It would be really nice if someone can fix that issue so HomeKit will show the correct icon for power outlets instead of a simple switch icon. That worked perfectly with Homebridge <= 1.2.5.
thank you!
So 2 month later...
Is this a Homebridge bug or a homebridge-fhem plugin bug?