michbeck100 / pimatic-hap

Pimatic homekit bridge
GNU General Public License v2.0
30 stars 10 forks source link

change temperature on COMETDECT-FRITZ!Box Thermostat through pimatic-hap #53

Closed amiraoul closed 8 years ago

amiraoul commented 8 years ago

99% of the time the temp change through pimatic-hap / homekit doesn't always work

When changing the temp these are the 2 diffrent error which happen:

error seems related to pimatic-hap since changing temp directly in pimatic works flawless

error [pimatic]: A uncaught exception occured: Error: changeModeTo must be implemented by a subclass at FritzThermostatDevice.HeatingThermostat.changeModeTo (/home/amiraoul/pimatic-app/node_modules/pimatic/lib/devices.coffee:602:17) at [object Object]. (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/accessories/thermostat.coffee:68:20) at emitMany (events.js:108:13) at [object Object].emit (events.js:182:7) at [object Object].Characteristic.setValue (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Characteristic.js:155:10) at Bridge. (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:727:22) at Array.forEach (native) at Bridge.Accessory._handleSetCharacteristics (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/Accessory.js:672:8) at emitMany (events.js:108:13) at HAPServer.emit (events.js:182:7) at HAPServer._handleCharacteristics (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:967:10) at HAPServer. (/home/amiraoul/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/lib/HAPServer.js:204:39) at emitNone (events.js:67:13) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:921:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) This is most probably a bug in pimatic or in a module, please report it!

michbeck100 commented 8 years ago

Thanks for your bug report. I'll have a look into this.

michbeck100 commented 8 years ago

Which version of pimatic-hap are you using? The current version 0.9.0 should actually fix the first problem.

amiraoul commented 8 years ago

I'm using 0.9.0 since it has been released. I will do some further testing and keep you posted on the first issue. The second issue is definitely present since i have a scene defined in the apple home app to disable couple of lights and lower the temp on a thermostat.

michbeck100 commented 8 years ago

I've created a PR for pimatic-fritz to solve the second problem which produces the error.

michbeck100 commented 8 years ago

My PR was merged and pimatic-fritz was released in version 0.5.3. Please update and open this issue again if you still have problems.