NamCisum
(Daniel)
November 30, 2021, 9:45pm
21
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
syrinx
December 1, 2021, 1:24pm
22
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
syrinx
December 1, 2021, 1:27pm
23
hey,
I think Iām using the same config but without success
thanks!
NamCisum
(Daniel)
December 1, 2021, 1:50pm
24
Yes, I now get the same error, even though the entity can be picked. Sorry, donāt know how to trouble shoot any furtherā¦
NamCisum
(Daniel)
December 1, 2021, 1:54pm
25
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 }}
NamCisum
(Daniel)
December 1, 2021, 2:46pm
26
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ā¦
syrinx
December 1, 2021, 4:26pm
27
corrected my issues with panel temp and humidity.
thanks.
regarding energy dashboardā¦
unfortunately this breaks my fronius solar integrationā¦(via HACS)
NamCisum
(Daniel)
December 1, 2021, 4:39pm
28
In that case you have to analyse why that is / why the customize_glob affects this integrationā¦
syrinx
December 1, 2021, 4:54pm
29
sorry working
besides polo energyā¦but maybe day energy is the right one
many thanks!
cheers