Closed panosnl closed 1 year ago
How did you fix it?
How did you fix it?
I was new to HA so the 'manual' on github was not clear to me and also syntax seemed outdated. Eventually i got it working using the following settings
in configuration.yaml:
mqtt: !include mqtt.yaml
switch:
- platform: template
switches:
vmc_supply_ventilation:
value_template: "{{ states('sensor.vmc_supply_fan_duty') | int > 0 }}"
turn_on:
service: mqtt.publish
data:
topic: comfoair/commands/ventilation_extract_only_reset
payload: ':)'
turn_off:
service: mqtt.publish
data:
topic: comfoair/commands/ventilation_extract_only
payload: ':)'
vmc_extract_ventilation:
value_template: "{{ states('sensor.vmc_exhaust_fan_duty') | int > 0 }}"
turn_on:
service: mqtt.publish
data:
topic: comfoair/commands/ventilation_supply_only_reset
payload: ':)'
turn_off:
service: mqtt.publish
data:
topic: comfoair/commands/ventilation_supply_only
payload: ':)'
in automations.yaml:
- id: Comfoair1
alias: Comfoair nacht op 1
description: ''
trigger:
- at: 00:00:00
platform: time
condition: []
action:
- service: mqtt.publish
data:
topic: comfoair/commands/ventilation_level_1
payload: true
- id: Comfoair2
alias: '[VMC] Auto Update user fan speed from MQTT'
trigger:
platform: mqtt
topic: comfoair/fan_speed
action:
- service: input_select.select_option
data:
entity_id: input_select.vmc_user_fan_speed
option: '{{ trigger.payload }}'
- id: Comfoair3
alias: '[VMC] Set user fan speed on VMC from input select'
trigger:
- platform: state
entity_id:
- input_select.vmc_user_fan_speed
action:
- service: mqtt.publish
data:
topic: comfoair/commands/ventilation_level
payload: '{{ states(''input_select.vmc_user_fan_speed'') }}'
- id: Comfoair4
alias: '[VMC] Auto Update user operation mode from MQTT'
trigger:
platform: mqtt
topic: comfoair/operating_mode
action:
- service: input_select.select_option
data:
entity_id: input_select.vmc_operating_mode
option: '{{ ''manual'' if trigger.payload != ''auto'' else ''auto''}}'
- id: Comfoair5
alias: '[VMC] Set user operating mode on VMC from input select'
trigger:
platform: state
entity_id: input_select.vmc_operating_mode
action:
- service: mqtt.publish
data:
topic: comfoair/commands/set_mode
payload: '{{ states(''input_select.vmc_operating_mode'') }}'
mqtt.yaml
#mqtt:
sensor:
# Consumption
- name: "VMC Power Current"
unique_id: "VMC Power Current"
state_topic: "comfoair/power_consumption_current"
unit_of_measurement: W
- name: "VMC Total Energy Saving"
unique_id: "VMC Total Energy Saving"
state_topic: "comfoair/ah_ytd"
unit_of_measurement: Wh
# FAns
- name: "VMC Exhaust Fan Speed"
unique_id: "VMC Exhaust Fan Speed"
state_topic: "comfoair/exhaust_fan_speed"
unit_of_measurement: rpm
- name: "VMC Supply Fan Speed"
unique_id: "VMC Supply Fan Speed"
state_topic: "comfoair/supply_fan_speed"
unit_of_measurement: rpm
- name: "VMC Exhaust Fan Duty"
unique_id: "VMC Exhaust Fan Duty"
state_topic: "comfoair/exhaust_fan_duty"
unit_of_measurement: rpm
- name: "VMC Supply Fan Duty"
unique_id: "VMC Supply Fan Duty"
state_topic: "comfoair/supply_fan_duty"
unit_of_measurement: rpm
- name: "VMC Supply Fan User Speed"
unique_id: "VMC Supply Fan User Speed"
state_topic: "comfoair/fan_speed"
# FLOW
- name: "VMC Exhaust Fan Flow"
unique_id: "VMC Exhaust Fan Flow"
state_topic: "comfoair/exhaust_fan_flow"
unit_of_measurement: "m³/h"
- name: "VMC Supply Fan Flow"
unique_id: "VMC Supply Fan Flow"
state_topic: "comfoair/supply_fan_flow"
unit_of_measurement: "m³/h"
# TEMPS
- name: "VMC Outdoor Air Temperature"
unique_id: "VMC Outdoor Air Temperature"
state_topic: "comfoair/outdoor_air_temp"
unit_of_measurement: "°C"
- name: "VMC Exhaust Air Temperature"
unique_id: "VMC Exhaust Air Temperature"
state_topic: "comfoair/exhaust_air_temp"
unit_of_measurement: "°C"
- name: "VMC Extract Air Temperature"
unique_id: "VMC Extract Air Temperature"
state_topic: "comfoair/extract_air_temp"
unit_of_measurement: "°C"
- name: "VMC Pre Heater Temp Before"
unique_id: "VMC Pre Heater Temp Before"
state_topic: "comfoair/pre_heater_temp_before"
unit_of_measurement: "°C"
- name: "VMC Pre Heater Temp After"
unique_id: "VMC Pre Heater Temp After"
state_topic: "comfoair/pre_heater_temp_after"
unit_of_measurement: "°C"
- name: "VMC Post Heater Temp Before"
unique_id: "VMC Post Heater Temp Before"
state_topic: "comfoair/post_heater_temp_before"
unit_of_measurement: "°C"
- name: "VMC Post Heater Temp After"
unique_id: "VMC Post Heater Temp After"
state_topic: "comfoair/post_heater_temp_after"
unit_of_measurement: "°C"
# Humidity
- name: "VMC Outdoor Air Humidity"
unique_id: "VMC Outdoor Air Humidity"
state_topic: "comfoair/outdoor_air_humidity"
unit_of_measurement: "%"
- name: "VMC Exhaust Air Humidity"
unique_id: "VMC Exhaust Air Humidity"
state_topic: "comfoair/exhaust_air_humidity"
unit_of_measurement: "%"
- name: "VMC Extract Air Humidity"
unique_id: "VMC Extract Air Humidity"
state_topic: "comfoair/extract_air_humidity"
unit_of_measurement: "%"
- name: "VMC Supply Air Humidity"
unique_id: "VMC Supply Air Humidity"
state_topic: "comfoair/supply_air_humidity"
unit_of_measurement: "%"
Note that fan parameters are updated every second making my HA database very slow so I excluded these from the database
recorder:
exclude:
entities:
- sensor.vmc_exhaust_fan_duty
- sensor.vmc_exhaust_fan_flow
- sensor.vmc_exhaust_fan_speed
- sensor.vmc_supply_fan_duty
- sensor.vmc_supply_fan_flow
- sensor.vmc_supply_fan_speed
Hi PanosNL,
Thank you for the shared yaml files. This did help me set it up. I have some questions for you, I also am just starting with HomeAssistant and MTQQ, so newbe still...
Did you still use the index.html?
Can you maybe share the yaml file from your dashboard? Maybe this helps me understand how to set it up with the automation and swtiches.
Regards, Rein
Hi Panos,
I am trying to get the Comfoair back to auto. I am using your automation. Does this work at your end?
What exactly is the paypoad you are using? (quotes?)
@Obelixje I have seem to have missed uploading the 2 input select configurations. They are indeed needed for everthing to work correctly.
I missed them because in the new HA it is defined in the 'Helpers' GUI instead of YAML.
Thank you,
This helps. Can you please share the configuration of the button you are using for vmc_operating_mode in your UI?
Thank you,
This helps. Can you please share the configuration of the button you are using for vmc_operating_mode in your UI?
Just make the input select helper and add it to the dashboard. It will create a pull down for you in the UI.
Hi Panosnl,
Again, thanks for your help. This now works.
I only have issues not when I use my boost button from the VMC it self. I use button to boost for 10 minutes, but the automation is switching to manual , level three. And this is not turned off after 10 minutes. Without the ESP project the screen of the VMC always told me boost with a countdown from 10 to 0. Then back to auto. Now manual level three. and this does not change back.
Do you have the same issue?
Hi,
I have the comfoair to mqtt running but now I have problems getting the haconfig file properly integrated in HA.
I tried !include index.yaml in the configuration.yaml but that seemed not to work: vmc_comfoair: is not an integration . Also it does not seem like a custom component either or is it?
index.yaml
vmc_comfoair: sensor: !include ./.sensors.yaml input_select: vmc_user_fan_speed: name: "VMC User Fan Speed" options: