# Configure a default setup of Home Assistant (frontend, api, etc) default_config: http: use_x_forwarded_for: true trusted_proxies: - 192.168.31.0/24 - 172.18.0.0/24 - 172.19.0.0/24 - 172.22.0.0/24 - 172.20.0.0/24 - 172.21.0.0/24 - 172.23.0.0/24 - 172.17.0.0/24 # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml prometheus: namespace: hass rest_command: piplayer_reboot: url: "http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot" method: GET piplayer_shutdown: url: "http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown" method: GET ntfy_send: url: "https://ntfy.sh/Tf5qhbkt303HboYwkava9xRb9wRLjx5z-ha" method: post headers: Title: "Home Assistant" Priority: "5" Tags: home,warning payload: "{{ message }}" send_temperature_to_magicmirror: url: "http://192.168.31.19:8080/remote-temperature" method: post headers: Content-Type: "application/json" payload: > { "sensorId": "{{ sensor_id }}", "temp": {{ states(temperature_sensor) | float | round(1) }}, "humidity": {{ states(humidity_sensor) | float | round(1) }} } # payload: > # { # "sensorId": "2", # "temp": {{ states('sensor.0xa4c138331d161fd6_temperature') | float | round(1) }}, # "humidity": {{ states('sensor.0xa4c138331d161fd6_humidity') | float | round(1) }} # } input_number: jasnosc_led_nad_duzym_blatem: name: Jasność maksymalna Ledów nad duzym blatem min: 0 max: 75 step: 5 icon: mdi:brightness-6 jasnosc_listwy_led_nad_duzym_blatem: name: Jasność maksymalna listwy Led nad duzym blatem min: 0 max: 90 step: 5 icon: mdi:brightness-6 shell_command: piplayer_reboot: 'curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=reboot' piplayer_shutdown: 'curl -X GET http://192.168.31.6/cgi-bin/main.cgi?ACTION=shutdown' logger: default: warning # logs: # homeassistant.components.rest_command: debug # homeassistant.components.shell_command: debug group: garmin: name: Garmin entities: - sensor.thtuyabalkon_temperature - sensor.thsalon_temperature - switch.tasmota - switch.sufit2switchsalon - switch.sufit3switchsalon # - switch.tasmota_8 # - switch.tasmota_12 # - switch.tasmota_9 # - switch.tasmota_3 - input_boolean.sleep_mode - input_boolean.movie_mode - scene.Film sensor: - platform: rest name: owntracks_last_location resource: http://192.168.31.5:8083/api/0/last?user=owntracksusr&device=oskar&fields=tst,tid,addr,topic,isotst,lat,lon,addr method: GET scan_interval: 60 # odświeżanie co 60 sekund value_template: "{{ value_json.lat }},{{ value_json.lon }}" json_attributes: - addr - lat - lon - tst notify: - name: email_notification platform: smtp server: smtp.gmail.com port: 587 timeout: 15 sender: "oskar.kapala-haos@gmail.com" encryption: starttls username: "oskar.kapala@gmail.com" password: !secret email_password recipient: - "oskar.kapala@gmail.com" sender_name: "Home Assistant" device_tracker: - platform: bluetooth_le_tracker interval_seconds: 30 consider_home: 180 track_new_devices: true device_tracker: - platform: owntracks max_gps_accuracy: 200 sensor: - platform: statistics name: thtuyalazienka_humidity_stats_5min entity_id: sensor.thtuyalazienka_humidity state_characteristic: change max_age: minutes: 5