StephanJoubert / home_assistant_solarman

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

Inverter Alert Message LOOKUP #242

Closed coserotondo closed 1 year ago

coserotondo commented 1 year ago

I'm using the following lookup values for Inverter Alert but sometimes the outcome is literally the 'LOOKUP ' string instead of one of the value for the relative key. Does it mean that the received data is not in the keys provided?

- name: "Inverter Alert Message"
  class: ""
  state_class: ""
  uom: ""
  scale: 1
  rule: 1
  registers: [0x022B]
  isstr: true
  lookup: 
  -  key: 0
     value: "No error"
  -  key: 1
     value: "ID81 Internal temperature is too high"
  -  key: 2
     value: "ID82 AC frequency is too high"
  -  key: 4
     value: "ID83 Long distance load shedding"
  -  key: 8
     value: "ID84 Switch OFF ME3000SP remotely"
  -  key: 16
     value: "Reserved"
  -  key: 32
     value: "Reserved"
  -  key: 64
     value: "ID87"
  -  key: 128
     value: "ID85 Battery voltage below SOC"
  -  key: 256
     value: "ID86 Battery voltage is too low and cause ME3000SP to switch OFF"
  -  key: 512
     value: "Reserved"
  -  key: 1024
     value: "Reserved"
  -  key: 2048
     value: "Reserved"
  -  key: 4096
     value: "Reserved"
  -  key: 8192
     value: "Reserved"
  -  key: 16384
     value: "Reserved"
  -  key: 32768
     value: "Reserved"
  icon: 'mdi:wrench'
qfinucane commented 1 year ago

Hi, Yes, its receiving a value that the LOOKUP cannot interpret / convert. I experienced the same with different registers. See closed issue #255. I removed the lookup portion of the code and recorded the values. Then added the missing values to the Lookup. You will just need to research what the value means.

coserotondo commented 1 year ago

Thanks, trying this approach to decode the message.

Il giorno sab 29 apr 2023 alle ore 21:25 qfinucane @.***> ha scritto:

Hi, Yes, its receiving a value that the LOOKUP cannot interpret / convert. I experienced the same with different registers. See closed issue #255 https://github.com/StephanJoubert/home_assistant_solarman/issues/255. I removed the lookup portion of the code and recorded the values. Then added the missing values to the Lookup. You will just need to research what the value means.

— Reply to this email directly, view it on GitHub https://github.com/StephanJoubert/home_assistant_solarman/issues/242#issuecomment-1528855732, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5CAQBEXETSVXBAG4GUNBF3XDVTLZANCNFSM6AAAAAAVU4TXEI . You are receiving this because you authored the thread.Message ID: @.***>

coserotondo commented 1 year ago

Decoded the messages, no more LOOKUP.