jacauc / SunsynkEsphome

Sunsynk Modbus ESPHome code
https://powerforum.co.za/topic/8646-my-sunsynk-8kw-data-collection-setup/
20 stars 2 forks source link

Overall State #4

Closed chris2172 closed 1 year ago

chris2172 commented 1 year ago

Found this https://github.com/slipx06/Sunsynk-Home-Assistant-Power-Flow-Card/blob/main/animated_card_configuration_simple.txt

May help with defining the state

  return hass.states["sensor.overall_state"].state == "0" ? "blue" :
  "transparent"
selector: '#standby'
type: fill
jacauc commented 1 year ago

Hi @chris2172 - I'm a little lost here. Can you provide some more information about where this code needs to be?

Feel free to submit a pull request if you want to modify code

chris2172 commented 1 year ago

I saw it on another modbus HA plugin In the code below you say # It is not clear what each of these states mean. TODO Fill in the string values once known 0: Standby 1: Selftest 2: Normal 3: Alarm 4: Fault

jacauc commented 1 year ago

Ah gotcha! I follow now... thank you!