kr0ner / OneESP32ToRuleThemAll

17 stars 5 forks source link

introduces variant handling #19

Closed kr0ner closed 2 months ago

kr0ner commented 2 months ago

In order to support settings for different heat pump variants, there is now a base config that defines the common parts and a specific yaml for every variant. Specific parts can be moved out of the base and defined for each heat pump. If there are changes required on C++ level, C macros can be used to change the source code dynamically.

ifdef THZ404

// do this

elif THZ5_5_ECO

// do that

else

// do the default

endif

kr0ner commented 2 months ago

@croessi @sg-media-dev please try this out and see if it fits your needs :wink:

croessi commented 2 months ago

Nice! Will add my mappings here as soon as I find some time!

sg-media-dev commented 2 months ago

Works great straight away :-) I have added some changes for my THZ404 #20 Thanks @kr0ner