· 6 years ago · Feb 10, 2020, 08:16 PM
1#component_loaded Configure a default setup of Home Assistant (frontend, api, etc)
2default_config:
3
4http:
5 base_url: arduhome.duckdns.org
6 ssl_certificate: /ssl/fullchain.pem
7 ssl_key: /ssl/privkey.pem
8
9#Text to speech
10tts:
11 - platform: google_translate
12
13
14group: !include groups.yaml
15automation: !include automations.yaml
16script: !include scripts.yaml
17scene: !include scenes.yaml
18frontend:
19 themes: !include_dir_merge_named /config/themes/
20homeassistant:
21 packages: !include_dir_named packages
22
23api:
24alexa:
25 smart_home:
26 filter:
27 include_domains:
28 - switch
29 - sensor.temperature_158d000321eff2
30
31
32
33ifttt:
34 key: !secret iftt_key
35
36hacs:
37 token: !secret token_hacs
38 appdaemon: true
39
40
41
42binary_sensor:
43 - platform: rpi_gpio
44 ports:
45 11: stato attuatore_1
46 12: stato attuatore_2
47 04: stato attuatore_3
48 18: stato attuatore_4
49 27: stato attuatore_5
50 22: stato attuatore_6
51 23: stato attuatore_7
52 24: stato attuatore_8
53
54
55switch:
56 - platform: rpi_gpio
57 ports:
58 5: relay_1
59 6: relay_2
60
61
62input_number:
63 counter:
64 name: counter
65 initial: 0
66 min: 0
67 max: 100
68 step: 1
69
70
71timer:
72 pulsante_1_tmr:
73 duration: '00:00:01'
74
75
76sensor:
77 - platform: mqtt
78 name: "Corrente"
79 state_topic: "tele/pzem016/SENSOR"
80 value_template: "{{ value_json['ENERGY'].Current}}"
81 unit_of_measurement: 'amps'
82 - platform: mqtt
83 name: "Watt"
84 state_topic: "tele/pzem016/SENSOR"
85 value_template: "{{ value_json['ENERGY'].Power}}"
86 unit_of_measurement: 'watts'
87 - platform: mqtt
88 name: "Volt"
89 state_topic: "tele/pzem016/SENSOR"
90 value_template: "{{ value_json['ENERGY'].Voltage}}"
91 unit_of_measurement: 'volts'
92 - platform: mqtt
93 name: "cosfi"
94 state_topic: "tele/pzem016/SENSOR"
95 value_template: "{{ value_json['ENERGY'].Factor}}"
96 unit_of_measurement: 'cosfi'
97 - platform: mqtt
98 name: "Energia Oggi"
99 state_topic: "tele/pzem016/SENSOR"
100 value_template: "{{ value_json['ENERGY'].Today}}"
101 unit_of_measurement: 'kWh'
102 - platform: mqtt
103 name: "Energia Ieri"
104 state_topic: "tele/pzem016/SENSOR"
105 value_template: "{{ value_json['ENERGY'].Yesterday}}"
106 unit_of_measurement: 'kWh'
107 - platform: mqtt
108 name: "Energia Totale"
109 state_topic: "tele/pzem016/SENSOR"
110 value_template: "{{ value_json['ENERGY'].Total}}"
111 unit_of_measurement: 'kWh'
112
113
114xiaomi_aqara:
115 discovery_retry: 5
116 gateways:
117 - key: !secret xiaomi_gateway
118
119
120vacuum:
121 - platform: xiaomi_miio
122 host: 192.168.1.234
123 token: !secret token_roborock
124
125# Example configuration.yaml entry
126rest_command:
127 example_request_1:
128 url: 'http://192.168.1.51:82/ajax_inputs&LED1=1'
129 example_request_2:
130 url: 'http://192.168.1.51:82/ajax_inputs&LED1=0'
131
132
133switch:
134 - platform: template
135 switches:
136 interrutore_ardu:
137 value_template: "{{states('binary_sensor.stato_attuatore_1')}}"
138 turn_on:
139 - service: rest_command.example_request_1
140 turn_off:
141 - service: rest_command.example_request_2
142
143
144input_select:
145 theme:
146 options:
147 - blue-red
148 - dark-blue
149 - dark-green
150 - light-blue
151 - light-green
152 - orange
153 - red
154 icon: mdi:format-color-fill
155
156input_boolean:
157 dark_mode:
158 name: Dark mode
159 icon: mdi:theme-light-dark
160 theme_alternative:
161 name: Theme alternative (enable active state color)
162
163
164sensor:
165 - platform: time_date
166 display_options:
167 - 'time'
168 - 'date'
169 - 'date_time'
170 - 'date_time_utc'
171 - 'date_time_iso'
172 - 'time_date'
173 - 'time_utc'
174 - 'beat'