Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homeassistant:
- #packages: !include_dir_named packages
- # Name of the location where Home Assistant is running
- name: Home
- # Location required to calculate the time the sun rises and sets
- latitude: 42.2421889
- longitude: 14.3937108
- # Impacts weather/sunrise data (altitude above sea level in meters)
- elevation: 330
- # metric for Metric, imperial for Imperial
- unit_system: metric
- # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- time_zone: Europe/Rome
- # Customization file
- customize: !include customize.yaml
- customize_glob: !include customize_glob.yaml
- packages: !include_dir_named packages
- whitelist_external_dirs:
- - /home/homeassistant/.homeassistant/
- cover: !include covers.yaml
- group: !include groups.yaml
- automation: !include automations.yaml
- script: !include scripts.yaml
- zone: !include zones.yaml
- #automation: !include_dir_merge_list automations
- #script: !include_dir_merge_named scripts
- #sensor: !include sensors.yaml
- # Show links to resources in log and frontend
- # introduction:
- # Enables the frontend
- frontend:
- themes: !include_dir_merge_named themes/
- # Enables configuration UI
- config:
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # http:
- # base_url: example.duckdns.org:8123
- # Checks for available updates
- # Note: This component will send some information about your system to
- # the developers to assist with development of Home Assistant.
- # For more information, please see:
- # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
- #updater:
- # Optional, allows Home Assistant developers to focus on popular components.
- # include_used_components: true
- # Discover some devices automatically
- discovery:
- ignore:
- - igd
- recorder:
- purge_interval: 1
- purge_keep_days: 3
- include:
- domains:
- - sensor
- - climate
- - binary_sensor
- - light
- - device_tracker
- exclude:
- entities:
- - sensor.last_boot
- - sensor.date
- - sensor.time
- - sensor.workday
- - sun.sun
- - sensor.moon
- - sensor.fasi_lunari
- - sensor.stagioni
- - sensor.season
- # Allows you to issue voice commands from the frontend in enabled browsers
- conversation:
- # Enables support for tracking state changes over time
- history:
- # View all events in a logbook
- logbook:
- # Enables a map showing the location of tracked devices
- map:
- # Track the sun
- sun:
- # System Health
- system_health:
- # stream
- stream:
- # Sensors
- #sensor:
- weather:
- - platform: darksky
- api_key: da81aece40d0794fd3884199c8a5b1ae
- latitude: 42.2421889 # mettete le vostre coordinate
- longitude: 14.3937108 # mettete le vostre coordinate
- #language: it
- mode: daily
- # Text to speech
- tts:
- - platform: google_translate
- service_name: google_say
- cache: true
- cache_dir: /tmp/tts
- time_memory: 300
- base_url: https://ago1980.duckdns.org:8123
- language: 'it'
- # Cloud
- cloud:
- lovelace:
- mode: yaml
- updater:
- custom_updater:
- show_installable: false
- hide_sensor: false
- track:
- - components
- - cards
- card_urls:
- - https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
- - https://raw.githubusercontent.com/bramkragten/custom-ui/master/updater.json
- #######google assistan#######
- google_assistant:
- project_id: homeassistant-8cda8
- api_key: AIzaSyDf0Z_7gjggEi49YHurM-nNChJzhkFs_iA
- exposed_domains:
- - light
- # - group
- - switch
- - climate
- ########MEDIA PLAYER####
- cast:
- media_player:
- - host: 192.168.1.3
- ####influxdb##########
- influxdb:
- host: 192.168.1.8
- include:
- domains:
- - sensor
- duckdns:
- domain: ago1980
- access_token: 87194178-d0da-4121-b265-97122f9660a2
- http:
- base_url: https://ago1980.duckdns.org:8213
- ssl_certificate: /etc/letsencrypt/live/ago1980.duckdns.org/fullchain.pem
- ssl_key: /etc/letsencrypt/live/ago1980.duckdns.org/privkey.pem
- mqtt:
- broker: 192.168.1.8
- light:
- - platform: mqtt
- name: "Sonoff power"
- state_topic: "stat/sonoff5/POWER"
- command_topic: "cmnd/sonoff5/POWER"
- availability_topic: "tele/sonoff5/LWT"
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- payload_available: "Online"
- payload_not_available: "Offline"
- retain: false
- ###################test################
- - platform: mqtt
- name: "Sonoff0 power"
- state_topic: "stat/sonoff3/POWER1"
- command_topic: "cmnd/sonoff3/POWER1"
- availability_topic: "tele/sonoff3/LWT"
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- payload_available: "Online"
- payload_not_available: "Offline"
- retain: false
- - platform: mqtt
- name: "Sonoff1 power"
- state_topic: "stat/sonoff3/POWER2"
- command_topic: "cmnd/sonoff3/POWER2"
- availability_topic: "tele/sonoff3/LWT"
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- payload_available: "Online"
- payload_not_available: "Offline"
- retain: false
- #######Switch##########
- switch:
- - platform: template
- switches:
- infocamera:
- value_template: "false"
- turn_on:
- service: script.infocamera
- data:
- entity_id: switch.2
- turn_off:
- service: script.infocamera
- data:
- entity_id: switch.1
- ##########Sensori#######
- sensor:
- - platform: mqtt
- name: "Temperature"
- state_topic: "tele/sonoff5/SENSOR"
- unit_of_measurement: °C
- value_template: '{{ value_json.DS18B20.Temperature }}'
- - platform: mqtt
- state_topic: "ha/_temperature1"
- name: "ds18"
- unit_of_measurement: "°C"
- qos: 1
- - platform: command_line
- name: CPU Temp
- command: "cat /sys/class/thermal/thermal_zone0/temp"
- unit_of_measurement: "°C"
- value_template: '{{ value | multiply(0.001) | round(1) }}'
- - platform: template
- sensors:
- battery_ago1980:
- friendly_name: ago1980
- unit_of_measurement: '%'
- value_template: >-
- {%- if states.device_tracker.ago1980.attributes.battery %}
- {{ states.device_tracker.ago1980.attributes.battery|round }}
- {% else %}
- {{ states.sensor.battery_ago1980.state }}
- {%- endif %}
- device_class: battery
- - platform: time_date
- display_options:
- - 'time'
- - 'date'
- - 'date_time'
- - 'time_date'
- - 'time_utc'
- - 'beat'
- - platform: yr
- - platform: command_line
- name: ssl_expiration
- unit_of_measurement: Giorni
- scan_interval: 43200 #secondi (ossia ogni 12 ore)
- command: ssl-cert-check -b -c /etc/letsencrypt/live/ago1980.duckdns.org/cert.pem | awk '{ print $NF }'
- - platform: systemmonitor
- resources:
- - type: processor_use
- - type: disk_free
- arg: /
- - type: memory_free
- - type: memory_use_percent
- - type: ipv4_address
- arg: wlan0
- - platform: uptime
- name: Uptime
- unit_of_measurement: minutes
- - platform: template
- sensors:
- solarr_angle:
- friendly_name: "Presa Xiaomi"
- unit_of_measurement: 'W'
- value_template: "{{ states.switch.plug_158d0001dc8bc1.attributes.load_power }}"
- - platform: waze_travel_time
- name: tragitto casa lavoro
- origin: zone.home
- destination: zone.lavoro
- region: 'EU'
- - platform: dnsip
- # Resolve IP address of home-assistant.io via Google DNS
- - platform: dnsip
- hostname: ago1980.duckdns.org
- name: IP server
- resolver: 8.8.8.8
- - platform: command_line
- name: mqtt_server
- command: systemctl show mosquitto.service | awk -F= '/^SubState=/ {print $2}'
- scan_interval: 60
- - platform: mqtt
- name: "Tensione"
- state_topic: "tele/Pzem/SENSOR"
- value_template: "{{ value_json['ENERGY'].Voltage }}"
- unit_of_measurement: "V"
- - platform: mqtt
- name: "Corrente"
- state_topic: "tele/Pzem/SENSOR"
- value_template: "{{ value_json['ENERGY'].Current }}"
- unit_of_measurement: "A"
- - platform: mqtt
- name: "Potenza Ist."
- state_topic: "tele/Pzem/SENSOR"
- value_template: "{{ value_json['ENERGY'].Power }}"
- unit_of_measurement: "W"
- - platform: mqtt
- name: "Potenza Factor"
- state_topic: "tele/Pzem/SENSOR"
- value_template: "{{ value_json['ENERGY'].Factor }}"
- unit_of_measurement: " "
- - platform: mqtt
- name: "Energia Oggi"
- state_topic: "tele/Pzem/SENSOR"
- value_template: "{{ value_json['ENERGY'].Today }}"
- unit_of_measurement: "kWh"
- - platform: mqtt
- name: "Energia Ieri"
- state_topic: "tele/Pzem/SENSOR"
- unit_of_measurement: "kWh"
- value_template: "{{ value_json['ENERGY'].Yesterday }}"
- - platform: mqtt
- name: "Energia Totale"
- state_topic: "tele/Pzem/SENSOR"
- unit_of_measurement: "kWh"
- value_template: "{{ value_json['ENERGY'].Total }}"
- - platform: template
- sensors:
- enel:
- friendly_name: "enel"
- icon_template: mdi:coin
- valuetemplate: "{{((states.sensor.consumo_totale_mensile.state | float) + (30.000 | float)) | round(2)}}"
- unit_of_measurement: 'khw'
- ###########################################################################################
- speedtestdotnet:
- scan_interval:
- hours: 5
- #minutes: 30
- monitored_conditions:
- - ping
- - download
- - upload
- xiaomi_aqara:
- gateways:
- - host: '192.168.1.5'
- mac: 78:11:dc:af:30:30
- key: btutf73qptnx8f7d
- mysensors:
- gateways:
- - device: '192.168.1.8'
- persistence_file: '/home/homeassistant/.homeassistant/mysensors.json'
- tcp_port: 5003
- optimistic: false
- persistence: true
- version: 2.3.1
- #####TELEGRAM#####
- telegram_bot:
- - platform: polling
- api_key: 392124673:AAHWjPB5WnwWoTPEh0H-X0Mc9ykfgLFQ4iU
- allowed_chat_ids:
- - 360307101
- notify:
- - name: telegram
- platform: telegram
- chat_id: 360307101
- #####IPCAM#####
- ffmpeg:
- camera 1:
- - platform: ffmpeg
- name: Test1
- input: rtsp://192.168.1.170:1081/mac/live/ch0?admin:mario2015
- camera 2:
- - platform: ffmpeg
- name: Test
- input: rtsp://192.168.1.200:554/onvif1
- camera 3:
- - platform: ffmpeg
- name: Test2
- input: rtsp://192.168.1.168:554/onvif1
- camera:
- - platform: generic
- still_image_url: https://api.sat24.com/animated/IT/infraPolair/3/W_dot_%20Europe%20Standard%20Time/9263758
- name: Tempo Infrared
- - platform: generic
- still_image_url: https://api.sat24.com/animated/IT/rainTMC/3/W_dot_%20Europe%20Standard%20Time/6012921
- name: Rain
- #############Tracker###########
- device_tracker:
- - platform: life360
- username: agorusso80@gmail.com
- password: mario2015
- - platform: nmap_tracker
- hosts: 192.168.1.1/24
- interval_seconds: 65
- history_graph:
- gr1:
- name: Lights Graph
- entities:
- - sensor.temperature_158d00022caebe
- - sensor.temperature
- hours_to_show: 72
- refresh: 300
- sonoff:
- username: agorusso80@gmail.com
- password: mario2015
- scan_interval: 3
- grace_period: 600
- api_region: 'eu'
- ############test################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement