plugwise / plugwise-beta

Custom-component / development version of the Plugwise Home Assistant platform
MIT License
24 stars 8 forks source link

[BUG]: For a gateway without sensors etc. the firmware is shown as a single-digit-number. #629

Closed bouwew closed 4 months ago

bouwew commented 4 months ago

Describe the bug.

As described in the title.

What version of Plugwise Beta are you using?

v0.49.0

What was the last working version of Plugwise Beta (or Core if not using beta before)?

unknown

What version of Home Assistant Core are you using?

Core-2024.4.4

What type of installation are you running?

Home Assistant Supervised

How did you install plugwise-beta?

HACS

What kind of Plugwise device is having issues?

Smile: P1

What firmware version is your Plugwise product at?

2.1.20

Logging

No response

Diagnostics information

"data": { "gateway": { "gateway_id": "aaaa0000aaaa0000aaaa0000aaaa00aa", "item_count": 26, "smile_name": "Smile P1" }, "devices": { "aaaa0000aaaa0000aaaa0000aaaa00aa": { "dev_class": "gateway", "firmware": "2.1.20", "location": "0f2cf5b3d9a745dd9e95662c6ff03839", "mac_address": "REDACTED", "model": "Gateway", "name": "REDACTED", "vendor": "Plugwise" }, "0f2cf5b3d9a745dd9e95662c6ff03839": { "dev_class": "smartmeter", "location": "0f2cf5b3d9a745dd9e95662c6ff03839", "model": "KFM5KAIFA-METER", "name": "REDACTED", "vendor": "Kaifa", "sensors": { "electricity_consumed_peak_interval": 0, "electricity_consumed_off_peak_interval": 263, "net_electricity_cumulative": 14624.099, "electricity_consumed_peak_cumulative": 9658.927, "electricity_consumed_off_peak_cumulative": 9570.531, "net_electricity_point": -3003, "electricity_consumed_point": 0, "electricity_produced_peak_interval": 0, "electricity_produced_off_peak_interval": 1047, "electricity_produced_peak_cumulative": 3250.716, "electricity_produced_off_peak_cumulative": 1354.643, "electricity_produced_point": 3003, "gas_consumed_interval": 0.0, "gas_consumed_cumulative": 6593.604 } } } }

Additional information

No response

bouwew commented 4 months ago

Solved via #628