blue led off

This commit is contained in:
David Hába 2023-01-15 04:11:34 +01:00
parent 29e72a9bd8
commit 1f984ba162
4 changed files with 35 additions and 2 deletions

View File

@ -1 +1,11 @@
[]
- id: '1673752036683'
alias: blue_led_off
description: Po startu vypne modrou LED (Odroid C2)
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: shell_command.blue_led_off
data: {}
mode: single

View File

@ -1,6 +1,9 @@
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
shell_command:
blue_led_off: /bin/echo none > /sys/class/leds/c2:blue:alive/trigger
# Text to speech
tts:
- platform: google_translate
@ -11,6 +14,7 @@ automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include template.yaml
sensor: !include sensors.yaml
http:
use_x_forwarded_for: true
@ -23,6 +27,8 @@ recorder:
purge_keep_days: 30
commit_interval: 20
history:
# InfluxDB - Long-term data
influxdb:
api_version: 2

View File

@ -9,4 +9,10 @@ xiaomi_cloud_password: Maska.MiAccount
# Databases
mariadb_url: mysql://dbadmin:txcqCuH6Ht9epRvQYOF3@core-mariadb/homeassistant?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4
influxdb_token: cqMQvcDUlP6_Zo88s_MXsl672zJQaIcAZ6h5ZZANtgr1Hn-Z08pXp8SPxtRcEfHyXNXthnD6AYCllxJYgQzrvQ==
influxdb_token: cqMQvcDUlP6_Zo88s_MXsl672zJQaIcAZ6h5ZZANtgr1Hn-Z08pXp8SPxtRcEfHyXNXthnD6AYCllxJYgQzrvQ==
# Kiosk mode
# Samsung Galaxy Tab3
kiosk_galaxy_url: http://192.168.88.55:2323/?cmd=deviceInfo&type=json&password=ha-kiosk
kiosk_galaxy_command: "http://192.168.88.55:2323/?cmd={{ cmd }}&key={{ key }}&value={{ value }}&type=json&password=ha-kiosk"
kiosk_galaxy_settings: "http://192.168.88.55:2323/?cmd=listSettings&type=json&password=ha-kiosk"

11
sensors.yaml Normal file
View File

@ -0,0 +1,11 @@
# MariaDB Database Size Sensor
- platform: sql
db_url: !secret mariadb_url
scan_interval: 3600
queries:
- name: MariaDB size
query: 'SELECT table_schema AS "database", ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
column: "value"
unit_of_measurement: MB
# InfluxDB 2.x Database Size Sensor