[PR #186] [MERGED] Add script automation and visibility options (#176) #945

Closed
opened 2026-05-06 12:34:07 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/186
Author: @maziggy
Created: 1/30/2026
Status: Merged
Merged: 1/31/2026
Merged by: @maziggy

Base: 0.1.6-finalHead: feature/176


📝 Commits (2)

  • 4c2cef6 Add script automation and visibility options (#176)
  • 26728f2 Merge branch '0.1.6-final' into feature/176

📊 Changes

17 files changed (+952 additions, -308 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 backend/app/api/routes/settings.py (+3 -0)
📝 backend/app/api/routes/smart_plugs.py (+115 -14)
📝 backend/app/core/database.py (+73 -0)
📝 backend/app/models/smart_plug.py (+4 -5)
📝 backend/app/schemas/smart_plug.py (+6 -4)
📝 backend/app/services/homeassistant.py (+1 -1)
📝 backend/app/services/smart_plug_manager.py (+5 -0)
📝 backend/tests/integration/test_smart_plugs_api.py (+197 -0)
📝 frontend/src/api/client.ts (+9 -5)
📝 frontend/src/components/AddSmartPlugModal.tsx (+194 -98)
📝 frontend/src/components/SmartPlugCard.tsx (+123 -40)
📝 frontend/src/components/SwitchbarPopover.tsx (+69 -32)
📝 frontend/src/pages/PrintersPage.tsx (+37 -0)
📝 frontend/src/pages/SettingsPage.tsx (+1 -1)
📝 static/assets/index-BDqcLQLO.js (+107 -107)
📝 static/index.html (+1 -1)

📄 Description

Enhance Home Assistant script support with automation triggers and printer card visibility control.

  • Script automation: Run scripts automatically when main plug turns on/off
  • Show/hide scripts on printer cards (configurable per script)
  • Scripts appear in dedicated row on printer cards with quick-run buttons
  • Toast notification when triggering scripts from settings/sidebar

Closes #176


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maziggy/bambuddy/pull/186 **Author:** [@maziggy](https://github.com/maziggy) **Created:** 1/30/2026 **Status:** ✅ Merged **Merged:** 1/31/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.1.6-final` ← **Head:** `feature/176` --- ### 📝 Commits (2) - [`4c2cef6`](https://github.com/maziggy/bambuddy/commit/4c2cef64b3376fc12d8b66a2dbee764ebfa92763) Add script automation and visibility options (#176) - [`26728f2`](https://github.com/maziggy/bambuddy/commit/26728f268f15ab3ce3741a481bd3b45677fbe629) Merge branch '0.1.6-final' into feature/176 ### 📊 Changes **17 files changed** (+952 additions, -308 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `backend/app/api/routes/settings.py` (+3 -0) 📝 `backend/app/api/routes/smart_plugs.py` (+115 -14) 📝 `backend/app/core/database.py` (+73 -0) 📝 `backend/app/models/smart_plug.py` (+4 -5) 📝 `backend/app/schemas/smart_plug.py` (+6 -4) 📝 `backend/app/services/homeassistant.py` (+1 -1) 📝 `backend/app/services/smart_plug_manager.py` (+5 -0) 📝 `backend/tests/integration/test_smart_plugs_api.py` (+197 -0) 📝 `frontend/src/api/client.ts` (+9 -5) 📝 `frontend/src/components/AddSmartPlugModal.tsx` (+194 -98) 📝 `frontend/src/components/SmartPlugCard.tsx` (+123 -40) 📝 `frontend/src/components/SwitchbarPopover.tsx` (+69 -32) 📝 `frontend/src/pages/PrintersPage.tsx` (+37 -0) 📝 `frontend/src/pages/SettingsPage.tsx` (+1 -1) 📝 `static/assets/index-BDqcLQLO.js` (+107 -107) 📝 `static/index.html` (+1 -1) </details> ### 📄 Description Enhance Home Assistant script support with automation triggers and printer card visibility control. - Script automation: Run scripts automatically when main plug turns on/off - Show/hide scripts on printer cards (configurable per script) - Scripts appear in dedicated row on printer cards with quick-run buttons - Toast notification when triggering scripts from settings/sidebar Closes #176 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:34:07 +02:00
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#945
No description provided.