Skip to content

fix: power consumption classes#12

Open
danielvigaru wants to merge 2 commits into
DerMiika:mainfrom
danielvigaru:power-monitoring-improvements
Open

fix: power consumption classes#12
danielvigaru wants to merge 2 commits into
DerMiika:mainfrom
danielvigaru:power-monitoring-improvements

Conversation

@danielvigaru

@danielvigaru danielvigaru commented Jun 29, 2026

Copy link
Copy Markdown

These changes allow us to use the power consumption in the Energy tab's “Individual electrical devices”:

So we can track the miner individually on the power graph:


Related: https://www.home-assistant.io/docs/energy/faq/#troubleshooting-missing-entities

@danielvigaru danielvigaru marked this pull request as draft June 29, 2026 17:53
@danielvigaru danielvigaru marked this pull request as ready for review June 29, 2026 18:42
@fcarlier

Copy link
Copy Markdown

Hello,
Can you screenshoot your device config with entity.
Because, in my case, i have only 'Device power consumption' and no 'Device energy consumption'.
I can't save the device in energy tab.
THX

@danielvigaru

Copy link
Copy Markdown
Author

For the “device energy consumption” I created an “integral sensor” helper, like this:

BD87BB39-2343-4FE3-8BDB-3EF609F082EB 97AFC89F-EAAF-4459-98D4-E8C3AD573711

This helper, together with the code changes from the PR, will allow you to add the miner as an individual item to the energy consumption tracker. Of course, this power summation should be present on the integration itself, not as a separated helper, but I didn't manage to get it working yet, so this is my current setup at the time.


Using only the helper, you can get the miner to show up in the individual total usage graph, but not see it in the current energy flow

88E3D694-EB7F-498A-A5A0-C42736DEA411

@fcarlier

Copy link
Copy Markdown

:)
In my repo, i'm use fork JCimbal repo (That rewrite source code) + feature.
Your PR is already include. THX
I had forgotten to create an “integral sensor”.
Actually, I'm going to see how to add the code for the integral directly to the entity.
It'll be easier for everyone.
Sincerely THX ;)

@fcarlier

fcarlier commented Jun 30, 2026

Copy link
Copy Markdown

Hi,
My little contribution :

  • Add in configuration.yaml : sensor: !include sensors.yaml

  • Add in sensors.yaml :
    `- platform: integration

    source: sensor.xxx_bitaxe602_power_consumption
    name: bitaxe602_power_consumption_summation
    round: 2
    unit_prefix: k
    unit_time: h
    method: left

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

Successfully merging this pull request may close these issues.

2 participants