Commit Graph
37 Commits
Author SHA1 Message Date
Hilbrand BouwkampandGitHub f87a49dbeb [unifi] Fix PoE port mode for 24V (#13539)
* [unifi] Fix PoE port mode for 24V

The value UniFi expects is actually pasv24. Tested with different UniFi controller versions.

* [unifi] Added Hilbrand as codeowner to UniFi binding

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-10-13 14:34:28 +02:00
Hilbrand BouwkampandGitHub 0560a0e333 [unifi] Detect all PoE ports, and set PoE thing offline if no data could be found (#13455)
* [unifi] Set PoE thing offline if no data could be found

This would better reflect the PoE thing status if there is a problem with either the data from the api or a configuration problem (like invalid port number).

* [unifi] Fix bug to detect PoE ports when first port is not PoE port

The binding assumed either all ports or no ports were PoE, and asssumed if port 0 was not PoE none was PoE.
However, some switches have ports starting at port 5 to be PoE. Therefor changed code to just test each port if it is PoE.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-10-03 13:02:46 +02:00
Hilbrand BouwkampandGitHub 698703b0c6 [unifi] Fix portoverride to not remove any other data (#13362)
When a user has configured additional settings on a PoE port, like name.
These settings where lost when changing the PoEPort status in openHAB.
This was because in the binding only some information of the override was stored and when writing the new state this information would have been sent too.
In this change the object to store the override has been replaced by a plain json object. Therefore we don't have to know what is in it and all information is kept.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-09-10 16:59:42 +02:00
Hilbrand BouwkampandGitHub 18a41dbe84 [dsmr] Made additional key for smarty meter an option (#13359)
* [dsmr] Made additional key for smarty meter optional

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-09-07 11:08:04 +02:00
Hilbrand BouwkampandGitHub a58ae57942 [dsmr] Fix incorrect deriving of sub channel names when updating channels (#13076)
Subchannels were created by appending the key. However this was done inside a loop and if multiple updates were needed they would be appended to the channel name, instead of taking the channel name each time.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-07-04 21:50:03 +02:00
Hilbrand BouwkampandGitHub 4372c007cd Updated readme, added how to generate i18n en properties file/kar files/use -pl option (#12757)
* Updated readme, added how to generate i18n en properties file/kar files/use -pl option

- Also put command in blocks to make them stand out more in the readme.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-05-19 11:15:59 +02:00
dec6483e2c [unifi] New site, wlan, wiredClient, and poePort. Discovery support (#11959)
* [unifi] New wiredClient and poePort, Discovery support

This change adds the following changes:
- 2 new things: a wired client and POE port.
- Adds discovery of clients and poePort.
- Adds guest channel to client thing.
Also included some refactoring and bug fixes.

This change includes changes made by Matthew Bowman that he created on his own branch but were never completed.

Closes #9609: Implemented async http call, which should fix the buffer overflow.
Closes #10375: At least should avoid the stack overflow.
Closes #11964: cid will be handled in lower case.

* Removed type from UniFiCache constructor

It's redundant and only used for logging.

* Added UniFi Site and wLAN things

* Improved default state handling

Updated refresh/state update, to also update when no data available.
Simplified usage of cache: call cache directly instead of implicit via controller class.
Made getDefaultState generic to all things, and simplified passing channelId instead of channelUID to sub methods.

* Moved dto objects to dto package.

* Added support for client experience

* Made fields private

No need to have them protected.

* Added PoE power-cycle command

Also added wireless client as command as this better fits with the openHAB model to handle commands that are only one way and not have a state.

* Updated readme

* [unifi] Added client/guest count to wlan

* Fix QRcode construction and added hidden ssid support in qrcode string

Also-by: Matthew Bowman <mgb@otr.mx>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Co-authored-by: Matthew Bowman <mgb@otr.mx>
2022-05-16 23:14:00 +02:00
Hilbrand BouwkampandGitHub e6cc323723 DSMR identifier cosem objects should be parsed as hex values (#12756)
Closes #12724

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-05-16 21:13:28 +02:00
Hilbrand BouwkampandGitHub 888cf00245 [tplinksmarthome] Added KL400, KL430 lightstrip support (#12000)
Closes #8709

Additional:
- Added action to send and receive json commands to a tplink device. This can be used for test purposes or to run commands not available through channels.

Fixes:
- Power channel of a bulb is defined as QuantityType in xml, therefor it should create the state using QuantityType
- Retry getting values 5 times before setting the device offline. Reduced socket time out to 2 seconds as it normally should react quickly and if it times out it tries again.

Also-by: Dustin Masters <ceo@dustinsoftware.com>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-02-10 19:58:24 +01:00
Hilbrand BouwkampandGitHub da59cdd255 Update license headers to 2022 (#11973)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-01-06 18:14:47 +01:00
Hilbrand BouwkampandGitHub 253f36abbf [astro] Fixed timeLeft calculation at the end of the year (#11889)
Season timeleft calculated the wrong time at the end of the year, because the seasons it measures the time with are the seasons within the same year.
So for times at the end of the year it computed against the season at the beginning of the year, resulting in negative number of days.
Also changed the time of timeLeft to actual days instead of quantity unit days.
Because with the milliseconds internal resolution it will generate events each and every time this channel is updated as milliseconds change often.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-12-30 13:49:43 +01:00
Hilbrand BouwkampandGitHub d8175b010a [tplinksmarthome] KP405 channel in xml should be dimmer not switch (#11839)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-12-21 22:39:16 +01:00
Hilbrand BouwkampandGitHub 3a913a6e6b [tplinksmarthome] Added new devices ES20, KP125, KP405 and KS230 (#11771)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-12-20 18:58:27 +01:00
Hilbrand BouwkampandGitHub 384fdad56e [tplinksmarthome] Fixed invalid channels in KL125/KL135. (#11680)
These are color bulbs and should have the color channel instead of the brightness channel.
Closes #11660

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-12-01 11:57:09 +01:00
Hilbrand BouwkampandGitHub 90525c5150 [dsmr] Add support for Austrian meters, Fix for channel id detection (#11458)
* Fix fix for channel id detection, Added missing channels to emucs electra

- M-bus channels are dynamic and present in the obis id.
The binding had most channel types fixed because most of the time these channels are the same.
However the device identifier is the same for multiple devices.
But the binding only registered only one and while the channel id was derived from this obis data.
For detected meters this resulted in the channel id to be the same if there are multiple devices.
This change looks at the channel id to assign it to the found device.
This is a bit tricky because the general device has no channel and has channels that have different id's.
So the binding needs to cover that case.

This change also adds some optional channels to the emucs electra meter.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>

* [dsmr] Add support for Austrian meters

Improved the work done in pr #11193

Also-by: Thomas <thomas@knaller.info>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>

* [dsmr] Added Null handling annotations.
2021-10-30 18:04:42 +02:00
Hilbrand BouwkampandGitHub 196e4e2210 [spotify] Various enhancements and fixes (#11370)
Enhancements:
- Added play actions to start a track or other via a rule.
- Added albumImageUrl with the url to the album image to not have to send the whole image via the openHAB eventbus.
- Added a parameter imageIndex to set the image size to use (0, 1 or 2) to channels albumImage and albumImageUrl.
- Added offset and limit parameters to playlists channel (Closes #6843).

Fixes:
- Fixed invalid expire value set on ExpiringCache (Closes #10490).
- Improved handling Spotify API error messages (Closes #11308).
- Added TTL to discovery results to fix duplicated Spotify Connect devices reported in the inbox (Closes #7400).
- Fixed device list update problem for devices. If no devices where configured as separate things (or the devices added where offline, but non added where not offline) the list was not updated.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-10-24 11:42:14 +02:00
Hilbrand BouwkampandGitHub 1b80f1d492 [dsmr] Fix payload length calculation for Smarty meters (#11328)
Fixes #10932
Supersedes #10933 and adds a unit test.

Also-by: Alexander Hotz <alex.hotz@gmail.com>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-09-30 22:59:54 +02:00
Hilbrand BouwkampandGitHub b35c00c752 [tplinksmarthome] Added new devices EP10, EP40, KL125, and KL135 (#11282)
Closes #11156

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-09-28 18:28:15 +02:00
Hilbrand BouwkampandGitHub 53d168991c [enphase] Initial contribution (#9883)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-04-11 19:54:08 +02:00
Hilbrand BouwkampandGitHub 13a58b9458 Adds exceptions for KarafAddonFeatureCheck (#8613)
* Adds exceptions for KarafAddonFeatureCheck

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-04-08 22:55:29 +02:00
Hilbrand BouwkampandGitHub 93fac19be8 [denonmarantz] Update protocol reference in readme (#10044)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-02-06 17:21:57 +01:00
Hilbrand BouwkampandGitHub ff9454596e [networkupstools] Some sat improvements (#10017)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-02-03 22:04:50 -08:00
Hilbrand BouwkampandGitHub 8889762bef Removal of reference to PaperUI (#9905)
Related to #8607.

In some cases removed information that is actually generic information and should not be in binding readme.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-01-22 09:51:24 +01:00
Hilbrand BouwkampandGitHub 0fc60d82c6 [dsmr] Fix test after openhab-core change #2126 (#9900)
PortInUseException interface changed.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-01-21 16:41:36 +01:00
Hilbrand BouwkampandGitHub b5b787932d [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>
2021-01-19 10:34:49 +01:00
Hilbrand BouwkampandGitHub e3ae01df91 [kostalinverter] Fixed package structure (#9559)
The internal package was placed before the binding specific package, and it should be the other way around.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-01-12 22:15:21 +01:00
Hilbrand BouwkampandGitHub ac3f907b36 Normalized thread names (#9581)
Related to #8216

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-01-12 22:10:01 +01:00
Hilbrand BouwkampandGitHub 3f0c0ebf1f [dsmr] Fix handling problem reading gasmeter (#9736)
* [dsmr] Fix handling problem reading gasmeter

The gasmeter seem to return an invalid date value in some cases.
Possible problems with the meter. This however caused the whole meter readings to be ignored, while it should only ignore the single problem value.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>

* [dsmr] Make eclipse happy again.

Don't ask...

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>

* [dsmr] Removed sat warnings

Removed usage of apache library and added NonNullByDefault to test classes..

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2021-01-08 23:16:33 +01:00
Hilbrand BouwkampandGitHub 46f91813a8 [opensprinkler] Cleanup NOTICE. pi4j library not used anymore (#9500)
Support was removed in https://github.com/openhab/openhab2-addons/commit/8aeeb49c693db7f64b5672c80a1dff484b49effe#diff-b6edf78e29afc34859018f4e11ec53bded97a615b62040712227b883ba5c13f8

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-12-25 09:41:40 +01:00
Hilbrand BouwkampandGitHub a2f36c31f9 [dsmr] cleanup message file (#9510)
For some reason the dutch message file contained all kind of garbage.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-12-24 16:49:08 +01:00
Hilbrand BouwkampandGitHub 4f7ac4ea30 [astro] Fix for incorrect calculation of next season. (#9474)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-12-22 20:03:08 +01:00
Hilbrand BouwkampandGitHub c7b86c09d9 [snmp] Set thing only online on valid response (#8759)
* [snmp] Set thing only online on valid response

Otherwise it will toggles between online and offline when the call always times-out, which can happen when the device is unreachable (or a wrong ip address configured).

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-10-25 16:21:37 +01:00
Hilbrand BouwkampandGitHub 003c3af985 Remove immediate = true from all Components (#8615)
We recommend not to use this on add-ons.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-10-01 20:27:01 -07:00
Hilbrand BouwkampandGitHub ea55540f8b Fix openhab-addons url in NOTICE files (#8614)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-09-30 10:08:31 +02:00
Hilbrand BouwkampandGitHub 1bc55a208b Removed usage to IOUtils.toString (#8579)
Specifically the toString reading from inputstream.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-09-25 11:46:14 -07:00
Hilbrand BouwkampandGitHub daccb66b43 Fix feature names in feature.xml files (#8569)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-09-24 10:43:08 -07:00
Hilbrand BouwkampandGitHub be10dea6ea [venstarthermostat] Fix venstarthermostat feature.xml (#8542)
Also added to bom pom.xml

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2020-09-22 15:36:18 +02:00