]> git.basschouten.com Git - openhab-addons.git/commit
[evcc] Extend accepted types for commands & Handle quantity types of commands (#13795)
authorFlorian Hotze <florianh_dev@icloud.com>
Mon, 28 Nov 2022 21:17:26 +0000 (22:17 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 21:17:26 +0000 (22:17 +0100)
commit446be35ac51e3da4dac2c88d69cc3ff273a180be
tree342488b6982700a78f3ca90a5236ac8eee6e8a62
parentd3ecba9e79cf3213e921cc6517c157f0b4c8d3ae
[evcc] Extend accepted types for commands & Handle quantity types of commands (#13795)

* [evcc] Extend accepted command types
* [evcc] Convert QuantityType commands to required units
* [evcc] Allow evcc URL to end with a slash

Should fix an issue on the forum, where a user sent a command of DecimalType, but the binding expected a QuantityType.
See https://community.openhab.org/t/evcc-binding-electric-vehicle-charging-control/135209/15.
The accepted command types are extended for all channels if possible.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/EvccHandler.java
bundles/org.openhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/api/EvccAPI.java