henricm / ha-ferroamp

Ferroamp MQTT Home Assistant sensors for EnergyHub, SSO, ESM and ESO
MIT License
38 stars 14 forks source link

Possible bug on FaultCodeSensor #401

Open robinostlund opened 1 year ago

robinostlund commented 1 year ago

Hi, Noticed today that my fault code sensor on one of my ESO has state = 8, but in attributes it shows the fault code 4. 8 is equal to "Not a fault, just an indication that Battery Manufacturer is not Ferroamp" right?

Screenshot 2023-09-07 at 09 50 10
argoyle commented 1 year ago

The attributes points to the actual bit which is set for each fault (and the 4'th bit has 8 as value). Are the fault codes in the wrong order in the list then?

robinostlund commented 1 year ago

Maby it is correct, i maby got confused by the Attribute 4 when it was 8 as state. I will keep on monitoring and verify the fault code 😄