Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit 9b0c226

Browse files
Merge master into dependabot/npm_and_yarn/master/material-design-icons-iconfont-6.1.0
2 parents e2855ce + 9f1107b commit 9b0c226

File tree

17 files changed

+451
-90
lines changed

17 files changed

+451
-90
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: automerge
25-
uses: 'pascalgn/automerge-action@v0.11.0'
25+
uses: 'pascalgn/automerge-action@v0.12.0'
2626
env:
2727
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
path: open-zwave
2727

2828
- name: Cache openzwave
29-
uses: actions/cache@v1
29+
uses: actions/cache@v2.1.2
3030
with:
3131
path: open-zwave
3232
key: ${{ hashFiles('open-zwave/.git/refs/heads/master') }}
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Cache node modules
5050
id: cache-node-modules
51-
uses: actions/cache@v1
51+
uses: actions/cache@v2.1.2
5252
with:
5353
path: node_modules
5454
key: ${{ matrix['node-version'] }}-npm-${{ hashFiles('package-lock.json') }}
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Cache build
6565
id: cache-build
66-
uses: actions/cache@v1
66+
uses: actions/cache@v2.1.2
6767
with:
6868
path: dist
6969
key: ${{ matrix['node-version'] }}-cache-build-${{ hashFiles('build/*') }}-${{ hashFiles('src/*') }}-${{ hashFiles('static/*') }}-${{ hashFiles('package-lock.json') }}

.github/workflows/dockerbuild.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,27 @@ jobs:
2525
password: ${{ secrets.DOCKER_PASSWORD }}
2626

2727
- name: Prepare
28+
id: prepare
2829
run: |
2930
DOCKER_REPO=robertslando/zwave2mqtt
31+
TAGS=${DOCKER_REPO}:sha-${GITHUB_SHA}
32+
3033
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
31-
TAGS="${DOCKER_REPO}:dev\n"
34+
TAGS=$TAGS,${DOCKER_REPO}:dev
3235
fi
3336
if [ "$GITHUB_EVENT_NAME" == "release" ]; then
34-
TAGS="${TAGS}${DOCKER_REPO}:latest\n"
35-
TAGS="${TAGS}${DOCKER_REPO}:$(echo ${GITHUB_REF} | sed "s/refs\/tags\/v//")\n"
37+
TAGS=$TAGS,${DOCKER_REPO}:latest
38+
TAGS=$TAGS,${DOCKER_REPO}:$(echo ${GITHUB_REF} | sed "s/refs\/tags\/v//") >> ./TAGS
3639
fi
3740
38-
TAGS="${TAGS}${DOCKER_REPO}:sha-${GITHUB_SHA}"
39-
40-
echo TAGS="${TAGS}" >> $GITHUB_ENV
41+
echo ::set-output name=TAGS::${TAGS}
4142
echo DOCKER_REPO="${DOCKER_REPO}" >> $GITHUB_ENV
4243
4344
- name: build+push
4445
uses: docker/build-push-action@v2
4546
with:
4647
cache-from: type=registry,ref=${{ env.DOCKER_REPO }}:sha-${{ env.GITHUB_SHA }}
47-
platforms: linux/arm64,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386
48+
platforms: linux/arm64,linux/amd64,linux/arm/v6,linux/arm/v7
4849
file: docker/Dockerfile
4950
push: ${{ github.event_name != 'pull_request' }}
50-
tags: ${{ env.TAGS }}
51+
tags: ${{ steps.prepare.outputs.TAGS }}

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,37 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v4.0.5](https://github.com/OpenZWave/Zwave2Mqtt/compare/v4.0.4...v4.0.5)
8+
9+
> 16 October 2020
10+
11+
- chore: audit fix high severity [`#794`](https://github.com/OpenZWave/Zwave2Mqtt/pull/794)
12+
- fix: Rows per page not set correctly [`#793`](https://github.com/OpenZWave/Zwave2Mqtt/pull/793)
13+
- feat: support more ENV VARS for configuration [`#788`](https://github.com/OpenZWave/Zwave2Mqtt/pull/788)
14+
- fix: typo in comment [`#789`](https://github.com/OpenZWave/Zwave2Mqtt/pull/789)
15+
- docs: libudev.h shouldn't be required with ozw 1.6 [`#786`](https://github.com/OpenZWave/Zwave2Mqtt/pull/786)
16+
- feat: improve HASS discovery of cover devices [`#783`](https://github.com/OpenZWave/Zwave2Mqtt/pull/783)
17+
- chore(deps): bump actions/cache from v1 to v2.1.2 [`#780`](https://github.com/OpenZWave/Zwave2Mqtt/pull/780)
18+
- feat(hass): adding CT100 using 2GIG template [`#776`](https://github.com/OpenZWave/Zwave2Mqtt/pull/776)
19+
- chore(ci): remove linux/386 to fix dockerbuild [`#782`](https://github.com/OpenZWave/Zwave2Mqtt/pull/782)
20+
- Update README.md [`#774`](https://github.com/OpenZWave/Zwave2Mqtt/pull/774)
21+
- tidy up the docker build [`#769`](https://github.com/OpenZWave/Zwave2Mqtt/pull/769)
22+
- dependabot update github actions and docker [`#766`](https://github.com/OpenZWave/Zwave2Mqtt/pull/766)
23+
- close stale issues+prs [`#756`](https://github.com/OpenZWave/Zwave2Mqtt/pull/756)
24+
- Create Dependabot config file [`#566`](https://github.com/OpenZWave/Zwave2Mqtt/pull/566)
25+
- docker: update ozw to 1.6.392 [`#751`](https://github.com/OpenZWave/Zwave2Mqtt/pull/751)
26+
- docker: update ozw to version 1.6.1382 [`#748`](https://github.com/OpenZWave/Zwave2Mqtt/pull/748)
27+
- feat(hass): Eurotronic Stella Z thermostat [`#746`](https://github.com/OpenZWave/Zwave2Mqtt/pull/746)
28+
- fix: Rows per page not set correctly (#793) [`#792`](https://github.com/OpenZWave/Zwave2Mqtt/issues/792)
29+
- fix tag list composition [`55e0dc0`](https://github.com/OpenZWave/Zwave2Mqtt/commit/55e0dc0b69bd212130305989793037c33e588383)
30+
- fix tag list composition [`50cf1ad`](https://github.com/OpenZWave/Zwave2Mqtt/commit/50cf1add8ed6d52b90898c0fcd78cc9f90d5a63f)
31+
- fix tag list composition [`0e95d46`](https://github.com/OpenZWave/Zwave2Mqtt/commit/0e95d46235559c735e142b908c6f55a14a5753b5)
32+
- fix tag list composition [`cb1f337`](https://github.com/OpenZWave/Zwave2Mqtt/commit/cb1f337971daf151f2173fe1095f895291284f0a)
33+
- fix tag list composition [`8221a56`](https://github.com/OpenZWave/Zwave2Mqtt/commit/8221a56c67839cbd262127e21ed78962efc2c91a)
34+
- fix tag list composition [`0857c43`](https://github.com/OpenZWave/Zwave2Mqtt/commit/0857c43639340dee42f203e27fe205d5599c5f0f)
35+
- fix tag list composition [`970b82a`](https://github.com/OpenZWave/Zwave2Mqtt/commit/970b82acb50c1eba93a7b7c79ab524a503774fa6)
36+
- fix tag list composition [`5569669`](https://github.com/OpenZWave/Zwave2Mqtt/commit/55696698bc8bc5e930180aa2dfa005ece8d0116b)
37+
738
#### [v4.0.4](https://github.com/OpenZWave/Zwave2Mqtt/compare/v4.0.3...v4.0.4)
839

940
> 28 September 2020
@@ -22,6 +53,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2253
- chore(deps): upgrade vuetify from 2.3.4 to 2.3.5 [`#667`](https://github.com/OpenZWave/Zwave2Mqtt/pull/667)
2354
- chore(deps): upgrade serialport from 9.0.0 to 9.0.1 [`#695`](https://github.com/OpenZWave/Zwave2Mqtt/pull/695)
2455
- docs: fix anchor link in README [`#696`](https://github.com/OpenZWave/Zwave2Mqtt/pull/696)
56+
- Release 4.0.4 [`2c5f939`](https://github.com/OpenZWave/Zwave2Mqtt/commit/2c5f939fd8bbaba5d6b66315cffa5118c90e8b70)
2557

2658
#### [v4.0.3](https://github.com/OpenZWave/Zwave2Mqtt/compare/v4.0.2...v4.0.3)
2759

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ After a [discussion](https://github.com/OpenZWave/Zwave2Mqtt/issues/201) with Op
8282
- [Mesh](#mesh)
8383
- [Debug](#debug)
8484
- [Health check endpoints](#health-check-endpoints)
85+
- [Environment variables](#environment-variables)
8586
- [:question: FAQ](#-faq)
8687
- [:pray: Thanks](#-thanks)
8788
- [:pencil: TODOs](#-todos)
@@ -111,19 +112,16 @@ For more info about docker check [here](docker/README.md)
111112
### Kubernetes way
112113

113114
```bash
114-
kubectl apply -k https://raw.githubusercontent.com/openzwave/zwave2mqtt/master/kustomize.yml
115+
kubectl apply -k https://raw.githubusercontent.com/OpenZWave/Zwave2Mqtt/master/kustomization.yaml
115116
```
116117

117118
> You will almost certainly need to instead use this as a base, and then layer on top patches or resource customizations to your needs or just copy all the resources from the [kubernetes resources](./kubernetes) directory of this repo
118119
119120
### NodeJS or PKG version
120121

121-
1. Firstly you need to install [Open-Zwave](https://github.com/OpenZWave/open-zwave) library on your system.
122-
123-
If you are using Ubuntu:
122+
1. Firstly you need to install the [Open-Zwave](https://github.com/OpenZWave/open-zwave) library on your system.
124123

125124
```sh
126-
sudo apt-get install libudev-dev git
127125
cd ~
128126
git clone https://github.com/OpenZWave/open-zwave.git
129127
cd open-zwave && make && sudo make install
@@ -807,6 +805,17 @@ Remember to add the header: `Accept: text/plain` to your request.
807805
808806
Example: `curl localhost:8091/health/zwave -H "Accept: text/plain"`
809807
808+
## Environment variables
809+
810+
_**Note**: Each one of the following environment variables corresponds to their respective options in the UI settings and options saved in the UI take presence over these environment variables._
811+
812+
- `OZW_NETWORK_KEY`
813+
- `OZW_SAVE_CONFIG`
814+
- `OZW_POLL_INTERVAL`
815+
- `OZW_AUTO_UPDATE_CONFIG`
816+
- `OZW_CONFIG_PATH`
817+
- `OZW_ASSUME_AWAKE`
818+
810819
## :question: FAQ
811820
812821
> A: Why when I add a value to Gateway values table I don't see all my devices?

hass/configurations.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,17 @@ module.exports = {
226226
},
227227
cover_position: {
228228
type: 'cover',
229-
object_id: 'cover',
229+
object_id: 'position',
230230
discovery_payload: {
231+
state_topic: true,
231232
command_topic: true,
232233
position_topic: true,
233234
set_position_topic: true,
234-
set_position_template: '{ "value": {{ position }} }',
235-
value_template: '{{ value_json.value }}',
236-
state_topic: false
235+
value_template: '{{ value_json.value | round(0) }}',
236+
position_open: 99,
237+
position_closed: 0,
238+
payload_open: '99',
239+
payload_close: '0'
237240
}
238241
},
239242

hass/devices.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const FAN_DIMMER = {
2222
}
2323
}
2424

25-
// Radio Thermostat / 2GIG CT32 and CT101
25+
// Radio Thermostat / 2GIG CT32, CT100 and CT101
2626
const THERMOSTAT_2GIG = {
2727
type: 'climate',
2828
object_id: 'thermostat',
@@ -337,12 +337,14 @@ module.exports = {
337337
'99-12340-18756': [FAN_DIMMER], // GE 1724 Dimmer
338338
'99-12593-18756': [FAN_DIMMER], // GE 1724 Dimmer
339339
'152-12-25857': [THERMOSTAT_2GIG], // Radio Thermostat / 2GIG CT101
340+
'152-263-25601': [THERMOSTAT_2GIG], // Radio Thermostat / 2GIG CT100
340341
'152-256-8194': [THERMOSTAT_2GIG], // Radio Thermostat / 2GIG CT32
341342
'271-4096-770': [COVER], // Fibaro FGS222
342343
'328-1-1': [STELLA_ZWAVE],
343344
'328-1-3': [SPIRIT_ZWAVE_PLUS],
344345
'328-2-3': [SPIRIT_ZWAVE_PLUS],
345346
'328-3-3': [SPIRIT_ZWAVE_PLUS],
346-
'345-82-3': [COVER], // Qubin0 flush shutter
347-
'622-23089-17235': [COVER] // Graber/Bali/Spring Fashion Covers
347+
'345-82-3': [COVER], // Qubino flush shutter
348+
'622-23089-17235': [COVER], // Graber/Bali/Spring Fashion Covers
349+
'881-21-2': [SPIRIT_ZWAVE_PLUS] // Eurotronic Spirit / Aeotec ZWA021
348350
}

0 commit comments

Comments
 (0)