Commit Graph

26 Commits

Author SHA1 Message Date
Jacob Laursen 7d24cfbc9e
[hdpowerview] Improve color channel for Repeater and remove redundant brightness channel ()
* Improve color channel
* Log warning for unexpected color command

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-11-18 12:44:09 +01:00
Andrew Fiddian-Green df9c270acf
[hdpowerview] Add support for Generation 3 ()
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-05-24 13:00:14 +02:00
Jacob Laursen 9b891302c8
Fix alignment/indentation ()
Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-18 10:22:07 +01:00
Jerome Luckenbach 0e68936663
[Documentation] Markdown improvements f to m ()
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-12-08 21:36:05 +01:00
Jacob Laursen af4657f3db
Add console extension for showing IDs ()
Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-10-28 19:11:24 +02:00
Andrew Fiddian-Green f7295bd00f
[hdpowerview] Battery channels visible only when required ()
* [hdpowerview] add batteryKind field
* [hdpowerview] battery channels visible depending on batteryKind

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-28 13:55:18 +02:00
Andrew Fiddian-Green 0a41c3f2f6
[hdpowerview] Channels are visible depending on shade capabilities ()
* [hdpowerview] create channels dynamically
* [hdpowerview] revert from channel creation to channel removal
* [hdpowerview] add category

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-23 22:03:43 +02:00
Jacob Laursen 9ec6f7d12e
Add shade RF RSSI for hub/repeater ()
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-07-25 12:56:03 +02:00
Jacob Laursen 2e72ac78fd
[hdpowerview] Add support for setting repeater LED color and brightness ()
* Add support for setting repeater LED color and brightness.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-02-19 21:48:38 +01:00
Jacob Laursen 97422175c7
Update README after latest changes. ()
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-02-05 09:26:08 +01:00
Jacob Laursen fd6c8eeb80
[hdpowerview] Add shade identify command ()
* Add shade identify command.

Fixes  

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-31 18:38:40 +01:00
Jacob Laursen 608d0ae23a
[hdpowerview] Fix autoupdate quirk. ()
Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-27 21:38:29 +01:00
Jacob Laursen 369b985192
[hdpowerview] Convert calibrate to command channel. ()
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-27 20:49:27 +01:00
Andrew Fiddian-Green 8a2d507b21
[hdpowerview] Added support for rear blackout panel ()
* [hdpowerview] refactor enum constant names
* [hdpowerview] add support for blackout shades
* [hdpowerview] unit tests for capabilities 8 & 9
* [hdpowerview] delete no longer valid comment
* [hdpowerview] blackout shade position is never UNDEF
* [hdpowerview] updated read me
* [hdpowerview] refactor unit tests into two classes

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-01-25 20:09:14 +01:00
Jacob Laursen 9d361c1fa3
[hdpowerview] Add support for repeaters ()
* Add support for repeaters.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Simplify thing type filtering.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Improve robustness of configuration ID validation/initialization.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Convert repeater-identify to command channel.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix logged warning.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Skip unneeded bridge status logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Skip redundant logging.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix chanenl type label for blinking enabled.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-24 22:42:53 +01:00
Jacob Laursen 2832567fc9
[hdpowerview] Add support for calibrating a shade ()
* Add support for calibrating a shade.

Fixes 

* Fix startup problems by decoupling capabilities cache from updateSoftProperties.
* Minor refactoring of capabilities and shade id handling.
* Dispose faster/safer by killing any remaining tasks.
* Set shade thing status to UNKNOWN until we receive any data for shade.
* Fix position update glitch after setting position.
* Remove unneeded catch after shade id refactoring.
* Document return values in Javadoc.
* Avoid logging InterruptedException during dispose.
* Add calibration example item.
* Reduce nesting.
* Add myself as reviewer for binding.
* Add Andrew Fiddian-Green as reviewer for binding.
* Handle JsonParseException.
* Fix alphabetic order.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-14 22:59:01 +01:00
Andrew Fiddian-Green d45bcdb7aa
[hdpowerview] Fix secondary position bug. Add shade database and properties. ()
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-01-04 20:23:48 +01:00
Jacob Laursen 5c9da5687c
Support refresh command for signalStrength items. ()
Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-03 13:36:36 +01:00
Jacob Laursen e8df66f1d0
[hdpowerview] Refresh battery level when receiving refresh command ()
* Refresh battery level when receiving REFRESH command.

Fixes 

Update README with shade refresh logic.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-02 13:44:51 +01:00
jlaur 9f339c8ec4
[hdpowerview] Add support for enabling/disabling automations ()
* Add support for enabling/disabling automations.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix class description.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Document automation channel and channel groups.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Update scene example in documentation.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Consolidate method for getting channel map.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Extract channel updating from data fetching methods.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Draft implementation of better automation description.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Simplify and optimize building weekday string.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Further simplify building weekday string.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Update scheduled event channels when modified.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Update scene channels when modified.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Update scene group channels when modified.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix cache synchronization during initialization.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Reduced code duplication.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Shorten time formatting.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Danish translations for dynamic channels.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Simplify, optimize and fix dynamic channel creation.

Channel order is now preserved when updating an existing channel.

Scenes and scene collection are sorted correctly.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Provide backwards compatibility for deprecated channels.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Document purpose of createDeprecatedSceneChannels.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Cleaned up poll method for improved readability.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix potential race condition when initialize() is called while updating channels.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-12-11 17:20:11 +01:00
jlaur 8c83c27c57
[hdpowerview] Add support for scene groups ()
* Add support for scene collections.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Add unit test for parsing of scene collections response.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Add default i18n properties file.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix CAT: File does not end with a newline.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Update documentation with scene collections.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix CAT: File does not end with a newline.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix formatting.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix CAT: File does not end with a newline.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Split offline tests into separate distinct tests.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Increase test coverage for scene/scene collection parsing.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Internationalization of dynamic scene/scene collection channels.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Rename scene collections to scene groups.

Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Change custom text keys to not collide with framework.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Avoid multiple thing updates.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Add missing label/description texts for secondary channel.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Remove unneeded @Nullable annotations.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-11-15 23:53:23 +01:00
jlaur 805d56dc08
[hdpowerview] Add Hub configuration option hardRefreshBatteryLevel ()
* Add Hub configuration option hardRefreshBatteryLevel for refreshing battery status more frequently.
* Explicitly update battery channels to Undefined when data is missing or invalid.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-18 13:55:04 +02:00
jlaur 56a0449ce1
[hdpowerview] Add new battery level channel ()
* Introduce new batteryLevel channel.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-08 20:36:59 +02:00
jlaur 0087c8c828
[hdpowerview] Add new signal strength channel ()
* Add new signal strength channel.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-04 15:49:33 +02:00
jlaur 4e50a985e6
[hdpowerview] Add new batteryVoltage channel ()
* Add new batteryVoltage channel.

Fixes 

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix documentation for lowBattery.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Organized channels into two groups: Shade and Battery.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Revert breaking change.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-08-26 18:57:27 +02:00
Kai Kreuzer 6df6783b60 added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-09-21 03:37:19 +02:00