Advertisement
Guest User

Untitled

a guest
Apr 27th, 2019
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.20 KB | None | 0 0
  1. homeassistant:
  2.  
  3.   #packages: !include_dir_named packages
  4.   # Name of the location where Home Assistant is running
  5.   name: Home
  6.   # Location required to calculate the time the sun rises and sets
  7.   latitude: 42.2421889
  8.   longitude: 14.3937108
  9.   # Impacts weather/sunrise data (altitude above sea level in meters)
  10.   elevation: 330
  11.   # metric for Metric, imperial for Imperial
  12.   unit_system: metric
  13.   # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  14.   time_zone: Europe/Rome
  15.   # Customization file
  16.  
  17.   customize: !include customize.yaml
  18.   customize_glob: !include customize_glob.yaml
  19.   packages: !include_dir_named packages
  20.   whitelist_external_dirs:
  21.     - /home/homeassistant/.homeassistant/
  22.    
  23.  
  24.  
  25.  
  26. cover: !include covers.yaml
  27. group: !include groups.yaml
  28. automation: !include automations.yaml
  29. script: !include scripts.yaml
  30. zone: !include zones.yaml
  31. #automation: !include_dir_merge_list automations
  32. #script: !include_dir_merge_named scripts
  33. #sensor: !include sensors.yaml
  34. # Show links to resources in log and frontend
  35. # introduction:
  36.  
  37. # Enables the frontend
  38. frontend:
  39.   themes: !include_dir_merge_named themes/
  40. # Enables configuration UI
  41. config:
  42.  
  43. # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  44. # http:
  45. #   base_url: example.duckdns.org:8123
  46.  
  47. # Checks for available updates
  48. # Note: This component will send some information about your system to
  49. # the developers to assist with development of Home Assistant.
  50. # For more information, please see:
  51. # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
  52. #updater:
  53.   # Optional, allows Home Assistant developers to focus on popular components.
  54.   # include_used_components: true
  55.  
  56. # Discover some devices automatically
  57. discovery:
  58.   ignore:
  59.     - igd
  60.  
  61. recorder:
  62.   purge_interval: 1
  63.   purge_keep_days: 3
  64.   include:
  65.     domains:
  66.     - sensor
  67.     - climate
  68.     - binary_sensor
  69.     - light
  70.     - device_tracker
  71.   exclude:
  72.     entities:
  73.     - sensor.last_boot
  74.     - sensor.date
  75.     - sensor.time
  76.     - sensor.workday
  77.     - sun.sun
  78.     - sensor.moon
  79.     - sensor.fasi_lunari
  80.     - sensor.stagioni
  81.     - sensor.season
  82.  
  83. # Allows you to issue voice commands from the frontend in enabled browsers
  84. conversation:
  85.  
  86. # Enables support for tracking state changes over time
  87. history:
  88.  
  89. # View all events in a logbook
  90. logbook:
  91.  
  92. # Enables a map showing the location of tracked devices
  93. map:
  94.  
  95. # Track the sun
  96. sun:
  97.  
  98. # System Health
  99. system_health:
  100.  
  101. # stream
  102. stream:
  103.  
  104. # Sensors
  105. #sensor:
  106. weather:
  107.   - platform: darksky
  108.     api_key: da81aece40d0794fd3884199c8a5b1ae
  109.     latitude: 42.2421889 # mettete le vostre coordinate
  110.     longitude: 14.3937108 # mettete le vostre coordinate
  111.     #language: it
  112.     mode: daily
  113.  
  114.  
  115. # Text to speech
  116. tts:
  117.   - platform: google_translate
  118.     service_name: google_say
  119.     cache: true
  120.     cache_dir: /tmp/tts
  121.     time_memory: 300
  122.     base_url: https://ago1980.duckdns.org:8123
  123.     language: 'it'
  124.  
  125. # Cloud
  126. cloud:
  127.  
  128. lovelace:
  129.   mode: yaml
  130.  
  131. updater:
  132.    
  133. custom_updater:
  134.   show_installable: false
  135.   hide_sensor: false
  136.   track:
  137.   - components
  138.   - cards
  139.   card_urls:
  140.   - https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
  141.   - https://raw.githubusercontent.com/bramkragten/custom-ui/master/updater.json
  142.  
  143. #######google assistan#######
  144. google_assistant:
  145.   project_id: homeassistant-8cda8
  146.   api_key: AIzaSyDf0Z_7gjggEi49YHurM-nNChJzhkFs_iA
  147.   exposed_domains:
  148.     - light
  149.    # - group
  150.     - switch
  151.     - climate
  152.    
  153.  ########MEDIA PLAYER####
  154. cast:
  155.   media_player:
  156.     - host: 192.168.1.3
  157.  
  158. ####influxdb##########
  159. influxdb:
  160.   host: 192.168.1.8
  161.   include:
  162.     domains:
  163.       - sensor
  164.  
  165.  
  166. duckdns:
  167.   domain: ago1980
  168.   access_token: 87194178-d0da-4121-b265-97122f9660a2
  169.  
  170. http:
  171.   base_url: https://ago1980.duckdns.org:8213
  172.   ssl_certificate: /etc/letsencrypt/live/ago1980.duckdns.org/fullchain.pem
  173.   ssl_key: /etc/letsencrypt/live/ago1980.duckdns.org/privkey.pem
  174.  
  175.  
  176. mqtt:
  177.   broker: 192.168.1.8
  178.  
  179.  
  180. light:
  181.   - platform: mqtt
  182.     name: "Sonoff power"
  183.     state_topic: "stat/sonoff5/POWER"
  184.     command_topic: "cmnd/sonoff5/POWER"
  185.     availability_topic: "tele/sonoff5/LWT"
  186.     qos: 1
  187.     payload_on: "ON"
  188.     payload_off: "OFF"
  189.     payload_available: "Online"
  190.     payload_not_available: "Offline"
  191.     retain: false  
  192. ###################test################
  193.   - platform: mqtt
  194.     name: "Sonoff0 power"
  195.     state_topic: "stat/sonoff3/POWER1"
  196.     command_topic: "cmnd/sonoff3/POWER1"
  197.     availability_topic: "tele/sonoff3/LWT"
  198.     qos: 1
  199.     payload_on: "ON"
  200.     payload_off: "OFF"
  201.     payload_available: "Online"
  202.     payload_not_available: "Offline"
  203.     retain: false  
  204.  
  205.   - platform: mqtt
  206.     name: "Sonoff1 power"
  207.     state_topic: "stat/sonoff3/POWER2"
  208.     command_topic: "cmnd/sonoff3/POWER2"
  209.     availability_topic: "tele/sonoff3/LWT"
  210.     qos: 1
  211.     payload_on: "ON"
  212.     payload_off: "OFF"
  213.     payload_available: "Online"
  214.     payload_not_available: "Offline"
  215.     retain: false  
  216.  
  217. #######Switch##########
  218. switch:
  219.   - platform: template
  220.     switches:
  221.       infocamera:
  222.         value_template: "false"
  223.         turn_on:
  224.           service: script.infocamera
  225.           data:
  226.             entity_id: switch.2
  227.         turn_off:
  228.           service: script.infocamera
  229.           data:
  230.             entity_id: switch.1
  231.  
  232.        
  233.  
  234. ##########Sensori#######
  235. sensor:
  236.   - platform: mqtt
  237.     name: "Temperature"
  238.     state_topic: "tele/sonoff5/SENSOR"
  239.     unit_of_measurement: °C
  240.     value_template: '{{ value_json.DS18B20.Temperature }}'  
  241.  
  242.  
  243.   - platform: mqtt
  244.     state_topic: "ha/_temperature1"
  245.     name: "ds18"
  246.     unit_of_measurement: "°C"
  247.     qos: 1
  248.  
  249.  
  250.   - platform: command_line
  251.     name: CPU Temp
  252.     command: "cat /sys/class/thermal/thermal_zone0/temp"
  253.     unit_of_measurement: "°C"
  254.     value_template: '{{ value | multiply(0.001) | round(1) }}'
  255.  
  256.   - platform: template
  257.     sensors:
  258.       battery_ago1980:
  259.         friendly_name: ago1980
  260.         unit_of_measurement: '%'
  261.         value_template: >-
  262.             {%- if states.device_tracker.ago1980.attributes.battery %}
  263.                 {{ states.device_tracker.ago1980.attributes.battery|round }}
  264.             {% else %}
  265.                 {{ states.sensor.battery_ago1980.state }}
  266.             {%- endif %}
  267.         device_class: battery
  268.  
  269.   - platform: time_date
  270.     display_options:
  271.       - 'time'
  272.       - 'date'
  273.       - 'date_time'
  274.       - 'time_date'
  275.       - 'time_utc'
  276.       - 'beat'
  277.  
  278.   - platform: yr
  279.  
  280.   - platform: command_line
  281.     name: ssl_expiration
  282.     unit_of_measurement: Giorni
  283.     scan_interval: 43200 #secondi (ossia ogni 12 ore)
  284.     command: ssl-cert-check -b -c /etc/letsencrypt/live/ago1980.duckdns.org/cert.pem | awk '{ print $NF }'
  285.  
  286.  
  287.  
  288.   - platform: systemmonitor
  289.     resources:
  290.       - type: processor_use
  291.  
  292.       - type: disk_free
  293.         arg: /
  294.       - type: memory_free
  295.       - type: memory_use_percent
  296.       - type: ipv4_address
  297.         arg: wlan0
  298.  
  299.   - platform: uptime
  300.     name: Uptime
  301.     unit_of_measurement: minutes
  302.  
  303.  
  304.   - platform: template
  305.     sensors:
  306.       solarr_angle:
  307.         friendly_name: "Presa Xiaomi"
  308.         unit_of_measurement: 'W'
  309.         value_template: "{{ states.switch.plug_158d0001dc8bc1.attributes.load_power }}"
  310.  
  311.  
  312.   - platform: waze_travel_time
  313.     name: tragitto casa lavoro
  314.     origin: zone.home
  315.     destination: zone.lavoro
  316.     region: 'EU'
  317.  
  318.  
  319.   - platform: dnsip
  320.   # Resolve IP address of home-assistant.io via Google DNS
  321.   - platform: dnsip
  322.     hostname: ago1980.duckdns.org
  323.     name: IP server
  324.     resolver: 8.8.8.8
  325.  
  326.   - platform: command_line
  327.     name: mqtt_server
  328.     command: systemctl show mosquitto.service | awk -F= '/^SubState=/ {print $2}'
  329.     scan_interval: 60
  330.  
  331.   - platform: mqtt
  332.     name: "Tensione"
  333.     state_topic: "tele/Pzem/SENSOR"
  334.     value_template: "{{ value_json['ENERGY'].Voltage }}"
  335.     unit_of_measurement: "V"
  336.  
  337.   - platform: mqtt
  338.     name: "Corrente"
  339.     state_topic: "tele/Pzem/SENSOR"
  340.     value_template: "{{ value_json['ENERGY'].Current }}"
  341.     unit_of_measurement: "A"
  342.  
  343.   - platform: mqtt
  344.     name: "Potenza Ist."
  345.     state_topic: "tele/Pzem/SENSOR"
  346.     value_template: "{{ value_json['ENERGY'].Power }}"
  347.     unit_of_measurement: "W"
  348.  
  349.   - platform: mqtt
  350.     name: "Potenza Factor"
  351.     state_topic: "tele/Pzem/SENSOR"
  352.     value_template: "{{ value_json['ENERGY'].Factor }}"
  353.     unit_of_measurement: " "
  354.  
  355.   - platform: mqtt
  356.     name: "Energia Oggi"
  357.     state_topic: "tele/Pzem/SENSOR"
  358.     value_template: "{{ value_json['ENERGY'].Today }}"
  359.     unit_of_measurement: "kWh"
  360.  
  361.   - platform: mqtt    
  362.     name: "Energia Ieri"
  363.     state_topic: "tele/Pzem/SENSOR"
  364.     unit_of_measurement: "kWh"
  365.     value_template: "{{ value_json['ENERGY'].Yesterday }}"
  366.  
  367.   - platform: mqtt    
  368.     name: "Energia Totale"
  369.     state_topic: "tele/Pzem/SENSOR"
  370.     unit_of_measurement: "kWh"
  371.     value_template: "{{ value_json['ENERGY'].Total }}"
  372.  
  373.  
  374.   - platform: template
  375.     sensors:
  376.       enel:
  377.         friendlynametemplate: "enel"
  378.         icon_template: mdi:coin
  379.         valuetemplate: "{{((states.sensor.consumo_totale_mensile.state | float) + (30.000 | float)) | round(2)}}"
  380.         unitofmeasurement: 'khw'
  381.  
  382. ###########################################################################################
  383.  
  384.  
  385. speedtestdotnet:
  386.   scan_interval:
  387.     hours: 5
  388.     #minutes: 30
  389.   monitored_conditions:
  390.     - ping
  391.     - download
  392.     - upload
  393.  
  394. xiaomi_aqara:
  395.   gateways:
  396.     - host: '192.168.1.5'
  397.       mac: 78:11:dc:af:30:30
  398.       key: btutf73qptnx8f7d
  399.  
  400. mysensors:
  401.   gateways:
  402.     - device: '192.168.1.8'
  403.       persistence_file: '/home/homeassistant/.homeassistant/mysensors.json'
  404.       tcp_port: 5003
  405.   optimistic: false  
  406.   persistence: true  
  407.   version: 2.3.1
  408.  
  409.   #####TELEGRAM#####
  410. telegram_bot:
  411.   - platform: polling
  412.     api_key: 392124673:AAHWjPB5WnwWoTPEh0H-X0Mc9ykfgLFQ4iU
  413.     allowed_chat_ids:
  414.       - 360307101
  415.  
  416. notify:
  417.   - name: telegram
  418.     platform: telegram
  419.     chat_id: 360307101
  420.  
  421. #####IPCAM#####
  422. ffmpeg:    
  423. camera 1:
  424.   - platform: ffmpeg
  425.     name: Test1
  426.     input: rtsp://192.168.1.170:1081/mac/live/ch0?admin:mario2015
  427.  
  428. camera 2:
  429.   - platform: ffmpeg
  430.     name: Test
  431.     input: rtsp://192.168.1.200:554/onvif1
  432.  
  433. camera 3:
  434.   - platform: ffmpeg
  435.     name: Test2
  436.     input: rtsp://192.168.1.168:554/onvif1
  437.  
  438. camera:
  439.   - platform: generic
  440.     still_image_url: https://api.sat24.com/animated/IT/infraPolair/3/W_dot_%20Europe%20Standard%20Time/9263758  
  441.     name: Tempo Infrared
  442.   - platform: generic
  443.     still_image_url: https://api.sat24.com/animated/IT/rainTMC/3/W_dot_%20Europe%20Standard%20Time/6012921  
  444.     name: Rain
  445.  
  446. #############Tracker###########
  447. device_tracker:
  448.   - platform: life360
  449.     username: agorusso80@gmail.com
  450.     password: mario2015
  451.  
  452.   - platform: nmap_tracker
  453.     hosts: 192.168.1.1/24    
  454.     interval_seconds: 65
  455.  
  456. history_graph:
  457.   gr1:
  458.     name: Lights Graph
  459.     entities:
  460.       - sensor.temperature_158d00022caebe
  461.       - sensor.temperature
  462.     hours_to_show: 72
  463.     refresh: 300
  464.  
  465. sonoff:
  466.   username: agorusso80@gmail.com
  467.   password: mario2015
  468.   scan_interval: 3
  469.   grace_period: 600
  470.   api_region: 'eu'
  471.  
  472.  
  473. ############test################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement