feat: add API endpoint for bridge restart functionality #28

Manually merged
viewit merged 1 commits from gangoke/KX-Bridge-Release:api-restart into master 2026-05-21 14:38:29 +02:00
Contributor

Restart Server over api. It will allow a Restart Server Button in my Home Assistant Intergation. Tested and working

Also please add

config/config.ini
data/

to .gitignore, so people don't accidently commit personal info. thanks

Restart Server over api. It will allow a Restart Server Button in my Home Assistant Intergation. Tested and working Also please add ``` config/config.ini data/ ``` to .gitignore, so people don't accidently commit personal info. thanks
gangoke added 1 commit 2026-05-21 09:41:13 +02:00
viewit added the
enhancement
label 2026-05-21 14:26:06 +02:00
Owner

Thanks @gangoke — clean little addition. 👍

Pulled into our dev branch and tested in Docker: POST /api/restart returns {"status": "restarting"} (200) and the bridge restarts cleanly via the existing supervisor path. Perfect for a restart button in your Home Assistant integration.

Also added data/ to .gitignore as you suggested (config/config.ini was already ignored) — good catch on protecting personal info.

Will ship in the next release (with the theme system from #27). Closing this since it's merged into dev; reopen if anything's off. 🙏

Thanks @gangoke — clean little addition. 👍 Pulled into our dev branch and tested in Docker: `POST /api/restart` returns `{"status": "restarting"}` (200) and the bridge restarts cleanly via the existing supervisor path. Perfect for a restart button in your Home Assistant integration. Also added `data/` to `.gitignore` as you suggested (`config/config.ini` was already ignored) — good catch on protecting personal info. Will ship in the next release (with the theme system from #27). Closing this since it's merged into dev; reopen if anything's off. 🙏
viewit closed this pull request 2026-05-21 14:31:39 +02:00
viewit reopened this pull request 2026-05-21 14:38:28 +02:00
viewit manually merged commit 312b4083d2 into master 2026-05-21 14:38:29 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: viewit/KX-Bridge-Release#28
No description provided.