seydx / homebridge-fritz-platform

AiO Homebridge dynamic platform plugin for AVM hardware like Fritz!Box, Fritz!Repeater etc.
MIT License
223 stars 32 forks source link

New DECT400 Model with higher AIN doesn‘t work #231

Closed sascha-voss closed 2 years ago

sascha-voss commented 2 years ago

It seems that new DECT400 models with higher AIN do not work properly. The button is detected correctly, is displayed as online, but does not work. Another dect 400 with lower AIN works fine.

In the log file you can see that the identifiers for short and long press are missing. The switch works normally via FRITZ!Box but not via Homebridge.

8186FA74-2B9A-4ED1-875A-C1BE828F55DB

seydx commented 2 years ago

I created a little script which collects all information about the smarthome devices (which i need to fix this). Could you try it pls and copy/paste the output here? You can also send it via email (seydx@outlook.de)

Instruction:

  1. Use following command to automatically download the file into the "homebridge-fritz-platform" plugin directory (maybe you need to adjust the path to the plugin directory, otherwise the command will download the file to: /usr/local/lib/node_modules/homebridge-fritz-platform)
wget https://gist.githubusercontent.com/SeydX/69fc4b818cd2dacd189da73a9dbf34f0/raw/7354febe480af5d66b997a07d67bd75e0205aef3/smarthome.js /usr/local/lib/node_modules/homebridge-fritz-platform
  1. Open the file with an editor or nano and adjust the lines 1-4 (host, username, password)
sudo nano /usr/local/lib/node_modules/homebridge-fritz-platform/smarthome.js
  1. Save the file and execute it with following command:
node /usr/local/lib/node_modules/homebridge-fritz-platform/smarthome.js
  1. And copy/paste or send the output via email
sascha-voss commented 2 years ago

Hello,

I have created the log file and hope this helps.

You can find it in the attachment.

Many thanks!

Sascha

Von: seydx @.> Gesendet: Freitag, 17. September 2021 08:41 An: SeydX/homebridge-fritz-platform @.> Cc: sascha-voss @.>; Author @.> Betreff: Re: [SeydX/homebridge-fritz-platform] New DECT400 Model with higher AIN doesn‘t work (#231)

I created a little script which collects all information about the smarthome devices (which i need to fix this). Could you try it pls and copy/paste the output here? You can also send it via email @. @.> )

Instruction:

  1. Use following command to automatically download the file into the "homebridge-fritz-platform" plugin directory (maybe you need to adjust the path to the plugin directory, otherwise the command will download the file to: /usr/local/lib/node_modules/homebridge-fritz-platform)

wget https://gist.githubusercontent.com/SeydX/69fc4b818cd2dacd189da73a9dbf34f0/raw/7354febe480af5d66b997a07d67bd75e0205aef3/smarthome.js /usr/local/lib/node_modules/homebridge-fritz-platform

  1. Open the file with an editor or nano and adjust the lines 1-4 (host, username, password)

sudo nano /usr/local/lib/node_modules/homebridge-fritz-platform/smarthome.js

  1. Save the file and execute it with following command:

node /usr/local/lib/node_modules/homebridge-fritz-platform/smarthome.js

  1. And copy/paste or send the output via email

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SeydX/homebridge-fritz-platform/issues/231#issuecomment-921539905 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVVFD7GIUYAN6ALCFC64F2TUCLPIXANCNFSM5EFFRVSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AVVFD7GIYI5P43P5Z2SKHMLUCLPIXA5CNFSM5EFFRVSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG3WZKQI.gif

@.***:/var/lib/homebridge $ node /usr/local/lib/node_modules/homebridge-fritz-platform/smarthome.js {"devicelist":{"$":{"version":"1","fwversion":"7.28"},"device":[{"$":{"identifier":"09995 0039007","id":"21","functionbitmask":"320","fwversion":"04.94","manufacturer":"AVM","productname":"FRITZ!DECT 301"},"present":"1","txbusy":"0","name":"Badezimmer","battery":"40","batterylow":"0","temperature":{"celsius":"160","offset":"-30"},"hkr":{"tist":"32","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","batterylow":"0","battery":"40","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"}},{"$":{"identifier":"09995 0106618","id":"22","functionbitmask":"320","fwversion":"04.95","manufacturer":"AVM","productname":"FRITZ!DECT 301"},"present":"1","txbusy":"0","name":"Küche rechts","battery":"40","batterylow":"0","temperature":{"celsius":"195","offset":"-35"},"hkr":{"tist":"32","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","batterylow":"0","battery":"40","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"}},{"$":{"identifier":"09995 0085672","id":"28","functionbitmask":"320","fwversion":"04.94","manufacturer":"AVM","productname":"FRITZ!DECT 301"},"present":"1","txbusy":"0","name":"Schlafzimmer ","battery":"50","batterylow":"0","temperature":{"celsius":"190","offset":"0"},"hkr":{"tist":"38","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","batterylow":"0","battery":"50","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"}},{"$":{"identifier":"09995 0117694","id":"30","functionbitmask":"320","fwversion":"04.95","manufacturer":"AVM","productname":"FRITZ!DECT 301"},"present":"1","txbusy":"0","name":"Wohnzimmer","battery":"90","batterylow":"0","temperature":{"celsius":"175","offset":"-15"},"hkr":{"tist":"35","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","batterylow":"0","battery":"90","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"}},{"$":{"identifier":"09995 0105204","id":"31","functionbitmask":"320","fwversion":"04.94","manufacturer":"AVM","productname":"FRITZ!DECT 301"},"present":"1","txbusy":"0","name":"Küche links","battery":"60","batterylow":"0","temperature":{"celsius":"195","offset":"0"},"hkr":{"tist":"40","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","batterylow":"0","battery":"60","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"}},{"$":{"identifier":"11657 0298170","id":"33","functionbitmask":"35712","fwversion":"04.17","manufacturer":"AVM","productname":"FRITZ!DECT 210"},"present":"1","txbusy":"0","name":"Steckdose Heizung Werkstatt","switch":{"state":"0","mode":"manuell","lock":"0","devicelock":"0"},"simpleonoff":{"state":"0"},"powermeter":{"voltage":"232910","power":"0","energy":"5282"},"temperature":{"celsius":"160","offset":"0"}},{"$":{"identifier":"13096 0020558","id":"34","functionbitmask":"32","fwversion":"04.90","manufacturer":"AVM","productname":"FRITZ!DECT 400"},"present":"1","txbusy":"0","name":"Taster Heizung","battery":"100","batterylow":"0","button":[{"$":{"identifier":"13096 0020558-0","id":"5000"},"name":"Taster Heizung: kurz","lastpressedtimestamp":"1631965491"},{"$":{"identifier":"13096 0020558-9","id":"5001"},"name":"Taster Heizung: lang","lastpressedtimestamp":"1631803463"}]},{"$":{"identifier":"11657 0256468","id":"35","functionbitmask":"35712","fwversion":"04.17","manufacturer":"AVM","productname":"FRITZ!DECT 210"},"present":"1","txbusy":"0","name":"Steckdose Roller","switch":{"state":"0","mode":"auto","lock":"0","devicelock":"0"},"simpleonoff":{"state":"0"},"powermeter":{"voltage":"234582","power":"0","energy":"4837"},"temperature":{"celsius":"170","offset":"0"}},{"$":{"identifier":"09995 0402024","id":"38","functionbitmask":"1048864","fwversion":"05.17","manufacturer":"AVM","productname":"FRITZ!DECT 440"},"present":"1","txbusy":"0","name":"FRITZ!DECT 440 #23","battery":"100","batterylow":"0","temperature":{"celsius":"195","offset":"0"},"humidity":{"rel_humidity":"71"},"button":[{"$":{"identifier":"09995 0402024-1","id":"5004"},"name":"FRITZ!DECT 440 #23: Oben rechts","lastpressedtimestamp":""},{"$":{"identifier":"09995 0402024-3","id":"5005"},"name":"FRITZ!DECT 440 #23: Unten rechts","lastpressedtimestamp":""},{"$":{"identifier":"09995 0402024-5","id":"5006"},"name":"FRITZ!DECT 440 #23: Unten links","lastpressedtimestamp":""},{"$":{"identifier":"09995 0402024-7","id":"5007"},"name":"FRITZ!DECT 440 #23: Oben links","lastpressedtimestamp":""}]},{"$":{"identifier":"5C:49:79:F9:B8:3F","id":"20000","functionbitmask":"33408","fwversion":"07.13","manufacturer":"AVM","productname":"FRITZ!Powerline 546E"},"present":"1","txbusy":"0","name":"FRITZ!Powerline 546E","switch":{"state":"0","mode":"manuell","lock":"0","devicelock":"0"},"simpleonoff":{"state":"0"},"powermeter":{"voltage":"235854","power":"0","energy":"31150"}},{"$":{"identifier":"11657 0219216","id":"39","functionbitmask":"35712","fwversion":"04.17","manufacturer":"AVM","productname":"FRITZ!DECT 210"},"present":"1","txbusy":"0","name":"Steckdose Bosch","switch":{"state":"0","mode":"auto","lock":"0","devicelock":"0"},"simpleonoff":{"state":"0"},"powermeter":{"voltage":"234431","power":"0","energy":"414375"},"temperature":{"celsius":"160","offset":"0"}},{"$":{"identifier":"13096 0039453","id":"42","functionbitmask":"32","fwversion":"04.90","manufacturer":"AVM","productname":"FRITZ!DECT 400"},"present":"1","txbusy":"0","name":"Taster Warmwasser","battery":"100","batterylow":"0","button":[{"$":{"identifier":"13096 0039453-0","id":"5008"},"name":"Taster Warmwasser: kurz","lastpressedtimestamp":"1631965525"},{"$":{"identifier":"13096 0039453-9","id":"5009"},"name":"Taster Warmwasser: lang","lastpressedtimestamp":"1631804060"}]}],"group":{"$":{"synchronized":"1","identifier":"grp1DF263-3BFE8F959","id":"900","functionbitmask":"4160","fwversion":"1.0","manufacturer":"AVM","productname":""},"present":"1","txbusy":"0","name":"Küche","hkr":{"tist":"","tsoll":"253","absenk":"253","komfort":"42","lock":"0","devicelock":"0","errorcode":"0","windowopenactiv":"0","windowopenactiveendtime":"0","boostactive":"0","boostactiveendtime":"0","nextchange":{"endperiod":"0","tchange":"42"},"summeractive":"0","holidayactive":"0"},"groupinfo":{"masterdeviceid":"0","members":"22,31"}}}}

seydx commented 2 years ago

Thank your very much, i pushed a new beta version, can u check it pls and confirm if the beta fix the issue

sudo npm i -g homebridge-fritz-platform@beta

Dont worry, u can always jump back to official version without any issues with following command:

sudo npm i -g homebridge-fritz-platform@latest

sascha-voss commented 2 years ago

great, thanks a lot! you are really fast! i installed the beta and both buttons (the old and the new one) work fine.

Von: seydx @.> Gesendet: Samstag, 18. September 2021 18:19 An: SeydX/homebridge-fritz-platform @.> Cc: sascha-voss @.>; Author @.> Betreff: Re: [SeydX/homebridge-fritz-platform] New DECT400 Model with higher AIN doesn't work (#231)

Thank your very much, i pushed a new beta version, can u check it pls and confirm if the beta fix the issue

sudo npm i -g @.***

Dont worry, u can always jump back to official version without any issues with following command:

sudo npm i -g @.***

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SeydX/homebridge-fritz-platform/issues/231#issuecomment- 922334858 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVVFD7DKTBVL5DKTOCCF2QLUC S3WTANCNFSM5EFFRVSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&m t=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=u tm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AVVFD7BJJJJ3G2FLJGQJGY3UCS3WTA5CNFS M5EFFRVSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG343NCQ .gif