EnAccess / EnAccess/micropowermanager

[Feature Request]: Sync available SHS devices with Manufacturer API

Open
#1,470 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted SHS
Dominant language
PHP
Stars
27
Forks
19
Avg merge
1d 18h
Merged PRs (30d)
27

Description

### Preflight Checklist

- [x] I have read the [Contributing Guidelines](https://github.com/EnAccess/micropowermanager/blob/main/CONTRIBUTING.md) for this project, if it exists.
- [x] I agree to follow the [Code of Conduct](https://github.com/EnAccess/micropowermanager/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [x] I have searched the [issue tracker](https://github.com/EnAccess/micropowermanager/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Currently, users have to manually register their SHS devices in MPM which works for few devices but can be tedious and error prone for a larger number of devices.

### Proposed Solution

Please add an abstraction in MPM that allows users to sync their available devices with MPM.

In the first step this doesn't need to be automated. A button on the corresponding plugin "Sync Devices" should suffice.

When clicked, MPM calls the corresponding "List Devices" API and adds all devices that the API can manage to MPM.

### Alternatives Considered

N/A

### Additional Information

For this to work the manufacturer has to implement a "List All Devices" endpoint.

- SparkSHS: ✅
- SunKingSHS: ❌ (No list devices endpoint available. Currently requested)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.