]> git.basschouten.com Git - openhab-addons.git/commit
[pidcontroller] Fix for handling trigger input in action (#9842)
authorHilbrand Bouwkamp <hilbrand@h72.nl>
Tue, 19 Jan 2021 09:34:49 +0000 (10:34 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 09:34:49 +0000 (10:34 +0100)
commitb5b787932d67e203c3053217a2b493ce7db018f5
treea259c8526f1a1bb9671dfdbafb1c910e560c9617
parent1a64f10ae8f89366815d459552e05defad5abf95
[pidcontroller] Fix for handling trigger input in action (#9842)

* [pidcontroller] Catch empty commandTopic

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [pidcontroller] Fix handling action

keys in action context from trigger are passed with prefix of trigger  name.
This change removes the prefix to get the actual name and checks if it matches an item.
Else it tries the original name.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [pidcontroller] review comment

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
bundles/org.openhab.automation.pidcontroller/src/main/java/org/openhab/automation/pidcontroller/internal/handler/PIDControllerActionHandler.java
bundles/org.openhab.automation.pidcontroller/src/main/java/org/openhab/automation/pidcontroller/internal/handler/PIDControllerTriggerHandler.java