Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No power consumption reads for switchBox v3 #147

Closed
aslabicki opened this issue Oct 17, 2023 · 5 comments
Closed

No power consumption reads for switchBox v3 #147

aslabicki opened this issue Oct 17, 2023 · 5 comments

Comments

@aslabicki
Copy link

aslabicki commented Oct 17, 2023

  • BleBox Python UniAPI version: 2.2.0
  • Python version: 3.11.5
  • Operating System: macOS

Description

I don't see power consumption readings in the Home Assistant from my SwitchBox v3, which is returning all data under the API endpoint /api/relay/extended/state

Device details:
Device type: switchBox_v3
Hardware version: s_8.0
Firmware version: 0.1022
API type: switchBox
API level: 20200831

API Response:

{
  "relays": [
    {
      "relay": 0,
      "state": 0,
      "stateAfterRestart": 2,
      "defaultForTime": 0,
      "name": "Output no 1"
    }
  ],
  "powerMeasuring": {
    "enabled": 1,
    "powerConsumption": [
      {
        "periodS": 3600,
        "value": 0,
        "state": 4
      }
    ]
  },
  "sensors": [
    {
      "type": "activePower",
      "value": 0,
      "trend": 0,
      "state": 4
    }
  ]
}
@shibby20
Copy link

@aslabicki
Copy link
Author

aslabicki commented Oct 19, 2023

Oh, I saw this and thought it was included in 2023.10.3, but no... Good to know :)

@swistakm
Copy link
Contributor

Should be fixed in v2.2.1 (see #152) and is waiting to be incorporated in home-assistant/core as a dependency update. Will keep you posted.

@aslabicki
Copy link
Author

Fixed

@swistakm
Copy link
Contributor

swistakm commented Mar 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants