123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- name: zwavejs2mqtt
- base: core20
- version: 'v5.0.1'
- summary: Fully configurable Zwave to MQTT Gateway and Control Panel.
- description: |
- - Configurable Zwave to Mqtt Gateway
- - Home Assistant integration (beta)
- - Zwave Control Panel:
- - Nodes management: check all nodes discovered in the z-wave network, send/receive nodes values updates directly from the UI and send action to the nodes and controller for diagnostics and network heal Custom Node naming and Location: Starting from v1.3.0 nodes name and location are stored in a JSON file named nodes.json. This because not all nodes have native support for naming and location features (#45). This change is back compatible with older versions of this package: on startup it will get all nodes names and location from the zwcfg_homeHEX.xml file (if present) and create the new nodes.json file based on that. This file can be imported/exported from the UI control panel with the import/export buttons placed on the top of nodes table, on the right of controller actions select.
- - Firmware updates: You are able to send firmware updates to your devices using the UI, just select the controller action Begin Firmware Update
- - Groups associations: create associations between nodes (also supports multi-instance associations, need to use last version of zwave-js)
- - Custom scenes management
- - Log debug in UI
- - Mesh graph showing devices neighbors
- grade: stable # must be 'stable' to release into candidate/stable channels
- confinement: strict # use 'strict' once you have the right plugs and slots
- assumes:
- - command-chain
- architectures:
- - build-on: amd64
- - build-on: arm64
- - build-on: armhf
- #- build-on: ppc64el
- apps:
- zwavejs2mqtt:
- daemon: simple
- restart-condition: always
- environment:
- STORE_DIR: $SNAP_DATA
- DAEMONIZED: 1
- command: usr/lib/zwavejs2mqtt/bin/www
- command-chain:
- - helper/env-wrapper
- plugs:
- - network
- - network-bind
- - raw-usb
- - serial-port
- - hardware-observe
- exec:
- environment:
- STORE_DIR: $SNAP_DATA
- command: usr/lib/zwavejs2mqtt/bin/www
- command-chain:
- - helper/env-wrapper
- plugs:
- - network
- - network-bind
- - raw-usb
- - serial-port
- - hardware-observe
- help:
- command: helper/env-wrapper --help
- enable:
- command: bin/daemonize
- disable:
- command: bin/de-daemonize
- restart:
- command: bin/restart
- layout:
- $SNAP/usr/lib/zwavejs2mqtt/node_modules/@zwave-js/config/config:
- bind: $SNAP/usr/lib/zwavejs2mqtt/node_modules/@zwave-js/config/config
- parts:
- zwavejs2mqtt:
- after: [nodejs]
- plugin: npm
- source: https://github.com/zwave-js/zwavejs2mqtt.git
- #source-branch: "fix#1274"
- source-tag: $SNAPCRAFT_PROJECT_VERSION
- npm-node-version: '15.14.0'
- build-packages:
- - gcc
- - build-essential
- stage-snaps:
- - jq
- stage-packages:
- - git
- - udev
- - rsync
- override-build: |
- set -ex
- if [ -n "${http_proxy-}" ]; then
- export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
- export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
- fi
- npm config set unsafe-perm true
- npm install npm@latest detect-libc
- npm run build
- chmod +x $SNAPCRAFT_PART_BUILD/bin/www
- cp -rf $SNAPCRAFT_PART_BUILD $SNAPCRAFT_PART_INSTALL/usr/lib/zwavejs2mqtt
- stage:
- - -usr/lib/zwavejs2mqtt/kubernetes
- - -usr/lib/zwavejs2mqtt/kustomization.yaml
- - -usr/lib/zwavejs2mqtt/docker
- - -usr/lib/zwavejs2mqtt/.dockerignore
- - -usr/lib/zwavejs2mqtt/.markdown*
- organize:
- usr/lib/zwavejs2mqtt/node_modules/@zwave-js/config/config: snap/zwave-js/config
- nodejs:
- plugin: dump
- source:
- - on amd64: https://nodejs.org/dist/v15.14.0/node-v15.14.0-linux-x64.tar.gz
- - on arm64: https://nodejs.org/dist/v15.14.0/node-v15.14.0-linux-arm64.tar.gz
- - on armhf: https://nodejs.org/dist/v15.14.0/node-v15.14.0-linux-armv7l.tar.gz
- stage-packages:
- - on armhf:
- - libatomic1
- organize:
- '*.md' : nodejs/
- LICENSE : nodejs/
- prime:
- - -include
- - -share
- local:
- plugin: dump
- source: src/
- stage-packages:
- - uuid
- organize:
- hooks: snap/hooks
|