I pull sensor data from my PV inverter every 2 seconds. Below is part of the code.
Problem:
Whenever the PV inverter is offline (every night when there is no sunlight), HA seams to start very slowly. Normally it restarts within less than a minute. Now it takes something like 5 Minutes and the dashboard also loads very slowly after HA has been started.
Desired Solution:
Modbus devices that are offline (sensor data not available) should ideally not slow down HA startup. Maybe I have missconfigured something? Or is it a bug?
Here is the code from configuration.yaml:
modbus:
### Wechselrichter 1 Kostal Piko CI 50
- type: tcp
host: 192.168.xx.xx
port: 1502
name: WR1_PikoCI50_Modbus
sensors:
- name: WR1_DC_Total_power
slave: 71
#scale: 0.1
precision: 2
address: 100
scan_interval: 2 # Defines the update interval of the sensor in seconds.
#count: 2 # Anzahl zu lesenden Register
data_type: float32
#swap: word
device_class: power
state_class: measurement
unit_of_measurement: W