You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
For the “device energy consumption” I created an “integral sensor” helper, like this:
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
:)
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 ;)
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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