homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret latitude
longitude: !secret longitude
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# 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
# package
packages: !include_dir_named packages
# Esempio di configurazione climate
climate: !include climate.yaml
Show links to resources in log and frontend
introduction:
Enables the frontend
frontend:
Enables configuration UI
config:
Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
base_url: example.duckdns.org:8123
#DUCKDNS
http:
base_url: !secret duckdns_base_url
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
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:
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
#MQTT
mqtt:
broker: core-mosquitto
username: !secret mqtt_username
password: !secret mqtt_password
discovery: true
discovery_prefix: homeassistant
camera: !include cameras.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
LUCI ETCETERA
light: !include lights.yaml
FINE LUCI ETCETERA
TELEGRAM BOT
telegram_bot:
- platform: polling
api_key: !secret telegram_api_key
allowed_chat_ids:
- !secret telegram_chat_ids
notify:
- name: telegram
platform: telegram
chat_id: !secret telegram_chat_ids
Discover some devices automatically
discovery:
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:
zone:
- name: casa
latitude: !secret latitude
longitude: !secret longitude
radius: 100
device_tracker:
- platform: bluetooth_tracker
Track the sun
sun:
Sensors
sensor:
# Weather prediction
- platform: yr
- platform: mqtt
name: "Temperatura"
state_topic: "Termostato/1/ack"
value_template: "{{value_json.T}}"
unit_of_measurement: "°C"
availability_topic: "84f3eb183b50"
- platform: mqtt
name: "Umidità"
state_topic: "Termostato/1/ack"
value_template: "{{value_json.H}}"
unit_of_measurement: "%"
availability_topic: "84f3eb183b50"
- platform: mqtt
name: "HI"
state_topic: "Termostato/1/ack"
value_template: "{{value_json.HI}}"
unit_of_measurement: "°C"
availability_topic: "84f3eb183b50"
- 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) }}'
########################################################################
Data e ora
########################################################################
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
- 'beat'
Text to speech
tts:
- platform: google
#python_script
python_script:
Cloud
cloud:
switch:
- platform: mqtt
name: AUTO
command_topic: "Termostato/1"
payload_on: "auto"
payload_off: "man"
state_topic: "Termostato/1/ack"
value_template: "{{value_json.AUTO}}"
availability_topic: "84f3eb183b50"
- platform: mqtt
name: RELE
command_topic: "Termostato/1"
payload_on: "on"
payload_off: "off"
state_topic: "Termostato/1/ack"
value_template: "{{value_json.RELE}}"
availability_topic: "84f3eb183b50"
input_number:
termostato:
name: Termostato
initial: 30
min: 5
max: 35
step: 0.5
unit_of_measurement: "°C"
temp_high:
name: Target alto
min: 0
max: 30
step: 1
temp_low:
name: Target basso
min: 0
max: 30
step: 1