Integrate Poloplast PoloAir ventilation systems using Modbus integration

Now included the necessary sensors working with energy dashboard:

    - name: polo_energy_day
      slave: 1
      address: 926
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement
    - name: polo_energy_month
      slave: 1
      address: 928
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement
    - name: polo_energy_total
      slave: 1
      address: 930
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement

Hi,

Iā€™ve added/replaced the sensor but it is not possible to select them for the energy dashboard.
Iā€™ve attached my modbus.yaml here. maybe you can have a look at it.

type or paste code here
# Sensors for PoloAir 250+

- name: polo
  type: tcp
  host: 192.168.0.186
  port: 502
  retry_on_empty: true
  retries: 5
  sensors:
    - name: polo_OnOff
      slave: 1
      address: 0
      lazy_error_count: 2
      data_type: uint16
    - name: polo_EcoMode
      slave: 1
      address: 2
      lazy_error_count: 2
      data_type: uint16
    - name: polo_AutoMode
      slave: 1
      address: 3
      lazy_error_count: 2
      data_type: uint16
    - name: polo_CurrentMode
      slave: 1
      address: 4
      lazy_error_count: 2
      data_type: uint16
    - name: polo_NextMode
      slave: 1
      address: 6
      lazy_error_count: 2
      data_type: uint16
    - name: polo_ActiveAlarm
      slave: 1
      address: 599
      lazy_error_count: 2
      data_type: uint16
    - name: polo_FanAirIn
      slave: 1
      address: 909
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: '%'
    - name: polo_FanAirOut
      slave: 1
      address: 910
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: '%'
    - name: polo_TempAirOutside
      slave: 1
      address: 903
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: Ā°C
      device_class: temperature
    - name: polo_TempAirIn
      slave: 1
      address: 901
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: Ā°C
      device_class: temperature
    - name: polo_TempAirOut
      slave: 1
      address: 902
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: Ā°C
      device_class: temperature
    - name: polo_FilterImpurity
      slave: 1
      address: 916
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: '%'
    - name: polo_energy_day
      slave: 1
      address: 926
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement
    - name: polo_Heater
      slave: 1
      address: 921
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: 'W'
    - name: polo_HeatexEnergy
      slave: 1
      address: 922
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: 'W'
    - name: polo_HeatexEfficiency
      slave: 1
      address: 923
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: '%'
    - name: polo_energy_month
      slave: 1
      address: 928
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement
    - name: polo_energy_total
      slave: 1
      address: 930
      lazy_error_count: 2
      data_type: uint32
      unit_of_measurement: 'kWh'
      scale: 0.001
      precision: 2
      state_class: measurement
    - name: polo_TempPanel
      slave: 1
      address: 945
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: Ā°C
      device_class: temperature
    - name: polo_HumPanel
      slave: 1
      address: 946
      lazy_error_count: 2
      data_type: uint16
      unit_of_measurement: '%'
      device_class: humidity

ScreenShot130

hey,

I think Iā€™m using the same config but without success


ScreenShot132

thanks!

Yes, I now get the same error, even though the entity can be picked. Sorry, donā€™t know how to trouble shoot any furtherā€¦

It works here, template looks good to me. Are you displaying the correct entity?
What is the state of tpolo_temppanel in Dev Tools ā†’ Entities?

To check copy this into Dev Tools ā†’ Template and see what it shows / if theres an error:

{{ states.sensor.polo_temppanel.state | float / 10 }}

I think I found the missing piece - add this to configuration.yaml:

homeassistant:
  customize_glob:
    sensor.polo_energy*:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      state_class: measurement

It now works in my test environmentā€¦

corrected my issues with panel temp and humidity.
thanks.

regarding energy dashboardā€¦

unfortunately this breaks my fronius solar integrationā€¦(via HACS)

In that case you have to analyse why that is / why the customize_glob affects this integrationā€¦

sorry working :wink:
ScreenShot133

besides polo energyā€¦but maybe day energy is the right one :wink:

many thanks!

cheers