-# Home Assistant Configuration [](https://travis-ci.org/github/xraver/homeassistant) [](https://github.com/xraver/homeassistant/commits/master) [](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
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
[MIT](http://opensource.org/licenses/MIT) © Giorgio Ravera
## Donate
-If you want to offer me a coffee:
+[![BuyMeCoffee][buymecoffee-button]][buymecoffee-url]
+
+---
-[](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
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
- error\r
initial: info\r
icon: mdi:format-list-bulleted\r
- \r
+\r
######################################################################\r
# Zigbee2mqtt Package - Input Text\r
######################################################################\r
topic: zigbee2mqtt/bridge/config/remove\r
payload_template: "{{ states.input_text.zigbee2mqtt_remove.state | string }}"\r
\r
-\r
######################################################################\r
# Zigbee2mqtt Package - Automation\r
######################################################################\r
- 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