1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[GH-ISSUE #119] [Feature]: Sync power usage from smart plugs in Home Assistant #61

Closed
opened 2026-05-07 00:05:48 +02:00 by BreizhHardware · 15 comments

Originally created by @joaorgoncalves on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/119

Originally assigned to: @maziggy on GitHub.

Problem or Use Case

I connected my smart plug (Tapo P110M), and I'm able to turn on and off, but there is no energy data coming through to Bambuddy.

Proposed Solution

Use the available sensors/diagnostics for that:

Image

For example, in my case, the sensor for current consumption is sensor.a1_mini_plug_current_consumption

If the background logic is working on Bambuddy, that value should allow all the others to be calculated.

You might also want to add sensor.a1_mini_plug_today_s_consumption if you don't want to calculate it 🤣

Alternatives Considered

No response

Feature Category

Smart Plugs

Priority

Would improve my workflow

Mockups or Examples

No response

Contribution

  • I would be willing to help implement this feature

Checklist

  • I have searched existing issues to ensure this feature hasn't already been requested
Originally created by @joaorgoncalves on GitHub (Jan 21, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/119 Originally assigned to: @maziggy on GitHub. ### Problem or Use Case I connected my smart plug (Tapo P110M), and I'm able to turn on and off, but there is no energy data coming through to Bambuddy. ### Proposed Solution Use the available sensors/diagnostics for that: <img width="350" height="1066" alt="Image" src="https://github.com/user-attachments/assets/fa97881d-ef11-40f5-84f4-e1af915200dd" /> For example, in my case, the sensor for current consumption is `sensor.a1_mini_plug_current_consumption` If the background logic is working on Bambuddy, that value should allow all the others to be calculated. You might also want to add `sensor.a1_mini_plug_today_s_consumption` if you don't want to calculate it 🤣 ### Alternatives Considered _No response_ ### Feature Category Smart Plugs ### Priority Would improve my workflow ### Mockups or Examples _No response_ ### Contribution - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
BreizhHardware 2026-05-07 00:05:48 +02:00
Author
Owner

@maziggy commented on GitHub (Jan 21, 2026):

I think we should make the consumption entity selectable. Will look into this tomorrow.

<!-- gh-comment-id:3779102302 --> @maziggy commented on GitHub (Jan 21, 2026): I think we should make the consumption entity selectable. Will look into this tomorrow.
Author
Owner

@nvdmedianl commented on GitHub (Jan 21, 2026):

i have the same problem, I use Zigbee2mqtt and a IKEA Plug with PM. Is not working By me

<!-- gh-comment-id:3781149350 --> @nvdmedianl commented on GitHub (Jan 21, 2026): i have the same problem, I use Zigbee2mqtt and a IKEA Plug with PM. Is not working By me
Author
Owner

@maziggy commented on GitHub (Jan 22, 2026):

Please use branch 0.1.6b11 and let me know if it works for you.

Image
<!-- gh-comment-id:3783069723 --> @maziggy commented on GitHub (Jan 22, 2026): Please use branch 0.1.6b11 and let me know if it works for you. <img width="472" height="1078" alt="Image" src="https://github.com/user-attachments/assets/0893307a-2e91-4f49-bee9-f286bfab3500" />
Author
Owner

@joaorgoncalves commented on GitHub (Jan 22, 2026):

It is working. The Total Energy I didn't link to any entity because there is no entity with that value, only a monthly option on HA.
Will it automatically keep track of the daily usage to fill in yesterday's and total energy fields?

Image
<!-- gh-comment-id:3785807622 --> @joaorgoncalves commented on GitHub (Jan 22, 2026): It is working. The Total Energy I didn't link to any entity because there is no entity with that value, only a monthly option on HA. Will it automatically keep track of the daily usage to fill in yesterday's and total energy fields? <img width="915" height="224" alt="Image" src="https://github.com/user-attachments/assets/fa66796f-1386-45a1-9e33-4a62cdb1ae90" />
Author
Owner

@mhertel commented on GitHub (Jan 23, 2026):

Not showing up for me on 0.1.6b11

Image Image Image Image
<!-- gh-comment-id:3790909465 --> @mhertel commented on GitHub (Jan 23, 2026): Not showing up for me on 0.1.6b11 <img width="968" height="757" alt="Image" src="https://github.com/user-attachments/assets/4a70fa25-ecec-4f4e-ae5d-9887a2e235c9" /> <img width="467" height="769" alt="Image" src="https://github.com/user-attachments/assets/abcc3bc7-60fd-4ab4-9827-8cee92115b26" /> <img width="495" height="705" alt="Image" src="https://github.com/user-attachments/assets/77964ea3-cef8-41d9-82fe-bd64a7464379" /> <img width="465" height="334" alt="Image" src="https://github.com/user-attachments/assets/71cf8fdf-254f-4674-8538-88783521ce0a" />
Author
Owner

@maziggy commented on GitHub (Jan 23, 2026):

0.1.6b11 Release or clone? If clone, do a git pull. Looks like old code!

<!-- gh-comment-id:3790944330 --> @maziggy commented on GitHub (Jan 23, 2026): 0.1.6b11 Release or clone? If clone, do a git pull. Looks like old code!
Author
Owner

@mhertel commented on GitHub (Jan 23, 2026):

Release.. (Docker) I deleted the plug and added it as well, no change

Image
<!-- gh-comment-id:3790962286 --> @mhertel commented on GitHub (Jan 23, 2026): Release.. (Docker) I deleted the plug and added it as well, no change <img width="241" height="148" alt="Image" src="https://github.com/user-attachments/assets/568488b5-9b0b-4133-ac3b-b312ea31f3ac" />
Author
Owner

@maziggy commented on GitHub (Jan 23, 2026):

The energy sensors, what entity type are they? If possible, show me the entities related to the selected switch.

<!-- gh-comment-id:3790982242 --> @maziggy commented on GitHub (Jan 23, 2026): The energy sensors, what entity type are they? If possible, show me the entities related to the selected switch.
Author
Owner

@mhertel commented on GitHub (Jan 23, 2026):

Image Image Image
<!-- gh-comment-id:3791023754 --> @mhertel commented on GitHub (Jan 23, 2026): <img width="805" height="596" alt="Image" src="https://github.com/user-attachments/assets/2ea03161-0d6b-463f-8fa0-b79b822fd7f9" /> <img width="553" height="817" alt="Image" src="https://github.com/user-attachments/assets/7fed7d7a-274f-4c80-a646-781a0843c2b2" /> <img width="560" height="814" alt="Image" src="https://github.com/user-attachments/assets/7b566004-ad36-4e61-a269-cabd4977db3c" />
Author
Owner

@maziggy commented on GitHub (Jan 23, 2026):

Mhhh....strange. Did you check the logs for errors? Best would be if you send me a support package.

<!-- gh-comment-id:3791057729 --> @maziggy commented on GitHub (Jan 23, 2026): Mhhh....strange. Did you check the logs for errors? Best would be if you send me a support package.
Author
Owner

@mhertel commented on GitHub (Jan 23, 2026):

as requested..

bambuddy-support-20260123-082555.zip

<!-- gh-comment-id:3791117274 --> @mhertel commented on GitHub (Jan 23, 2026): as requested.. [bambuddy-support-20260123-082555.zip](https://github.com/user-attachments/files/24825049/bambuddy-support-20260123-082555.zip)
Author
Owner

@maziggy commented on GitHub (Jan 24, 2026):

Should be fixed in branch 0.1.6-final. Please let me know if it works for you now.

<!-- gh-comment-id:3793980584 --> @maziggy commented on GitHub (Jan 24, 2026): Should be fixed in branch 0.1.6-final. Please let me know if it works for you now.
Author
Owner

@mhertel commented on GitHub (Jan 24, 2026):

i'm running the docker under unraid with ghcr.io/maziggy/bambuddy:latest as the repository.
i tried ghcr.io/maziggy/bambuddy:0.1.6-final but that didnt work

<!-- gh-comment-id:3794074076 --> @mhertel commented on GitHub (Jan 24, 2026): i'm running the docker under unraid with ghcr.io/maziggy/bambuddy:latest as the repository. i tried ghcr.io/maziggy/bambuddy:0.1.6-final but that didnt work
Author
Owner

@maziggy commented on GitHub (Jan 24, 2026):

The version is not yet released. You need to build the new container locally. Use docker compose build --no-cache

<!-- gh-comment-id:3794094428 --> @maziggy commented on GitHub (Jan 24, 2026): The version is not yet released. You need to build the new container locally. Use _docker compose build --no-cache_
Author
Owner

@mhertel commented on GitHub (Jan 24, 2026):

I'll wait for the release then, unraid handles docker installs a bit different and i don't want to screw around with my working setup..

<!-- gh-comment-id:3794144863 --> @mhertel commented on GitHub (Jan 24, 2026): I'll wait for the release then, unraid handles docker installs a bit different and i don't want to screw around with my working setup..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#61
No description provided.