summaryrefslogtreecommitdiffstats
path: root/configuration.yaml
blob: fb53037e566a6d7583aa272bf5553d76d20f7d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150

# Loads default set of integrations. Do not remove.
default_config:

#logger:
#  default: debug

logger:
  default: warning
  logs:
    homeassistant.components.recorder: info

lovelace:
  mode: yaml
  resources:
    - url: "/local/community/lovelace-layout-card/layout-card.js"
      type: "module"
    - url: "/local/community/restriction-card/restriction-card.js?hacstag=215633404127"
      type: "module"

frontend:
  themes: !include_dir_merge_named themes

recorder:
  auto_purge: true
  auto_repack: true
  purge_keep_days: 20

influxdb:
  api_version: 2
  host: suren.me
  port: 8086
  ssl: true
  verify_ssl: true
  ssl_ca_cert: /config/certs/ca.crt
  token: ldzUdZynt3sPfCC4YetZzD5Z9D3J-WlqKOYeTK9nooMf51ly5wbSzozhyYDII8ROhCLH-eeJuFlPWs83DS_xQg==
  organization: SmartPI
  bucket: smartpi
  tags:
    source: SmartPI
  measurement_attr: "entity_id"
  default_measurement: "state"
  include:
    domains:
      - sensor
      - binary_sensor
      - switch
  ignore_attributes:
    - attribution
    - device_class
    - entity_id
    - entity_prefix
    - friendly_name
    - host
    - hostname
    - icon
    - max_msg_size
    - port
    - secure
    - state_class
    - unit_of_measurement
    - uuid
    - verify_ssl
    - battery


logbook:
  exclude:
    entities:
      - sensor.internet_time
      - sensor.time
      - sensor.date
    entity_globs:
      - sensor.weather_*
      - sensor.date_*
      - sensor.time_*
#    domains:
#      - sun

# Trusted networks should go first or allow_bypass_login will be ignored
homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.50.0/23
      trusted_users:
        192.168.50.0/23: 31a296cc30a243089f121cef93b46cc0
        192.168.50.234: 31a296cc30a243089f121cef93b46cc0
        192.168.51.118: 31a296cc30a243089f121cef93b46cc0
      allow_bypass_login: true
#    - type: legacy_api_password
#      api_password: !secret api_password
    - type: homeassistant

# Hass is bad with self-signed certificates. Therefore, we use letsencrypt at darksoft.org and do proxying there
http:
#  ssl_certificate: /config/ssl/smartpi.suren.me.crt
#  ssl_key: /config/ssl/smartpi.suren.me.key
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.21.1
    - 192.168.24.1

# Text to speech
tts:
  - platform: google_translate

telegram_bot:
  - platform: polling
    api_key: 5161737507:AAHAZZr_eh8ZOkhdg59XVIciGS2BkVBQU7M
    allowed_chat_ids:
      - -1001582338242


notify:
  - platform: telegram
    name: SmartPI
    chat_id: -1001582338242

#python_script:

ffmpeg:
  ffmpeg_bin: /usr/bin/ffmpeg

wake_on_lan:

sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_utc'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'


automation ui: !include automations.yaml
script ui: !include scripts.yaml
scene ui: !include scenes.yaml


group: !include custom/group.yaml
template: !include custom/template.yaml
input_number: !include custom/input_number.yaml
binary_sensor: !include custom/binary_sensor.yaml
script manual: !include_dir_merge_named custom/scripts/
automation manual: !include_dir_merge_list custom/automation/
shell_command: !include custom/shell.yaml