homebridge-fhem icon indicating copy to clipboard operation
homebridge-fhem copied to clipboard

Thermostat's dont't work anymore

Open achimmm opened this issue 2 years ago • 3 comments

Hi,

after upgrading to Homebridge 1.3.0 I get the following erros just for thermostat devices.

The mentioned characteristic values should be okay, but for some reason a warning get's produced

[12/10/2021, 23:07:30] [FHEM] query: CurrentHeatingCoolingState for roomWohnzimmer2-undefined
[12/10/2021, 23:07:30] [FHEM]   cached: 1 (as number)
[12/10/2021, 23:07:30] [homebridge-fhem] This plugin generated a warning from the characteristic 'Current Heating Cooling State': Unhandled error thrown inside read handler for characteristic: Error: characteristic value 1 is not contained in valid values array!
    at CurrentHeatingCoolingState.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2028:15)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1490:24
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:9:18
    at FHEMAccessory.query (/usr/lib/node_modules/homebridge-fhem/index.js:2628:9)
    at FHEMAccessory.<anonymous> (/usr/lib/node_modules/homebridge-fhem/index.js:3149:31)
    at CurrentHeatingCoolingState.emit (events.js:400:28)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1466:14
    at new Promise (<anonymous>)
    at CurrentHeatingCoolingState.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1464:12)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:113:16)
    at CurrentHeatingCoolingState.Characteristic.handleGetRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:632:24)
    at CurrentHeatingCoolingState.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2127:22) See https://git.io/JtMGR for more info.
[12/10/2021, 23:07:30] [FHEM] query: TargetHeatingCoolingState for roomWohnzimmer2-undefined
[12/10/2021, 23:07:30] [FHEM]   cached: 3 (as number)
[12/10/2021, 23:07:30] [homebridge-fhem] This plugin generated a warning from the characteristic 'Target Heating Cooling State': Unhandled error thrown inside read handler for characteristic: Error: characteristic value 3 is not contained in valid values array!
    at TargetHeatingCoolingState.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2028:15)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1490:24
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:9:18
    at FHEMAccessory.query (/usr/lib/node_modules/homebridge-fhem/index.js:2628:9)
    at FHEMAccessory.<anonymous> (/usr/lib/node_modules/homebridge-fhem/index.js:3149:31)
    at TargetHeatingCoolingState.emit (events.js:400:28)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1466:14
    at new Promise (<anonymous>)
    at TargetHeatingCoolingState.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1464:12)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
    at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:113:16)
    at TargetHeatingCoolingState.Characteristic.handleGetRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:632:24)
    at TargetHeatingCoolingState.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2127:22) See https://git.io/JtMGR for more info.

achimmm avatar Oct 12 '21 21:10 achimmm

please show a list of the fhem device. this is probably a missing/wrong homebridgeMapping.

justme-1968 avatar Oct 13 '21 06:10 justme-1968

Here you are:

Internals: ACTOR pwm_test_heating_Wohnzimmer2http://192.168.0.138:8083/fhem?detail=pwm_test_heating_Wohnzimmer2 DEF fhhttp://192.168.0.138:8083/fhem?detail=fh 1,0.11 CUL_WS_5http://192.168.0.138:8083/fhem?detail=CUL_WS_5 pwm_test_heating_Wohnzimmer2http://192.168.0.138:8083/fhem?detail=pwm_test_heating_Wohnzimmer2 FUUID 5d579c9a-f33f-803a-7a77-c027c6dfe51435c7 INTERVAL 300 IODev fhhttp://192.168.0.138:8083/fhem?detail=fh NAME roomWohnzimmer2http://192.168.0.138:8083/fhem?detail=roomWohnzimmer2 NR 268 STATE Manual TEMPSENSOR CUL_WS_5http://192.168.0.138:8083/fhem?detail=CUL_WS_5 TYPE PWMR WINDOW a_regexp_on on actor pwm_test_heating_Wohnzimmer2http://192.168.0.138:8083/fhem?detail=pwm_test_heating_Wohnzimmer2 c_PID_useit 0 c_autoCalcTemp 0 c_desiredTempFrom c_factor 1 c_foffset 0.11 c_frostProtect 0 c_tempC 22 c_tempD 20 c_tempE 19 c_tempFrostProtect 6 c_tempN 16 c_tempRule1 1-5 0600,D 2200,N c_tempRule2 6-0 0800,D 2200,N c_tempRule3 c_tempRule4 c_tempRule5 c_tempRuleS D p_actor pwm_test_heating_Wohnzimmer2http://192.168.0.138:8083/fhem?detail=pwm_test_heating_Wohnzimmer2 p_factor 1,0.11 p_pid p_tsensor CUL_WS_5http://192.168.0.138:8083/fhem?detail=CUL_WS_5 p_window t_reading temperature t_regexp ([\d.]+) t_sensor CUL_WS_5http://192.168.0.138:8083/fhem?detail=CUL_WS_5 w_regexp .[Oo]pen. windows READINGS: 2021-10-13 14:09:51 PWMOnTime 00:00 2021-10-13 14:09:51 PWMPulse 0 2021-10-13 05:59:34 actorState off 2021-10-12 23:18:15 desired-temp 22.0 2021-10-13 14:09:51 desired-temp-used 22.0 2021-10-13 14:09:51 energyused 000000000000000000000000000000 2021-10-13 14:09:51 energyusedp 0.0 2021-10-13 05:59:34 lastswitch 1634097574.16387 2021-09-23 06:22:35 manualTempDuration 0 2021-10-13 14:09:51 oldpulse 0.2 2021-10-13 14:10:21 state Manual 2021-10-13 14:09:51 temperature 21.7 helper: Attributes: alias roomWohnzimmer2http://192.168.0.138:8083/fhem?detail=roomWohnzimmer2 autoCalcTemp 0 homebridgeMapping history:size=1024 CurrentHeatingCoolingState:default=1,valid=1 TargetHeatingCoolingState:default=3,valid=3 room Homekit,PWM,alexa

achimmm avatar Oct 13 '21 12:10 achimmm

please show a list of the fhem device. this is probably a missing/wrong homebridgeMapping.

Hi, do you alteady have an advice?

lgA

achimmm avatar Oct 22 '21 18:10 achimmm