Files
scripts/portainer-compose-stacks/homeassistant/configuration.yaml
2024-08-15 15:59:40 +03:00

62 lines
1.6 KiB
YAML

# NOT USED. Check /hassio folder
panel_iframe:
portainer:
title: "Portaiiner"
url: "https://docker.d-popov.com//#!/1/docker/containers"
icon: mdi:docker
require_admin: true
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.10 # Add the IP address of the proxy server
#almond:
# type: local
# host: http://192.168.0.10:3001
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homeassistant:
external_url: "https://home.d-popov.com"
packages: !include_dir_named integrations/
sensor:
- platform: command_line
name: CPU Temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
- platform: command_line
name: GPU Temp
command: "/opt/vc/bin/vcgencmd measure_temp"
unit_of_measurement: "C"
value_template: '{{ value | regex_findall_index("=([0-9]*\.[0-9]*)", 0) }}'
- platform: command_line
name: CPU Clock
command: "/opt/vc/bin/vcgencmd measure_clock arm"
unit_of_measurement: "MHz"
value_template: '{{ value | regex_findall_index("=([0-9]*)", 0) | multiply(0.000001) | round(0) }}'
mqtt:
sensor:
state_topic: 'Esp/bedroom/temperature'
name: 'Bedroom Temperature'
unit_of_measurement: 'C'