hultenvp / solis-sensor

HomeAssistant integration for the SolisCloud PV Monitoring portal via SolisCloud API
Apache License 2.0
191 stars 41 forks source link

Power Output never goes down to zero. #268

Closed supergregg closed 1 year ago

supergregg commented 1 year ago

Describe the bug I have a Solis S5 inverter with a Wifi dongle for data logging. During the night/evening, the inverter switches to standby when there is not enough sun to crate any power. This sets the data logger to standby too, I can see it disappear from the network and its seen as "Offline" in the Solis App/Site. The problem here is that it seems that the API keeps the last values recorded over night until new data comes in, making it look like the inverter is on during the night in HomeAssistan. As you can see in below screenshot, there is a 20W power output during the night, this is simply not true as the inverters display is not even on. I have noticed that the "sensor.solis_state" changes from "1" during operation to "2" during stand-by/offline (as mentioned in the cloud documentation). My thought is to use this value to set all applicable sensors to "null" or what ever Home Assistant prefers as a non-value or just "0", until the inverter/datalogger comes Online again. This might not suet everyone, so maybe some type of toggle?

Config Default Config, noting set, just logged in to Cloud

Versions HA Version an deployment: 2023.3.4 HACS version: 1.31.0 Integration version: 3.3.2 firefox_4WC5SlgLrq firefox_We5mdfu9js