PVS model
PVS6
PVS firmware version
recent
Does the README's curl test return JSON?
Yes, returns JSON
What happened
When a PVS livedata field (e.g. ess_p) comes back as "nan" / a NaN
float, float(...) succeeds without raising, so it bypasses the
except (ValueError, TypeError) guards in _inject_battery. json.dumps
then emits a bare NaN token, which is valid for Python's json module but
invalid JSON — the browser's JSON.parse rejects it and the whole
/devices fetch fails.
Container logs
Where you're running it
No response
Anything else?
No response
PVS model
PVS6
PVS firmware version
recent
Does the README's curl test return JSON?
Yes, returns JSON
What happened
When a PVS livedata field (e.g.
ess_p) comes back as"nan"/ a NaNfloat,
float(...)succeeds without raising, so it bypasses theexcept (ValueError, TypeError)guards in_inject_battery.json.dumpsthen emits a bare
NaNtoken, which is valid for Python's json module butinvalid JSON — the browser's
JSON.parserejects it and the whole/devicesfetch fails.Container logs
Where you're running it
No response
Anything else?
No response