zxdavb / ramses_cc

HA integration for CH/DHW and HVAC systems that use the RAMSES II RF protocol
GNU General Public License v3.0
80 stars 17 forks source link

Move service definitions into their respective modules #115

Closed trvrnrth closed 11 months ago

trvrnrth commented 11 months ago

It's worth noting that I have left the register calls separate rather than iterating over a map for each platform as there are services which are candidates for supporting a response, or requiring features. Keeping the calls separate will allow for these enhancements to made more easily later without the need for a more complicated interstitial data structure.

trvrnrth commented 11 months ago

I imagine it would be fairly safe to add custom climate supported features if we used a high value along the lines of RAMSES_CONTROLLER = 1048576 and RAMSES_ZONE = 2097152 as that would leave room for 20 core features. This would then allow the service descriptions/registrations to filter the entities on this feature so that only calls applicable to zones/TCSes were possible.