90 lines
3.5 KiB
YAML
90 lines
3.5 KiB
YAML
|
|
# Loads default set of integrations. Do not remove.
|
|
default_config:
|
|
|
|
# Load frontend themes from the themes folder
|
|
frontend:
|
|
themes: !include_dir_merge_named themes
|
|
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
|
|
http:
|
|
use_x_forwarded_for: true
|
|
trusted_proxies:
|
|
#- 172.19.0.2 # Add the IP address of the proxy server
|
|
- 172.0.0.0/8 # You may also provide the subnet mask
|
|
|
|
rest_command: # This api shows: Daily code, max/min temp, apperent max/min temp, sunrise/sunset/daylight, UV, percip sum/hours/probability
|
|
get_phone_weather: # All in US units for 3 days out
|
|
url: >
|
|
{% set lat = state_attr('device_tracker.alexs_phone','latitude') %}
|
|
{% set lon = state_attr('device_tracker.alexs_phone','longitude') %}
|
|
https://api.open-meteo.com/v1/forecast?latitude={{lat}}&longitude={{lon}}&daily=weather_code,temperature_2m_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,sunrise,daylight_duration,sunset,uv_index_max,precipitation_sum,precipitation_hours,precipitation_probability_max&timezone=America%2FNew_York&forecast_days=3&wind_speed_unit=mph&temperature_unit=fahrenheit&precipitation_unit=inch
|
|
method: GET
|
|
|
|
rest:
|
|
- resource_template: >
|
|
{% set lat = state_attr('device_tracker.alexs_phone','latitude') %}
|
|
{% set lon = state_attr('device_tracker.alexs_phone','longitude') %}
|
|
https://api.open-meteo.com/v1/forecast?latitude={{lat}}&longitude={{lon}}&daily=weather_code,temperature_2m_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,sunrise,daylight_duration,sunset,uv_index_max,rain_sum,snowfall_sum,precipitation_sum,precipitation_hours,precipitation_probability_max&hourly=temperature_2m,apparent_temperature,precipitation_probability,weather_code,precipitation¤t=temperature_2m,apparent_temperature,precipitation,weather_code,is_day&timezone=America%2FNew_York&wind_speed_unit=mph&temperature_unit=fahrenheit&precipitation_unit=inch
|
|
scan_interval: 900
|
|
sensor:
|
|
- name: "Phone Location Minimum Temperature"
|
|
unique_id: "phone_min_temp"
|
|
value_template: '{{value_json.daily.temperature_2m_min[0]}}'
|
|
unit_of_measurement: '°F'
|
|
device_class: temperature
|
|
- name: "Phone Location Maximum Temperature"
|
|
unique_id: "phone_max_temp"
|
|
value_template: '{{value_json.daily.temperature_2m_max[0]}}'
|
|
unit_of_measurement: '°F'
|
|
device_class: temperature
|
|
|
|
monitor_docker:
|
|
- name: Docker
|
|
containers:
|
|
- cloudflared-cloudflared-1
|
|
- gitea-db-1
|
|
- gitea-server-1
|
|
- glances
|
|
- habridge
|
|
- homeassistant
|
|
- nextcloud-app-1
|
|
- nextcloud-db-1
|
|
- nextcloud-redis-1
|
|
- nginx-app-1
|
|
- portainer
|
|
- syncthing
|
|
rename:
|
|
cloudflared-cloudflared-1: 'Cloudflared'
|
|
gitea-db-1: 'Gitea Database'
|
|
gitea-server-1: 'Gitea Server'
|
|
glances: 'Glances'
|
|
habridge: 'Home Assistant Bridge'
|
|
homeassistant: 'Home Assistant'
|
|
nextcloud-app-1: 'Nextcloud Server'
|
|
nextcloud-db-1: 'Nextcloud Database'
|
|
nextcloud-redis-1: 'Nextcloud Redis'
|
|
nginx-app-1: 'Nginx Proxy Manager'
|
|
portainer: 'Portainer'
|
|
syncthing: 'Syncthing'
|
|
monitored_conditions:
|
|
- version
|
|
- containers_running
|
|
- containers_paused
|
|
- containers_stopped
|
|
- containers_total
|
|
- containers_memory_percentage
|
|
- images
|
|
- state
|
|
- status
|
|
- health
|
|
- uptime
|
|
- image
|
|
- 1cpu_percentage
|
|
- memory
|
|
- memory_percentage
|
|
scan_interval: 60
|