thkl / homebridge-homematic

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

ProgrammableSwitchEvent.Characteristic.characteristicWarning #687

Open Basti2506 opened 3 years ago

Basti2506 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

Hallo Thomas,

beim Drücken des virtuellen Schalters der die Aktualisierung meiner Variablen in Homekit anstoßen soll, wird eine Warnung bzw. ein Error im Log der Homebridge ausgegeben. Die Variablen werden nicht aktualisiert. Details dazu siehe im Log unten.

Meine Konfiguration:

Meine verwendeten Variablen heißen SwitchGarage & SwitchRollooeffnen. Diese können die Werte 1 oder 0 annehmen und werden über "variables": [] als Switch in Homebridge bzw. Homekit eingebunden. Die Werte der Variablen werden entweder manuell in Homekit durch betätigen des jeweiligen Switchs oder durch Programme in der CCU geändert. Dabei soll das Event "variable_update_trigger_channel" die Aktualisierung der Variablen in Homekit anstoßen, wenn diese durch ein Programm auf der CCU geändert wurden. Dafür habe ich ein Programm auf der CCU erstellt, welches den Virtuellen Button HM-RCV-50 BidCoS-RF:50 "kurz" betätigt, wenn sich der Wert einer Variablen ändert. Den Eintrag zum Event habe ich in der config.json ergänzt (siehe unten).

Which Homematic Device or Service the bug is about variable_update_trigger_channel variables": []

To Reproduce Steps to reproduce the behavior: Immer wenn der Virtuelle Schalter durch Änderung der Variablen in der HomeMatic CCU gedrückt wird, tritt der Fehler auf.

Actual behaviour Variablen werden in Homebridge bzw. Homekit nicht aktualisiert.

Expected behavior Variablen sollen bei Änderung in der CCU durch das Event aktualisiert werden.

LogFile

[9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] <- system.multicall on BidCos-RF. (null) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] event for BidCos-RF.OEQ0670681:1.TEMPERATURE with value 25.2 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Cache] write 25.2 for BidCos-RF.OEQ0670681:1.TEMPERATURE [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] Accessory (Wohnzimmer Klima) found by channeladress (BidCos-RF.OEQ0670681:1) -> Send Event with value 25.2 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint TEMPERATURE [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] cache BidCos-RF.OEQ0670681:1.TEMPERATURE (25.2) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Cache] write 25.2 for BidCos-RF.OEQ0670681:1.TEMPERATURE [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] datapointEvent 1.TEMPERATURE with 25.2 channel BidCos-RF.OEQ0670681:1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] isDataPointEvent check 1.TEMPERATURE vs 1.TEMPERATURE for channel 1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] isDataPointEvent check 1.TEMPERATURE vs 1.HUMIDITY for channel 1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] Saving log data for Wohnzimmer Klima: {"temp":25.2,"pressure":0,"humidity":52,"time":1631112048} [9/8/2021, 4:40:48 PM] [HomeMatic CCU] First entry Wohnzimmer Klima: 0 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] Last entry Wohnzimmer Klima: 37 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] Used memory Wohnzimmer Klima: 37 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] 116 Wohnzimmer Klima: 0d1d010000000000e3e5e72603 0102 0202 03023800c00f00000000000000000101 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] ** Fakegato-storage write FS file: /homebridge/TS251Plus_BidCos-RF.OEQ0670681:1_persist.json "firstEntry":0,"lastEntry":55,"usedMemory":55,"refTime":652731875,"initialTime": [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] event for BidCos-RF.OEQ0670681:1.HUMIDITY with value 52 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Cache] write 52 for BidCos-RF.OEQ0670681:1.HUMIDITY [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] Accessory (Wohnzimmer Klima) found by channeladress (BidCos-RF.OEQ0670681:1) -> Send Event with value 52 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint HUMIDITY [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] cache BidCos-RF.OEQ0670681:1.HUMIDITY (52) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Cache] write 52 for BidCos-RF.OEQ0670681:1.HUMIDITY [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] datapointEvent 1.HUMIDITY with 52 channel BidCos-RF.OEQ0670681:1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] isDataPointEvent check 1.HUMIDITY vs 1.TEMPERATURE for channel 1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] isDataPointEvent check 1.HUMIDITY vs 1.HUMIDITY for channel 1 [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] <- system.multicall on BidCos-RF. (null) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] event for BidCos-RF.BidCoS-RF:50.PRESS_SHORT with value true [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Cache] write true for BidCos-RF.BidCoS-RF:50.PRESS_SHORT [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [RPC] Accessory (HM RCV 50 BidCoS RF 50) found by channeladress (BidCos-RF.BidCoS-RF:50) -> Send Event with value true [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint PRESS_SHORT [9/8/2021, 4:40:48 PM] [homebridge-homematic] Characteristic 'Programmable Switch Event': SET handler returned write response value, though the characteristic doesn't support write response. See https://git.io/JtMGR for more info. [9/8/2021, 4:40:48 PM] [homebridge-homematic] Error:   at ProgrammableSwitchEvent.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105)  at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1663:22  at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:9:18  at ProgrammableSwitchEvent. (/homebridge/node_modules/homebridge-homematic/ChannelServices/HomeMaticHomeKitVariableUpdaterService.js:21:21)  at ProgrammableSwitchEvent.emit (events.js:400:28)  at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1632:16  at new Promise ()  at ProgrammableSwitchEvent. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1630:14)9/8/2021, 4:40:48 PM  at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] Variable update trigger was pressed (true) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint  [9/8/2021, 4:40:48 PM] [HomeMatic CCU] Update variable SwitchGarage with false [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint STATE [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] cache SwitchGarage.STATE (false) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] datapointEvent STATE with false channel SwitchGarage [9/8/2021, 4:40:48 PM] [HomeMatic CCU] Update variable SwitchRollooeffnen with false [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] transformDatapoint STATE [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] cache SwitchRollooeffnen.STATE (false) [9/8/2021, 4:40:48 PM] [HomeMatic CCU] [Generic] datapointEvent STATE with false channel SwitchRollooeffnen

config.json

{ "name": "HomeMatic CCU", "ccu_ip": "xxx.xxx.xxx.xx", "subsection": "Homekit", "enable_hmip": true, "enable_wired": false, "ios10": true, "platform": "HomeMatic", "variables": [ "SwitchGarage", "SwitchRollooeffnen" ], "variable_update_trigger_channel": "HM-RCV-50 BidCoS-RF:50" }

Würde mich sehr freuen, wenn du dir das mal ansehen könntest, was bei mir verkehrt läuft.

VG

Basti

padman74 commented 1 year ago

Hello, I have exactly the same problem after installation of new npm environment. What did you do to fix it? I also tried to downgrade to older homebridge-homebridge version, but still same issue.

Thank you and regards Volker