name: zwavejs2mqtt base: core20 version: 'v5.10.0' 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 confinement: strict license: MIT assumes: - command-chain architectures: # - build-on: amd64 - build-on: arm64 # - build-on: armhf apps: zwavejs2mqtt: daemon: simple restart-condition: always environment: STORE_DIR: $SNAP_DATA ZWAVEJS_EXTERNAL_CONFIG: $SNAP_DATA/.ext-config DAEMONIZED: 1 command: lib/node_modules/yarn/bin/yarn start command-chain: - helper/env-wrapper plugs: - network - network-bind - raw-usb - serial-port - hardware-observe exec: environment: STORE_DIR: $SNAP_DATA ZWAVEJS_EXTERNAL_CONFIG: $SNAP_DATA/.ext-config command: lib/node_modules/yarn/bin/yarn start 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: /usr/local/share/.cache/yarn: bind: $SNAP/.cache/yarn /usr/local/share/.yarn: symlink: $SNAP/lib/node_modules parts: zwavejs2mqtt: after: [nodejs] plugin: dump source: https://github.com/zwave-js/zwavejs2mqtt.git #source-branch: "fix#1762" source-tag: $SNAPCRAFT_PROJECT_VERSION build-packages: - gcc - build-essential - jq override-build: | set -x # Used when testing an unreleased version of Z-wavejs sed -i 's/"zwave-js".*$/"zwave-js"\: "8.5.1-beta.2-pr-3573-ee58966"/g' ${SNAPCRAFT_PART_BUILD}/package.json if [ -n "${http_proxy-}" ]; then yarn config set httpProxy "${http_proxy}" fi if [ -n "${https_proxy-}" ]; then yarn config set httpsProxy "${https_proxy}" fi yarn install yarn run build \ && yarn remove $(cat "${SNAPCRAFT_PART_INSTALL}/package.json" | jq -r '.devDependencies | keys | join(" ")') \ && mkdir -p "${SNAPCRAFT_PART_INSTALL}/lib/node_modules" \ && cp --archive --link --no-dereference "${SNAPCRAFT_PART_BUILD}" \ "${SNAPCRAFT_PART_INSTALL}/lib/node_modules/zwavejs2mqtt" \ organize: lib/node_modules/zwavejs2mqtt/dist: lib/node_modules/zwavejs2mqtt/server/dist lib/node_modules/zwavejs2mqtt/views: lib/node_modules/zwavejs2mqtt/server/views filesets: zwavejs2mqtt-include: - lib/node_modules/zwavejs2mqtt/.git - lib/node_modules/zwavejs2mqtt/*.md - lib/node_modules/zwavejs2mqtt/LICENSE - lib/node_modules/zwavejs2mqtt/node_modules - lib/node_modules/zwavejs2mqtt/server - lib/node_modules/zwavejs2mqtt/package.json - lib/node_modules/zwavejs2mqtt/.yarn - lib/node_modules/zwavejs2mqtt/yarn.lock - lib/node_modules/zwavejs2mqtt/.yarnrc.yml stage: - $zwavejs2mqtt-include dependencies: plugin: nil stage-snaps: - jq - yq stage-packages: - git - udev - rsync override-stage: snapcraftctl stage 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 override-stage: | npm install --global yarn #yarn set version berry snapcraftctl stage organize: '*.md' : nodejs/ LICENSE : nodejs/ prime: - -include - -share local: plugin: dump source: src/ stage-packages: - uuid organize: hooks: snap/hooks