mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #173] [Feature]: Smart Plugs MQTT Support #113
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tobiaswaelde on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/173
Originally assigned to: @maziggy on GitHub.
Problem or Use Case
I have a shelly (with Zigbee2MQTT) to monitor the printers energy consumption and to turn it on/off.
Proposed Solution
It would be nice if I could set the MQTT topic to which the energy is published. And maybe set a multiplication factor (the Shellies publish power in W and energy in Wh)
The value published to the main MQTT topic is a JSON Object. Single values are published to subtopics.
In my special case, l1 is the printer and l2 is a LED strip for my chamber light.
As lot of devices publish JSON instead of single values, we would need two fields
zigbee/shelly-working-roompower_l1orkey.subkeyAlternatives Considered
No response
Feature Category
Smart Plugs
Priority
Nice to have
Mockups or Examples
No response
Contribution
Checklist
@maziggy commented on GitHub (Jan 29, 2026):
Not sure if I understand it. I assume the Shelly is connected to Home Assistant or such, but not to Bambuddy?!
@tobiaswaelde commented on GitHub (Jan 29, 2026):
The shelly is connected to Zigbee and I use Zigbee2MQTT to get the data to my MQTT.
I am not using HomeAssistant :) My whole networks is built on MQTT and I have a custom Software (I am currently in v8, so the screenshots are a bit outdated)
@maziggy commented on GitHub (Jan 29, 2026):
And what should Bambuddy do with it? Still don't get it!
@tobiaswaelde commented on GitHub (Jan 29, 2026):
It should use it as input source for tracking energy usage
@maziggy commented on GitHub (Jan 29, 2026):
Got it! So basically you want to subscribe to MQTT and use the data for Bambuddy stats.
@maziggy commented on GitHub (Jan 30, 2026):
Please use branch feature/173 and let me know if it works for you.
Docs -> https://wiki.bambuddy.cool/features/smart-plugs/?h=mqtt#option-3-mqtt-monitor-only
@tobiaswaelde commented on GitHub (Jan 30, 2026):
WOW, that was fast 🚀
Thank you so much. It works now in my case.
But it would be nice if there was also an option to extract the values from different topics.
I also think using one multiplier for power and one for energy should adapt better for all users.
What do you think about adding three sections to the Smart Plug settings:
"ON"for some devices, sometimes could betruefor other devices)@maziggy commented on GitHub (Jan 30, 2026):
Plese use branch feature/173 and do a git pull. Can you please test and give feedback? I don't have the required entities in my HS setup. Thanks.
@tobiaswaelde commented on GitHub (Jan 30, 2026):
Looks already really nice 👍
But the JSON path seems not to be optional.
Power works, Energy does not work
@maziggy commented on GitHub (Jan 30, 2026):
Updated branch feature/173. Please let me know.
It may be neccessary to recompile the frontend after git pull. cd frontend && npm run build