DirtyDevWork / homebridge-daikin

Supports Daikin Air Conditioners on HomeBridge
Apache License 2.0
10 stars 13 forks source link

Default values on HomeBridge Launch #12

Open DirtyDevWork opened 7 years ago

DirtyDevWork commented 7 years ago

Default values don't update to Daikin current values until a setting is changed and sent back to HomeBridge after HomeBridge launch

mecrip commented 7 years ago

HI!

I've made a quick change to get the correct init values when the homebridge server starts, by adding a call to this.getCurrentHeatingCoolingState(function (){}); at the end of the constructor.

this way the initial state is correct before any other call and homekit display the correct value for the status. I can confirm that it works with a 12 yo ftxs35c internal unit

thanks for the big work here!

greensouth commented 7 years ago

Yep, can confirm it works. Waiting for the developer to commit ;)

extric99 commented 5 years ago

@mecrip Since this has not been committed in over 15 months is there any way to apply this fix ourselves?