Report GPU power usage in Watts as well, not just the TDP percentage
Description
Hi!
I am using Home Assistant, so just recently upgraded to 4.x.x from 3.11.2. Since the upgrade I've got a few new entities which is great but seems like I've also lost some, for example my RTX3090 only reports its power usage with the TDP %. I could try to create a sensor by dividng the power limit of the card, but it uses different profiles in various scenarios, so the TDP limit is not a fix value. Would be nice if the app would report the actual value as well, not just the TDP %.
For reference, I've completely removed the old versions from my Windows PC and HA itself before upgrading to the new versions.
What Platform / OS are you running?
Windows
What version are you running?
4.1.9
Anything in the logs or a references that might be useful?
From GPU tab:
{
"0": {
"id": "/gpu-nvidia/0",
"name": "NVIDIA GeForce RTX 3090",
"core_clock": 210,
"core_load": null,
"fan_speed": 0,
"memory_clock": 405,
"memory_load": 7.364384,
"memory_free": 22766,
"memory_used": 1809,
"memory_total": 24576,
"power_usage": 10.955,
"temperature": 31
}
}
Additional information
Tried to check with the included systembridgecli but when querying data with for example 'systembridgecli.exe data cpu' I get the following error:
C:\Users\Robi\AppData\Local\System Bridge\_up_\dist\systembridgecli>systembridgecli.exe data cpu
cli.py:47: DeprecationWarning: The object should be created within an async function
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in data:149 │
│ │
│ in run_until_complete:685 │
│ │
│ in get_data_from_websocket:101 │
│ │
│ in connect:85 │
│ │
│ in _ws_connect:832 │
│ │
│ in _request:504 │
│ │
│ in __enter__:715 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Timeout context manager should be used inside a task
[33444] Failed to execute script 'cli' due to unhandled exception!
2024-04-16 12:30:10 ERROR (MainThread) [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001B55C573F20>