Skip to content

Commit

Permalink
fix: turns out switchbox v20200229 also supports power measuring sens…
Browse files Browse the repository at this point in the history
…or data
  • Loading branch information
swistakm committed Jan 22, 2024
1 parent 4848ddb commit 2b1e0d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions blebox_uniapi/box_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,16 @@ def get_latest_api_level(product_type: str) -> Union[dict, int]:
1,
],
],
"sensors": [
[
"switchBox.energy",
{
"energy": "powerMeasuring/powerConsumption/[0]/value",
"periodS": "powerMeasuring/powerConsumption/[0]/periodS",
"measurment_enabled": "powerMeasuring/enabled",
},
]
],
},
20200831: {
"extended_state_path": "/state/extended",
Expand Down

0 comments on commit 2b1e0d5

Please sign in to comment.