d_personal/config/homeassistant/configuration.yaml

74 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2022-08-06 11:22:43 +02:00
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
2022-08-07 14:49:54 +02:00
automation: !include_dir_list automations
2022-08-06 11:22:43 +02:00
script: !include scripts.yaml
scene: !include scenes.yaml
# Database
recorder:
db_url: postgresql://homeassistant:homeassistant@ha_postgres/ha
2022-08-07 14:49:54 +02:00
# Mqtt
mqtt:
switch:
- unique_id: irrigation_switch_a
name: "Irrigation switch A"
state_topic: "outside/irrigation/state/zoneA"
command_topic: "outside/irrigation/command/zoneA"
availability:
- topic: "outside/irrigation/is_available"
payload_available: "available"
payload_on: "on"
payload_off: "off"
state_on: "on"
state_off: "off"
optimistic: false
qos: 0
retain: true
- unique_id: irrigation_switch_b
name: "Irrigation switch B"
state_topic: "outside/irrigation/state/zoneB"
command_topic: "outside/irrigation/command/zoneB"
availability:
- topic: "outside/irrigation/is_available"
payload_available: "available"
payload_on: "on"
payload_off: "off"
state_on: "on"
state_off: "off"
optimistic: false
qos: 0
retain: true
- unique_id: irrigation_switch_c
name: "Irrigation switch C"
state_topic: "outside/irrigation/state/zoneC"
command_topic: "outside/irrigation/command/zoneC"
availability:
- topic: "outside/irrigation/is_available"
payload_available: "available"
payload_on: "on"
payload_off: "off"
state_on: "on"
state_off: "off"
optimistic: false
qos: 0
retain: true
2022-08-09 11:06:53 +02:00
2022-08-06 11:22:43 +02:00
# Nginx setup
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.192.5
- 172.16.0.0/12
- 192.168.0.0/28