Closed SkullboyNL closed 5 months ago
Thanks for the work. There's an error in the text sensor causing you to get an error that X doesn't exist. This fixes it: text_sensors.yml
- platform: template
id: balance_mode # PDO 55
name: 'Balance Mode'
icon: mdi:arrow-split-vertical
on_value:
then:
- lambda: id(balance_mode_select).publish_state(x);
Okay, there's a name difference in the options of the text sensor and select. The 'o' in 'only' is not capitalized. Here's the solution. Select.yml
- platform: template
name: 'Balance mode'
id: balance_mode_select
icon: mdi:arrow-split-vertical
options:
- "Balanced"
- "Supply Only"
- "Exhaust Only"
optimistic: true
restore_value: true
set_action:
- lambda: |
if (x == "Balanced") {
id(comfoair)->set_balance_mode(zehnder_comfoair_q::BALANCE_MODE_BALANCED);
} else if (x == "Supply Only") {
id(comfoair)->set_balance_mode(zehnder_comfoair_q::BALANCE_MODE_SUPPLY_ONLY);
} else if (x == "Exhaust Only") {
id(comfoair)->set_balance_mode(zehnder_comfoair_q::BALANCE_MODE_EXHAUST_ONLY);
}
Could you possibly add an option to set extract and supply only? Similar to the ESP version of Vekexasia? This is how Vekexasia it does
Thank you in advance.