Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update fork #1

Merged
merged 52 commits into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c03217d
[bluetooth] Fix for AM43 and Airthings devices not being discovered. …
cpmeister Apr 1, 2020
0f863af
Fixing docs from ipAddress to host (#7267)
oybed Apr 1, 2020
1c4d85a
[checkstyle] Treat packages containing .dto. the same way as java cla…
seime Apr 1, 2020
dcf07de
[rfxcom] EOF fix (#7272)
paulianttila Apr 2, 2020
552b54b
[insteon] add console commands to help with troubleshooting (#7251)
robnielsen Apr 3, 2020
5cef8d3
[Jeelink] Declaration of Bridges in Items Files (#7268)
dsgrafiniert Apr 3, 2020
a58ffb4
[gardena] Adapt to the official wording (#7277)
rettichschnidi Apr 3, 2020
c1e6d5a
[etherrain] EtherRain Binding initial contribution (#5634)
dfad1469 Apr 3, 2020
2102cb0
Fix errors and changes after importing add-ons in Eclipse (#7270)
wborn Apr 3, 2020
d8c7e00
[miio] adding new devices (#7273)
marcelrv Apr 3, 2020
286f4b6
[bluetooth] Refactor and unify BluetoothAdapter implementation logic …
cpmeister Apr 4, 2020
6b95a8b
[fronius] Add new channels and fix documentation (#7247)
hypetsch Apr 4, 2020
cf962f2
Use diamond operator and loose coupling (#7280)
wborn Apr 4, 2020
3d9a35d
[marytts] Fix java.lang.NoClassDefFoundError: Jama/Matrix (#7284)
wborn Apr 4, 2020
dbc0144
[boschindigo] Fix dependency version for indego library (#7288)
J-N-K Apr 4, 2020
660b858
Fix trivial SAT findings (#7290)
wborn Apr 4, 2020
9a16309
[doorbird] Minor Documentation updates (#7293)
mhilbush Apr 4, 2020
dcfab82
Increase timeout to account for slower machines. (#7287)
cpmeister Apr 4, 2020
09b4416
[tradfri] Add missing representation property 'host' in in gateway de…
seime Apr 5, 2020
a985e07
Fix SAT NoEmptyLineSeparatorCheck findings (#7296)
wborn Apr 5, 2020
e9f3b7c
[mihome] Update README.md (#7281)
Terr4 Apr 5, 2020
1ededc4
[pjlink] enhanced logging (show byte array in addition to string) (#7…
nils Apr 5, 2020
02c1bcb
[mail] Correctly named STARTTLS and a few small improvements (#7292)
kaikreuzer Apr 5, 2020
3b49fb9
[satel] Action for reading the event log added (#7282)
druciak Apr 5, 2020
669ec98
[lgwebos] Fix initialize and dispose (#7301)
lolodomo Apr 5, 2020
2f2736b
[hueemulation] Fix broken fallback address (#7305)
wborn Apr 5, 2020
0ef20dc
[sagercaster] Sager Weather Caster Binding initial contribution (#4754)
clinique Apr 5, 2020
4d6ba4c
[lgwebos] Ignore power off command when the TV is already off (#7300)
lolodomo Apr 5, 2020
46c6cab
[lgwebos] Update the thing configuration only if the key is different…
lolodomo Apr 5, 2020
b891413
[insteon] Add support for Beep and LED on/off features to various mod…
tommycw1 Apr 5, 2020
233f516
Use .isEmpty() instead of counting elements with .size() (#7307)
wborn Apr 5, 2020
5673628
[nikohomecontrol] Small README updates. (#7311)
mherwege Apr 6, 2020
45cf759
[nikohomecontrol] Removed dead code (#7314)
mherwege Apr 6, 2020
bb95861
Update maintainers team in CODEOWNERS (#7317)
wborn Apr 7, 2020
cc61af2
[miio] Add Xiaomi cloud logon (token download) and map download (#7255)
marcelrv Apr 7, 2020
e2279f2
Add null annotations to MarketplaceRuleTemplateProvider (#7319)
wborn Apr 7, 2020
415f6b6
[neohub] bug fix for new hub firmware (#7323)
andrewfg Apr 8, 2020
051f3e4
[chromecast] Update API lib to 0.11.3 (#7327)
wborn Apr 9, 2020
4b714d4
[wemo] Fix InboxFilterCriteria deprecation (#7329)
wborn Apr 9, 2020
efab78f
[nikohomecontrol] Small README update. (#7330)
Dries-Vandenneucker Apr 9, 2020
5d01bb7
[nikohomecontrol] Small README update. (#7331)
Dries-Vandenneucker Apr 9, 2020
8a99893
[lgwebos] Avoid thing updates when the thing handler is already dispo…
lolodomo Apr 10, 2020
9527486
[openweathermap] Added apparent temperature channel (#7335)
cweitkamp Apr 11, 2020
9267183
[daikin] Support AUTO fan mode with Airbase (#7340)
jimtng Apr 11, 2020
b091ac6
[daikin] Update doc to include fandir channel previously omitted (#7341)
jimtng Apr 11, 2020
66354b7
[insteon] Improved support for 2334 Keypad Dimmer and 2487S Keypad Sw…
tommycw1 Apr 12, 2020
715322a
[dwdpollenflug] Initial Contribution (#7298)
DerOetzi Apr 12, 2020
b19b0b2
[miio] change brightness for Philips bulbs (#7349)
marcelrv Apr 13, 2020
83eabef
[homematic] Replaced deprecated constructors and use builders (#7352)
MHerbst Apr 13, 2020
7ba2503
[insteon] Improve hub message processing (#7347)
jsetton Apr 13, 2020
850c2c2
[weathercompany] Fix language in thing example (#7357)
mhilbush Apr 13, 2020
b59f3cf
[extensionservice] Add more null annotations (#7348)
wborn Apr 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 10 additions & 7 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# It should always list the active maintainers of certain add-ons.

# As a fallback, if no specific maintainer is listed below, assign the PR to the repo maintainers team:
* @openhab/2-x-add-ons-maintainers
* @openhab/add-ons-maintainers

# Add-on maintainers:
/bundles/org.openhab.binding.adorne/ @theiding
Expand Down Expand Up @@ -41,10 +41,12 @@
/bundles/org.openhab.binding.doorbird/ @mhilbush
/bundles/org.openhab.binding.dscalarm/ @RSStephens
/bundles/org.openhab.binding.dsmr/ @Hilbrand
/bundles/org.openhab.binding.dwdpollenflug/ @DerOetzi
/bundles/org.openhab.binding.dwdunwetter/ @limdul79
/bundles/org.openhab.binding.elerotransmitterstick/ @vbier
/bundles/org.openhab.binding.enocean/ @fruggy83
/bundles/org.openhab.binding.enturno/ @klocsson
/bundles/org.openhab.binding.etherrain/ @dfad1469
/bundles/org.openhab.binding.evohome/ @Nebula83
/bundles/org.openhab.binding.exec/ @kgoderis
/bundles/org.openhab.binding.feed/ @svilenvul
Expand Down Expand Up @@ -154,6 +156,7 @@
/bundles/org.openhab.binding.rotel/ @lolodomo
/bundles/org.openhab.binding.rotelra1x/ @fa2k
/bundles/org.openhab.binding.russound/ @tmrobert8
/bundles/org.openhab.binding.sagercaster/ @clinique
/bundles/org.openhab.binding.samsungtv/ @paulianttila
/bundles/org.openhab.binding.satel/ @druciak
/bundles/org.openhab.binding.seneye/ @nikotanghe
Expand Down Expand Up @@ -216,15 +219,15 @@
/bundles/org.openhab.io.transport.modbus/ @ssalonen
/bundles/org.openhab.io.webaudio/ @kaikreuzer
/bundles/org.openhab.persistence.mapdb/ @mkhl
/bundles/org.openhab.transform.exec/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.javascript/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.exec/ @openhab/add-ons-maintainers
/bundles/org.openhab.transform.javascript/ @openhab/add-ons-maintainers
/bundles/org.openhab.transform.jinja/ @jochen314
/bundles/org.openhab.transform.jsonpath/ @clinique
/bundles/org.openhab.transform.map/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.regex/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.map/ @openhab/add-ons-maintainers
/bundles/org.openhab.transform.regex/ @openhab/add-ons-maintainers
/bundles/org.openhab.transform.scale/ @clinique
/bundles/org.openhab.transform.xpath/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.xslt/ @openhab/2-x-add-ons-maintainers
/bundles/org.openhab.transform.xpath/ @openhab/add-ons-maintainers
/bundles/org.openhab.transform.xslt/ @openhab/add-ons-maintainers
/bundles/org.openhab.voice.googletts/ @gbicskei
/bundles/org.openhab.voice.mactts/ @kaikreuzer
/bundles/org.openhab.voice.marytts/ @kaikreuzer
Expand Down
15 changes: 15 additions & 0 deletions bom/openhab-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@
<artifactId>org.openhab.binding.dsmr</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.dwdpollenflug</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.dwdunwetter</artifactId>
Expand All @@ -214,6 +219,11 @@
<artifactId>org.openhab.binding.enturno</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.etherrain</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.evohome</artifactId>
Expand Down Expand Up @@ -764,6 +774,11 @@
<artifactId>org.openhab.binding.russound</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.sagercaster</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.samsungtv</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.binding.adorne/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.adorne/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ sitemap demo label="Adorne Binding Demo"
Setpoint item=LightBedroomDimmer2 label="Bedroom 2" icon="light-on" minValue=1 maxValue=100 step=5
}
}
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ private void msgLoop() {
cancelCommands();
hubControllerConnected.cancel(false);
logger.info("Exiting hub controller");

}

private boolean shouldStop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

import javax.measure.quantity.Pressure;
import javax.measure.quantity.Temperature;

import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.eclipse.smarthome.core.library.types.DateTimeType;
Expand Down Expand Up @@ -265,7 +262,6 @@ private AirQualityJsonResponse getAirQualityData() {
errorMsg = "missing data sub-object";
logger.warn("Error in aqicn.org (Air Quality) response: {}", errorMsg);
}

} catch (MalformedURLException e) {
errorMsg = e.getMessage();
logger.warn("Constructed url is not valid: {}", errorMsg);
Expand Down Expand Up @@ -300,7 +296,7 @@ public static Object getValue(String channelId, AirQualityJsonResponse data) thr
case CO:
return data.getData().getIaqi().getCo();
case SO2:
return data.getData().getIaqi().getSo2();
return data.getData().getIaqi().getSo2();
case LOCATIONNAME:
return data.getData().getCity().getName();
case STATIONID:
Expand All @@ -310,9 +306,9 @@ public static Object getValue(String channelId, AirQualityJsonResponse data) thr
case OBSERVATIONTIME:
return data.getData().getTime().getObservationTime();
case TEMPERATURE:
return new QuantityType<Temperature>(data.getData().getIaqi().getT(), API_TEMPERATURE_UNIT);
return new QuantityType<>(data.getData().getIaqi().getT(), API_TEMPERATURE_UNIT);
case PRESSURE:
return new QuantityType<Pressure>(data.getData().getIaqi().getP(), API_PRESSURE_UNIT);
return new QuantityType<>(data.getData().getIaqi().getP(), API_PRESSURE_UNIT);
case HUMIDITY:
return new QuantityType<>(data.getData().getIaqi().getH(), API_HUMIDITY_UNIT);
case DOMINENTPOL:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public String getUrl() {
}

public String getGeo() {
List<String> list = new ArrayList<String>();
List<String> list = new ArrayList<>();
for (int i = 0; i < geo.size(); i++) {
list.add(geo.get(i).toString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public AirQualityJsonCity getCity() {
* @return {String}
*/
public String getAttributions() {
List<String> list = new ArrayList<String>();
List<String> list = new ArrayList<>();
for (int i = 0; i < attributions.size(); i++) {
list.add(attributions.get(i).getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class AllPlayBindingProperties {
private static final String ZONE_MEMBER_SEPARATOR_DEFAULT_VALUE = ",";

public AllPlayBindingProperties(Dictionary<String, Object> properties) {

rewindSkipTimeInSec = getIntegerProperty(properties, REWIND_SKIP_TIME_PROPERTY, REWIND_SKIP_TIME_DEFAULT_VALUE);
fastForwardSkipTimeInSec = getIntegerProperty(properties, FAST_FORWARD_SKIP_TIME_PROPERTY,
FAST_FORWARD_SKIP_TIME_DEFAULT_VALUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void registerAudioSink(Thing thing, AllPlayHandler handler) {
AllPlayAudioSink audioSink = new AllPlayAudioSink(handler, audioHTTPServer, callbackUrl);
@SuppressWarnings("unchecked")
ServiceRegistration<AudioSink> reg = (ServiceRegistration<AudioSink>) bundleContext
.registerService(AudioSink.class.getName(), audioSink, new Hashtable<String, Object>());
.registerService(AudioSink.class.getName(), audioSink, new Hashtable<>());
audioSinkRegistrations.put(thing.getUID().toString(), reg);
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ protected void doGet(@Nullable HttpServletRequest req, @Nullable HttpServletResp
try {
Connection connection = this.connectionToInitialize;
if (uri.startsWith(FORWARD_URI_PART) && connection != null) {

String getUrl = "https://www." + connection.getAmazonSite() + "/"
+ uri.substring(FORWARD_URI_PART.length());

Expand All @@ -271,7 +270,6 @@ protected void doGet(@Nullable HttpServletRequest req, @Nullable HttpServletResp
}

if (connection != null && connection.verifyLogin()) {

// handle commands
if (baseUrl.equals("/logout") || baseUrl.equals("/logout/")) {
this.connectionToInitialize = reCreateConnection();
Expand Down Expand Up @@ -633,7 +631,6 @@ void handleProxyRequest(Connection connection, HttpServletResponse resp, String
{
String location = urlConnection.getHeaderField("location");
if (location.contains("/ap/maplanding")) {

try {
connection.registerConnectionAsApp(location);
account.setConnection(connection);
Expand All @@ -646,7 +643,6 @@ void handleProxyRequest(Connection connection, HttpServletResponse resp, String
this.connectionToInitialize = null;
return;
}

}

String startString = "https://www." + connection.getAmazonSite() + "/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ public boolean tryRestoreLogin(@Nullable String data, @Nullable String overloade
} catch (IOException e) {
return false;
} catch (URISyntaxException e) {

}
}
return false;
Expand Down Expand Up @@ -539,7 +538,6 @@ public HttpsURLConnection makeRequest(String verb, String url, @Nullable String
URI uri = connection.getURL().toURI();

if (customHeaders == null || !customHeaders.containsKey("Cookie")) {

StringBuilder cookieHeaderBuilder = new StringBuilder();
for (HttpCookie cookie : cookieManager.getCookieStore().get(uri)) {
if (cookieHeaderBuilder.length() > 0) {
Expand All @@ -559,7 +557,6 @@ public HttpsURLConnection makeRequest(String verb, String url, @Nullable String
}
}
if (postData != null) {

logger.debug("{}: {}", verb, postData);
// post data
byte[] postDataBytes = postData.getBytes(StandardCharsets.UTF_8);
Expand Down Expand Up @@ -595,7 +592,6 @@ public HttpsURLConnection makeRequest(String verb, String url, @Nullable String
// store cookie
for (String cookieHeader : header.getValue()) {
if (StringUtils.isNotEmpty(cookieHeader)) {

List<HttpCookie> cookies = HttpCookie.parse(cookieHeader);
for (HttpCookie cookie : cookies) {
cookieManager.getCookieStore().add(uri, cookie);
Expand Down Expand Up @@ -646,9 +642,7 @@ public HttpsURLConnection makeRequest(String verb, String url, @Nullable String
return connection;
}
throw new HttpException(code, verb + " url '" + url + "' failed: " + connection.getResponseMessage());

} catch (IOException e) {

if (connection != null) {
connection.disconnect();
}
Expand Down Expand Up @@ -753,7 +747,6 @@ public String registerConnectionAsApp(String oAutRedirectUrl)
}

private void exchangeToken() throws IOException, URISyntaxException {

this.renewTime = 0;
String cookiesJson = "{\"cookies\":{\"." + getAmazonSite() + "\":[]}}";
String cookiesBase64 = Base64.getEncoder().encodeToString(cookiesJson.getBytes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ public void onWebSocketBinary(byte @Nullable [] data, int offset, int len) {
sendMessage(
"0xa6f6a951 0x0000009c {\"protocolName\":\"A:H\",\"parameters\":{\"AlphaProtocolHandler.receiveWindowSize\":\"16\",\"AlphaProtocolHandler.maxFragmentSize\":\"16000\"}}TUNE");
sendMessage(encodeGWHandshake());

} else if (this.msgCounter == 1) {
sendMessage(encodeGWRegister());
sendPing();
Expand All @@ -395,7 +394,6 @@ public void onWebSocketBinary(byte @Nullable [] data, int offset, int len) {
Message message = parseIncomingMessage(buffer);
if (message.service.equals("FABE") && message.content.messageType.equals("PON")
&& message.content.payloadData.length > 0) {

logger.debug("Pong received");
WebSocketConnection.this.clearPongTimeoutTimer();
return;
Expand All @@ -416,7 +414,6 @@ public void onWebSocketBinary(byte @Nullable [] data, int offset, int len) {

@Override
public void onWebSocketText(@Nullable String message) {

}

@Override
Expand Down Expand Up @@ -464,7 +461,6 @@ long computeBits(long input, long len) {
}

long toUnsignedInt(long value) {

long result = value;
if (0 > value) {
result = 4294967295L + value + 1;
Expand Down Expand Up @@ -559,7 +555,6 @@ void encode(byte[] data, long b, int offset, int len) {
}

byte[] encodePing() {

// MSG 0x00000065 0x0e414e47 f 0x00000001 0xbc2fbb5f 0x00000062 PIN� ��� ��RegularFABE
this.messageId++;
String msg = "MSG 0x00000065 "; // Message-type and Channel = CHANNEL_FOR_HEARTBEAT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public boolean tryHandleCommand(Device device, Connection connection, String cha
}
Boolean sound = request.sound;
if (sound != null) {
if (sound == false && !speak.startsWith("<speak>")) {
if (!sound && !speak.startsWith("<speak>")) {
speak = "<speak>" + StringEscapeUtils.escapeXml(speak) + "</speak>";
}
if (sound == true && speak.startsWith("<speak>")) {
if (sound && speak.startsWith("<speak>")) {
body = "Error: The combination of sound and speak in SSML syntax is not allowed";
title = "Error";
speak = "<speak><lang xml:lang=\"en-UK\">Error: The combination of sound and speak in <prosody rate=\"x-slow\"><say-as interpret-as=\"characters\">SSML</say-as></prosody> syntax is not allowed</lang></speak>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public synchronized void discoverFlashBriefingProfiles(String currentFlashBriefi
}

if (!discoverdFlashBriefings.contains(currentFlashBriefingJson)) {

ThingUID freeThingUID = null;
int freeIndex = 0;
for (int i = 1; i < 1000; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ private void checkLogin() {
setConnection(currentConnection);
}
} else {

// read session data from property
String sessionStore = this.stateStorage.get("sessionStorage");

Expand Down Expand Up @@ -582,7 +581,6 @@ private void refreshData() {
}

public List<Device> updateDeviceList() {

Connection currentConnection = connection;
if (currentConnection == null) {
return new ArrayList<>();
Expand Down
Loading