forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[opensprinkler] Refactoring of code (openhab#5862)
* Refactoring to match openHAB thing/item model The opensprinkler binding kind of misused the thing -> channel -> item architecture of openHAB from my point of view. Instead of having one thing per openSprinkler device and each station as a (pre-defined) channel on this thing, this commit changes it to the following: The http and pi interface are bridges now, as these communicate with the stations, otherwise they support the same things for each station. This makes them a necessary communication brdige, let's treat them like that. Each channel (in the old model) is it's own thing, which can be attached to a registered bridge type. The thing has the necessary data channels (currently just the state, open or closed) which can be connected to things. This refactoring enables us to easily add more channels, e.g. the remaining time the station is open, without the hessle of having to copy a channel 48 times and so on. Signed-off-by: Florian <[email protected]> * Update README Signed-off-by: Florian <[email protected]> * Implemented review comments Signed-off-by: Florian <[email protected]> Signed-off-by: J-N-K <[email protected]> * Implement review comments Signed-off-by: Florian <[email protected]> * Implement review comments Signed-off-by: Florian <[email protected]> * Do not log sensitive data Signed-off-by: Florian <[email protected]> * Bring bridge back online after failed API call Signed-off-by: Florian <[email protected]> * Better naming for manual mode enabling Signed-off-by: Florian <[email protected]> Signed-off-by: Tim Roberts <[email protected]>
- Loading branch information
Showing
23 changed files
with
693 additions
and
1,157 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.