stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Child Lock reading/writing for Thermostats #100

Closed coeing closed 3 years ago

coeing commented 3 years ago

Closes #41

coeing commented 3 years ago

Took a bit longer than expected, but works as intended :)

I added a bit more to the basic service architecture with the handleCommand method of services. The idea is that instead of having the handlers handle the commands, pulling it up to the services. This makes sure that the command handling does not have to be written (i.e. copy&pasted) twice if the same service is used in two handlers. Right now we do not have the case yet (as we have very few writable channels anyway), but I am sure there will be a case sooner or later :)