From: Giorgio Ravera Date: Sun, 15 Nov 2020 17:30:42 +0000 (+0100) Subject: Cleaned zigbee2mqtt package and updated README.md X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=9ae1c6667a9e42e03bee5c2864056bdaab85ab96;p=homeassistant.git Cleaned zigbee2mqtt package and updated README.md --- diff --git a/README.md b/README.md index d876e1a0..e07b9fbd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# Home Assistant Configuration [![Build Status](https://api.travis-ci.org/xraver/homeassistant.svg?branch=master)](https://travis-ci.org/github/xraver/homeassistant) [![Last Commit](https://img.shields.io/github/last-commit/xraver/homeassistant)](https://github.com/xraver/homeassistant/commits/master) [![License Status](https://img.shields.io/github/license/xraver/homeassistant)](https://github.com/xraver/homeassistant/blob/master/LICENSE) +# Home Assistant Configuration +[![Build Status][build-status-img]][build-status-url] +[![Last Commit][last-commit-img]][last-commit-url] +[![License Status][license-img]][license-url] +[![BuyMeCoffee][buymecoffee-img]][buymecoffee-url] + This repository contains the [Home Assistant](https://www.home-assistant.io/) configuration for my house: Casa Ravera-Testa. ## Running System @@ -42,6 +47,7 @@ All files are edited with [Visual Studio Code](https://code.visualstudio.com/). All files are tested using the latest stable version of Home Assistant using [Travis](https://travis-ci.com/github/xraver/homeassistant). ## To Do List +* Script review (Native types support for templates after release 117) * NFC * Lovelace: - Point and click on rooms @@ -62,6 +68,18 @@ All files are tested using the latest stable version of Home Assistant using [Tr [MIT](http://opensource.org/licenses/MIT) © Giorgio Ravera ## Donate -If you want to offer me a coffee: +[![BuyMeCoffee][buymecoffee-button]][buymecoffee-url] + +--- -[![paypal](https://www.paypalobjects.com/en_US/IT/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=giorgio.ravera%40gmail.com¤cy_code=EUR) +[build-status-img]: https://api.travis-ci.org/xraver/homeassistant.svg?branch=master +[build-status-url]: https://travis-ci.org/github/xraver/homeassistant +[license-img]: https://img.shields.io/github/license/xraver/homeassistant +[license-url]: LICENSE +[releases-img]: https://img.shields.io/github/v/release/xraver/homeassistant +[releases-url]: https://github.com/xraver/homeassistant/releases +[last-commit-img]: https://img.shields.io/github/last-commit/xraver/homeassistant +[last-commit-url]: https://github.com/xraver/homeassistant/commits/master +[buymecoffee-img]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg +[buymecoffee-button]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg +[buymecoffee-url]: https://www.buymeacoffee.com/raverag \ No newline at end of file diff --git a/packages/zigbee2mqtt.yaml b/packages/zigbee2mqtt.yaml index 4daec5a4..23401645 100644 --- a/packages/zigbee2mqtt.yaml +++ b/packages/zigbee2mqtt.yaml @@ -47,16 +47,6 @@ sensor: value_template: "{{ value_json.coordinator.meta.revision }}" icon: mdi:chip - ###################################################################### - # Sensor for Showing the new Zigbee2mqtt Version - ###################################################################### - # - platform: command_line - # name: "Zigbee2mqtt: nuova versione disponibile" - # command: 'curl https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest' - # scan_interval: 3600 - # value_template: '{{ value_json.tag_name }}' - # #icon: mdi:folder-download - ###################################################################### # Sensor for Showing the Channel ###################################################################### @@ -122,7 +112,7 @@ input_select: - error initial: info icon: mdi:format-list-bulleted - + ###################################################################### # Zigbee2mqtt Package - Input Text ###################################################################### @@ -196,7 +186,6 @@ script: topic: zigbee2mqtt/bridge/config/remove payload_template: "{{ states.input_text.zigbee2mqtt_remove.state | string }}" - ###################################################################### # Zigbee2mqtt Package - Automation ###################################################################### @@ -249,6 +238,25 @@ automation: - service: switch.turn_off entity_id: switch.zigbee2mqtt_abilita_join + ###################################################################### + # Automation to notify when a device joined zigbee2mqtt network + ###################################################################### + - id: "zigbee2mqtt_notification_on_successfull_interview" + alias: "Zigbee2mqtt: Device aggiunto alla rete Zigbee2mqtt" + trigger: + platform: mqtt + topic: 'zigbee2mqtt/bridge/log' + condition: + condition: template + value_template: '{{trigger.payload_json.type == "pairing" and trigger.payload_json.message == "interview_successful"}}' + action: + - service: persistent_notification.create + data_template: + title: "Device aggiunto alla rete Zigbee2mqtt" + message: "Name: {{trigger.payload_json.meta.friendly_name}}, + Vendor: {{trigger.payload_json.meta.vendor}}, + Description: {{trigger.payload_json.meta.description}}" + ###################################################################### # Automation to restart zigbee2mqtt to refresh sensor state ######################################################################