ioBroker / ioBroker.maxcul

Control max! devices over CUL stick
Other
4 stars 8 forks source link

New thermostat functions #24

Closed bowao closed 5 years ago

bowao commented 5 years ago

Create Thermostat Week Profile (from Saturday to Friday with formatted UntilTimeString hh:mm in 5 minute steps) Send Thermostat Day Profile. (for each Day from Saturday to Friday) Create Thermostat Vacation Config Send Vacation Config. Temperature and Until Date with formatted UntilDateString. Value display dd-MM-yyyy HH:mm. Value input dd-MM-yyyy HH:mm little-endian order. DIN 5008 alternative. Traditional format in German. And as well Value input yyyy-MM-dd HH:mm big-endian order. ISO 8601, EN 28601 and DIN 5008. International. Compatible with widget "jqui-ctrl-input Datetime" Add Thermostat States: 2: 'vacation', 4: 'manual eco', 5: 'manual comfort', 6: 'manual window'. Fix the order of weekdays for decalcificatonDay (week beginns with 0: 'Saturday' - weird chinese product). Try to improve the Polling method: If the Thermostat is in Automatic-Mode, polling changes the Thermostat-Mode to manual. If the Thermostat is in Manual-Mode, polling changes the set-temperature by 0.5 degrees. If the Thermostat is in Boost-Mode polling is cancelled. Add Poll-Timeout. Add Poll-Pause between the request of different devices (If several Thermostats are otherwise requested at the same Time). Little fixes her and there.

GermanBluefox commented 5 years ago

serialport must be updated to 7.x. May be you can perform it too? Apollon77 has tried, but he has no HW and could not check it. Here is what he tried to do: https://github.com/ioBroker/ioBroker.maxcul/commit/895c80fba5970195cefb17ce1193c5be47722b80

Apollon77 commented 5 years ago

@bowao Exactly: Main changes in serialport 6/7 is that isOpne is now a method and no property AND that the "parser" is initialized differently... I did the changes together with in some other adapters, but here the users report that it was not working ... so after some tests and tries I reverted it to stay "updatable".

But the old Serialport version means: no Nodejs10+ support... with 7.1.5 we have up to nodejs 12 support...

If you could try the update I would be happy. I can also support if needed on code side