2 Commits
Author SHA1 Message Date
Luca Hammer b232c436ac Don't send units if they don't exist
When a unit_of_measurement exists, Home Assistant assumes it's an integer and tries to graph it. Even if no unit_of_measurement are given. By not adding them, Home Assistant takes the value as discrete and visualizes it accordingly.

It's only relevant for few registers. I am using it for "work_state_1".  What the broken graph in Home Assistant looks like at the moment: https://imgur.com/JB67fax. After removing units_of_measurement: https://imgur.com/6rYNAAA and combined with other data: https://imgur.com/1TzAqFd. work_state_1 shows not only "Run" and "Standby", but "Starting" and "Degraded Run" as well which is important for monitoring.
2022-04-19 13:53:31 +02:00
Luca Hammer 0532fb38d9 fix typo
"sungow" -> "sungrow" as mentioned in #41
2022-04-01 12:14:56 +02:00