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

Smart home #1

Merged
merged 63 commits into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
7c839a7
[amazonechocontrol]
May 11, 2019
35154c1
[amazonechocontrol]
May 12, 2019
94494da
[amazonechocontrol]
May 12, 2019
d75261f
Merge branch 'master' of https://github.com/openhab/openhab2-addons
May 15, 2019
eef3b2e
Merge branch 'master' of https://github.com/openhab/openhab2-addons
May 20, 2019
611b9fd
Original
lkn94 Jun 9, 2019
bbdcbf8
Bugfixed for new version and merge request
lkn94 Jun 9, 2019
987d8eb
Added license information and author
lkn94 Jun 9, 2019
ecd8095
[enocean] Fixes EEP definition for A5_07_03 message handling class (#…
fruggy83 Jun 10, 2019
b2d9d0f
Added contributor and readme information
lkn94 Jun 10, 2019
51873b5
[hueemulation] Fix warnings/stacktraces at startup (#5709)
wborn Jun 10, 2019
d96d2d5
[enocean] Improve incoming message handling for Eltako rollershutters…
fruggy83 Jun 10, 2019
906776c
Upgrade Karaf to 4.2.6 (#5708)
wborn Jun 10, 2019
ca773f7
Added VSCode ignores to gitignore (#5712)
tmrobert8 Jun 10, 2019
d2dc38f
[knx] Docu: simplify Bridge and Thing configuration (#5713)
lewie Jun 11, 2019
504b52a
remove wrapping and force dependency install (#5707)
J-N-K Jun 12, 2019
95f8cb1
Fix jeelink serial connection broken by #5497. (#5717)
vbier Jun 12, 2019
3b47874
[dmx] fix documentation typo (#5686)
funkstille Jun 12, 2019
1c5ce81
[keba] Add setenergy command (#5595)
tiptick Jun 14, 2019
47b7c8f
[network] DHCPTest.java (#5726)
martinvw Jun 14, 2019
894028b
[globalcache] Update the Item type for Contact Closures to "Switch" (…
knikhilwiz Jun 14, 2019
f3219ac
[hueemulation] seperate ipv4 / ipv6 (#5727)
martinvw Jun 14, 2019
3cf0803
Fix missing feature bundles (#5731)
wborn Jun 15, 2019
5008890
[knx] improve connection handling on reconnect (#5695)
J-N-K Jun 16, 2019
c11517a
implement onError method for websocket connection (#5730)
kaikreuzer Jun 16, 2019
9ab88ec
update POMs with changed dependencies (#5736)
J-N-K Jun 16, 2019
9dfd1a4
[xmppclient] Improved readme file (#5722)
pavel-gololobov Jun 17, 2019
f620869
partly revert unwrapping (#5743)
J-N-K Jun 19, 2019
34c98f6
[wip] fix build errors (#5728)
martinvw Jun 19, 2019
0557788
[astro] Fix for the SUN_SET and SUN_RISE (#5720)
wmarkow Jun 22, 2019
286eb47
Uncommented test comment for production use
lkn94 Jun 22, 2019
336a7e1
Removed the waitForUpdate variable - not used
lkn94 Jun 22, 2019
48515ce
[onkyo] Add support for TX-NR3007 (#5710)
Jun 26, 2019
3578ce5
[buienradar] Fixes for lat/lon, retry logic and timestamp channel (#5…
gedejong Jun 27, 2019
3bfaedb
[bluetooth/bluez] fix dependencies (#5706)
J-N-K Jun 27, 2019
93d5a2d
[tplinksmarthome] Added support for power outlets HS107, HS300, KP200…
Hilbrand Jun 27, 2019
850c0ed
[samsungtv] Fix minor bugs introduced with #4169 (#5738)
arjanmels Jun 27, 2019
6fb69ba
[onkyo] Fixes #5768 (#5769)
J-N-K Jun 27, 2019
37e8d47
[tplinksmarthome] Remove protected fields from methods (#5766)
Hilbrand Jun 27, 2019
f9fa7f6
Travis: Build new binding pull requests with tests (#5389)
davidgraeff Jun 28, 2019
f49bc16
[Satel] Migration to ESH serial API. (#5767)
druciak Jun 28, 2019
e8f727b
[openhabcloud] Create dedicated HttpClient from the factory to connec…
puzzle-star Jun 28, 2019
591be8e
[konnected] fixes servlet registration (#5764)
kaikreuzer Jun 28, 2019
3342b10
removed Eclipse .project file for reactor (#5774)
kaikreuzer Jun 28, 2019
4b8a520
Added two configurations params for pulling interval and activating t…
lkn94 Jun 30, 2019
82de771
Changing type of Channel Number from Number to String. (#5779)
sprehn Jun 30, 2019
209eb86
Updated dead github url to alive openhab-doc url (#5785)
BrutalBirdie Jul 1, 2019
afc8237
OSGi-ify 3rd party libraries (#5503)
J-N-K Jul 1, 2019
3ccde8e
Further evolution of travis build script (#5789)
martinvw Jul 2, 2019
4eebc7a
[rfxcom] Repaired support for RFXThermostat3 messages (#5765)
martinvw Jul 3, 2019
5245c17
Travis Cache (#5796)
davidgraeff Jul 3, 2019
86191c5
[pushbullet] Pushbullet Binding initial contribution (#5668)
hakan42 Jul 3, 2019
b761a62
[amazonechocontrol] Add support for announcement on echo show and ech…
Jul 4, 2019
20c2048
[somfytahoma] Added recovery from "too many requests" error (#5700)
octa22 Jul 4, 2019
01f74fb
Merge branch 'master' of https://github.com/openhab/openhab2-addons
Jul 4, 2019
1860326
Merge branch 'SmartHome' into original
Jul 4, 2019
59c9d18
Merge pull request #2 from lkn94/original
Jul 4, 2019
7e234da
[amazonechocontrol]
Jul 4, 2019
08d8636
[amazonechocontrol]
Jul 14, 2019
35434d9
[amazonechocontrol]
Jul 14, 2019
717cded
[amazonechocontrol]
Jul 14, 2019
1f352a4
[amazonechocontrol]
Jul 14, 2019
0b9b438
[amazonechocontrol]
Jul 14, 2019
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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.DS_Store
*.iml
npm-debug.log
.build.log

.metadata/
bin/
Expand All @@ -16,3 +17,6 @@ xtend-gen/
bundles/**/src/main/history
features/**/src/main/history
features/**/src/main/feature

.vscode
.factorypath
46 changes: 11 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,18 @@ jdk:
cache:
directories:
- $HOME/.m2
- $HOME/.p2
- $HOME/.bnd/cache/

before_cache:
# remove resolver-status.properties, they change with each run and invalidate the cache
- find $HOME/.m2 -name resolver-status.properties -exec rm {} \;

before_install:
- echo "MAVEN_OPTS='-Xms1g -Xmx2g -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'" > ~/.mavenrc
install:
- |
function prevent_timeout() {
local i=0
while [ -e /proc/$1 ]; do
# print zero width char every 3 minutes while building
if [ "$i" -eq "180" ]; then printf %b '\u200b'; i=0; else i=$((i+1)); fi
sleep 1
done
}
function print_reactor_summary() {
sed -ne '/\[INFO\] Reactor Summary:/,$ p' "$1" | sed 's/\[INFO\] //'
}
function mvnp() {
set -o pipefail # exit build with error when pipes fail
local command=(mvn $@)
exec "${command[@]}" 2>&1 | # execute, redirect stderr to stdout
tee .build.log | # write output to log
stdbuf -oL grep -E '^\[INFO\] Building .+ \[.+\]$' | # filter progress
sed -uE 's/^\[INFO\] Building (.*[^ ])[ ]+\[([0-9]+\/[0-9]+)\]$/\2| \1/' | # prefix project name with progress
sed -e :a -e 's/^.\{1,6\}|/ &/;ta' & # right align progress with padding
local pid=$!
prevent_timeout $pid &
wait $pid
}
after_success:
- print_reactor_summary .build.log
after_failure:
- tail -n 2000 .build.log
script:
- mvnp clean install -B -DskipChecks=true -DskipTests=true

notifications:
webhooks: https://www.travisbuddy.com/

travisBuddy:
insertMode: update
successBuildLog: true

install: true
script: ./buildci.sh "$TRAVIS_COMMIT_RANGE"
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
/bundles/org.openhab.binding.plugwise/ @wborn
/bundles/org.openhab.binding.powermax/ @lolodomo
/bundles/org.openhab.binding.pulseaudio/ @peuter
/bundles/org.openhab.binding.pushbullet/ @hakan42
/bundles/org.openhab.binding.regoheatpump/ @crnjan
/bundles/org.openhab.binding.rfxcom/ @martinvw @paulianttila
/bundles/org.openhab.binding.rme/ @kgoderis
Expand Down
5 changes: 5 additions & 0 deletions bom/openhab-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,11 @@
<artifactId>org.openhab.binding.pulseaudio</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.pushbullet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.regoheatpump</artifactId>
Expand Down
69 changes: 69 additions & 0 deletions buildci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/bin/bash

function prevent_timeout() {
local i=0
while [ -e /proc/$1 ]; do
# print zero width char every 3 minutes while building
if [ "$i" -eq "180" ]; then printf %b '\u200b'; i=0; else i=$((i+1)); fi
sleep 1
done
}

function print_reactor_summary() {
sed -ne '/\[INFO\] Reactor Summary:/,$ p' "$1" | sed 's/\[INFO\] //'
}

function mvnp() {
set -o pipefail # exit build with error when pipes fail
local command=(mvn $@)
exec "${command[@]}" 2>&1 | # execute, redirect stderr to stdout
stdbuf -o0 grep -vE "Download(ed|ing) from [a-z.]+: https:" | # filter out downloads
tee .build.log | # write output to log
stdbuf -oL grep -E '^\[INFO\] Building .+ \[.+\]$' | # filter progress
stdbuf -o0 sed -uE 's/^\[INFO\] Building (.*[^ ])[ ]+\[([0-9]+\/[0-9]+)\]$/\2| \1/' | # prefix project name with progress
stdbuf -o0 sed -e :a -e 's/^.\{1,6\}|/ &/;ta' & # right align progress with padding
local pid=$!
prevent_timeout $pid &
wait $pid
}

COMMITS=${1:-"master...HEAD"}

# Determine if this is a new addon -> Perform tests + integration tests and all SAT checks with increased warning level
CHANGED_DIR=`git diff --dirstat=files,0 $COMMITS bundles/ | sed 's/^[ 0-9.]\+% bundles\///g' | grep -o -P "^([^/]*)" | uniq`
CDIR=`pwd`

if [ ! -z "$CHANGED_DIR" ] && [ -e "bundles/$CHANGED_DIR" ]; then
echo "Single addon pull request: Building $CHANGED_DIR"
echo "MAVEN_OPTS='-Xms1g -Xmx2g -Dorg.slf4j.simpleLogger.log.org.openhab.tools.analysis.report.ReportUtility=DEBUG -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN'" > ~/.mavenrc
cd "bundles/$CHANGED_DIR"
mvn clean install -B 2>&1 |
stdbuf -o0 grep -vE "Download(ed|ing) from [a-z.]+: https:" | # Filter out Download(s)
stdbuf -o0 grep -v "target/code-analysis" | # filter out some debug code from reporting utility
tee $CDIR/.build.log
if [ $? -ne 0 ]; then
exit 1
fi

if [ -e "../itests/$CHANGED_DIR" ]; then
echo "Single addon pull request: Building itest $CHANGED_DIR"
cd "../itests/$CHANGED_DIR"
mvn clean install -B 2>&1 |
stdbuf -o0 grep -vE "Download(ed|ing) from [a-z.]+: https:" | # Filter out Download(s)
stdbuf -o0 grep -v "target/code-analysis" | # filter out some debug code from reporting utility
tee -a $CDIR/.build.log
if [ $? -ne 0 ]; then
exit 1
fi
fi
else
echo "Build all"
echo "MAVEN_OPTS='-Xms1g -Xmx2g -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'" > ~/.mavenrc
mvnp clean install -B -DskipChecks=true -DskipTests=true
if [ $? -eq 0 ]; then
print_reactor_summary .build.log
else
tail -n 1000 .build.log
exit 1
fi
fi
Binary file not shown.
Binary file not shown.
11 changes: 8 additions & 3 deletions bundles/org.openhab.binding.allplay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@

<name>openHAB Add-ons :: Bundles :: AllPlay Binding</name>

<properties>
<bnd.importpackage>org.slf4j.impl.*;resolution:=optional,de.kaizencode.tchaikovsky.*</bnd.importpackage>
</properties>
<dependencies>
<dependency>
<groupId>org.openhab.osgiify</groupId>
<artifactId>de.kaizencode.tchaikovsky</artifactId>
<version>0.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<feature name="openhab-binding-allplay" description="AllPlay Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<bundle dependency="true">mvn:org.openhab.osgiify/de.kaizencode.tchaikovsky/0.0.1</bundle>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.allplay/${project.version}</bundle>
</feature>
</features>
8 changes: 4 additions & 4 deletions bundles/org.openhab.binding.amazondashbutton/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-core</artifactId>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.pcap4j.pcap4j-core</artifactId>
<version>1.6.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-packetfactory-static</artifactId>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.pcap4j.pcap4j-packetfactory-static</artifactId>
<version>1.6.6</version>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

<feature name="openhab-binding-amazondashbutton" description="Amazon Dash Button Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<feature prerequisite="true">wrap</feature>
<bundle dependency="true">mvn:net.java.dev.jna/jna/4.2.1</bundle>
<bundle dependency="true">wrap:mvn:org.pcap4j/pcap4j-core/1.6.6$Bundle-Name=Pcap4J%20Core&amp;Bundle-SymbolicName=org.pcap4j.pcap4j-core&amp;Bundle-Version=1.6.6</bundle>
<bundle dependency="true">wrap:mvn:org.pcap4j/pcap4j-packetfactory-static/1.6.6$Bundle-Name=Pcap4J%20Static%20Packet%20Factory&amp;Bundle-SymbolicName=org.pcap4j.pcap4j-packetfactory-static&amp;Bundle-Version=1.6.6</bundle>
<bundle dependency="true">mvn:org.openhab.osgiify/org.pcap4j.pcap4j-core/1.6.6</bundle>
<bundle>mvn:org.openhab.osgiify/org.pcap4j.pcap4j-packetfactory-static/1.6.6</bundle>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.amazondashbutton/${project.version}</bundle>
</feature>
</features>
12 changes: 8 additions & 4 deletions bundles/org.openhab.binding.amazonechocontrol/.classpath
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
Expand All @@ -19,6 +18,11 @@
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
Expand Down
18 changes: 1 addition & 17 deletions bundles/org.openhab.binding.amazonechocontrol/.project
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Loading