Spanni26 / pyHPSU

Python Script to read and send commands to a Rotex HPSU
26 stars 15 forks source link

command for "error" seems to be wrong, no values pushed #62

Closed N3rdix closed 1 year ago

N3rdix commented 1 year ago

I tried to get the values for "error", which is defined as value but without any value mapping. Today morning I had an error displayed at the unit itself which was not pushed by pyHPSU (the MQTT output switched from "0" to "")

"error" : { 
    "name" : "error", 
    "command" : "31 00 FA 13 88 00 00", 
    "id" : "190", 
    "divisor" : "1", 
    "writable" : "false", 
    "unit" : "",
    "type" : "value"

If I get the code right this leads to empty responses here

Does anyone know how the values for "error" look like so at least a definition of value_code would be possible? I saw that FHEM uses longint as type, not sure if that works.

Even better would be a code correction to just bypass the response in case no value_code is defined.

Any feedback is appreciated.

N3rdix commented 1 year ago

For the ones interested, I was able to retrieve the error values after changing the command from type "value" to "longint".

This will send correct values, e.g. "9031".