StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
512 stars 191 forks source link

Refactor Sensor entities #322

Open ChristophCaina opened 1 year ago

ChristophCaina commented 1 year ago

There are some Sensors, that should probably be other types:

  1. Island Protection Enable Current Type: SENSOR Expected Type: BINARY_SENSOR (enabled / disabled)

  2. ON-OFF Enable Current Type: SENSOR Expected Type: BINARY_SENSOR (on / off) (maybe even Control?)

  3. Overfrequency & Load-shedding Enable Current Type: SENSOR Expected Type: BINARY_SENSOR (enabled / disabled)

  4. Restore Factory Settings Current Type: SENSOR Expected Type: BINARY_SENSOR (maybe even Control?)

  5. Soft Start Enable Current Type: SENSOR Expected Type: BINARY_SENSOR (maybe even Control?)

  6. Status_connection Current Type: SENSOR Expected Type: BINARY_SENSOR

This would enable HA-Color Schemas for Binary Sensors as well as State-Dependent Icons.