]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Cleaned zigbee2mqtt package and updated README.md
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 15 Nov 2020 17:30:42 +0000 (18:30 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 15 Nov 2020 17:30:42 +0000 (18:30 +0100)
README.md
packages/zigbee2mqtt.yaml

index d876e1a0738a3f3b7dc899e6fb1ba9bbd247d76a..e07b9fbd7f5f2bd54e405045dbe64c0d70444e6a 100644 (file)
--- 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&currency_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
index 4daec5a484e50699ad0f204eb4fcd37ac4353f52..23401645ec46d285a78f7de6f198778f8f76e172 100644 (file)
@@ -47,16 +47,6 @@ sensor:
     value_template: "{{ value_json.coordinator.meta.revision }}"\r
     icon: mdi:chip\r
 \r
-  ######################################################################\r
-  # Sensor for Showing the new Zigbee2mqtt Version\r
-  ######################################################################\r
-  #  - platform: command_line\r
-  #    name: "Zigbee2mqtt: nuova versione disponibile"\r
-  #    command: 'curl https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest'\r
-  #    scan_interval: 3600\r
-  #    value_template: '{{ value_json.tag_name }}'\r
-  #    #icon: mdi:folder-download\r
-\r
   ######################################################################\r
   # Sensor for Showing the Channel\r
   ######################################################################\r
@@ -122,7 +112,7 @@ input_select:
       - error\r
     initial: info\r
     icon: mdi:format-list-bulleted\r
-    \r
+\r
 ######################################################################\r
 # Zigbee2mqtt Package - Input Text\r
 ######################################################################\r
@@ -196,7 +186,6 @@ script:
         topic: zigbee2mqtt/bridge/config/remove\r
         payload_template: "{{ states.input_text.zigbee2mqtt_remove.state | string }}"\r
 \r
-\r
 ######################################################################\r
 # Zigbee2mqtt Package - Automation\r
 ######################################################################\r
@@ -249,6 +238,25 @@ automation:
       - service: switch.turn_off\r
         entity_id: switch.zigbee2mqtt_abilita_join\r
 \r
+  ######################################################################\r
+  # Automation to notify when a device joined zigbee2mqtt network\r
+  ######################################################################\r
+  - id: "zigbee2mqtt_notification_on_successfull_interview"\r
+    alias: "Zigbee2mqtt: Device aggiunto alla rete Zigbee2mqtt"\r
+    trigger:\r
+      platform: mqtt\r
+      topic: 'zigbee2mqtt/bridge/log'\r
+    condition:\r
+      condition: template\r
+      value_template: '{{trigger.payload_json.type == "pairing" and trigger.payload_json.message == "interview_successful"}}'\r
+    action:\r
+      - service: persistent_notification.create\r
+        data_template:\r
+          title: "Device aggiunto alla rete Zigbee2mqtt"\r
+          message: "Name: {{trigger.payload_json.meta.friendly_name}},\r
+                    Vendor: {{trigger.payload_json.meta.vendor}},\r
+                    Description: {{trigger.payload_json.meta.description}}"\r
+\r
   ######################################################################\r
   # Automation to restart zigbee2mqtt to refresh sensor state\r
   ######################################################################\r