This commit is contained in:
Florian Brinker 2021-08-28 21:22:30 +02:00
parent 10c34b84f1
commit 0a34ce21a2
8 changed files with 104 additions and 86 deletions

View File

@ -54,6 +54,9 @@
- sensor.instagram_codedwithlove_follows
- sensor.instagram_codedwithlove_media
# TikTok
- sensor.tiktok_beauty
- sensor.tiktok_beauty_hearts
- sensor.tiktok_beauty_videos
- sensor.tiktok_unwissend_schoen
- sensor.tiktok_unwissend_schoen_hearts
- sensor.tiktok_unwissend_schoen_videos
- sensor.tiktok_astax
- sensor.tiktok_astax_hearts
- sensor.tiktok_astax_videos

View File

@ -220,23 +220,41 @@
force_update: true
# TikTok
# beauty
- platform: rest
scan_interval: 300
name: tiktok_beauty
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.followerCount }}'
name: tiktok_unwissend_schoen
resource: !secret tiktok_unwissend_schoen
value_template: '{{ value_json.stats.followerCount }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_beauty_hearts
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.heartCount }}'
name: tiktok_unwissend_schoen_hearts
resource: !secret tiktok_unwissend_schoen
value_template: '{{ value_json.stats.heartCount }}'
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_beauty_videos
resource: !secret tiktok_beauty
value_template: '{{ value_json.data.userInfo.stats.videoCount }}'
name: tiktok_unwissend_schoen_videos
resource: !secret tiktok_unwissend_schoen
value_template: '{{ value_json.stats.videoCount }}'
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_astax
resource: !secret tiktok_astax
value_template: '{{ value_json.stats.followerCount }}'
unit_of_measurement: Followers
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_astax_hearts
resource: !secret tiktok_astax
value_template: '{{ value_json.stats.heartCount }}'
force_update: true
- platform: rest
scan_interval: 300
name: tiktok_astax_videos
resource: !secret tiktok_astax
value_template: '{{ value_json.stats.videoCount }}'
force_update: true

View File

@ -1,6 +1,6 @@
# - platform: command_line
# name: Wallboard HDMI Status
# command: !secret wallboard_hdmi_status_cmd
# payload_on: display_power=1
# payload_off: display_power=0
# scan_interval: 60
- platform: command_line
name: Wallboard HDMI Status
command: !secret wallboard_hdmi_status_cmd
payload_on: display_power=1
payload_off: display_power=0
scan_interval: 60

View File

@ -1,9 +1,9 @@
#- platform: template
# switches:
# wallboard_display:
# friendly_name: Wallboard Display Toggle
# value_template: "{{ is_state('binary_sensor.wallboard_hdmi_status', 'on') }}"
# turn_on:
# service: script.wallboard_hdmi_on
# turn_off:
# service: script.wallboard_hdmi_off
- platform: template
switches:
wallboard_display:
friendly_name: Wallboard Display Toggle
value_template: "{{ is_state('binary_sensor.wallboard_hdmi_status', 'on') }}"
turn_on:
service: script.wallboard_hdmi_on
turn_off:
service: script.wallboard_hdmi_off

View File

@ -2,6 +2,34 @@ title: Übersicht
path: overview
icon: "mdi:tablet-dashboard"
cards:
- type: vertical-stack
cards:
- type: custom:weather-card
name: Wetter
entity: weather.openweathermap
icons: "/local/lovelace/custom/weather-card/icons/"
# - type: iframe
# url: !secret iframe_windy
# aspect_ratio: 75%
# - type: iframe
# url: !secret iframe_earth
# aspect_ratio: 75%
- type: conditional
conditions:
- entity: binary_sensor.workday_sensor
state: "on"
- entity: binary_sensor.morning
state: "on"
card:
type: entities
title: Nächste Bahn nach Münster
show_header_toggle: false
entities:
- entity: sensor.salzbergen_to_munster_hbf
name: Abfahrt
- type: custom:battery-state-card
title: "Batterie Warnung"
sort_by_level: "asc"
@ -26,48 +54,14 @@ cards:
- name: attributes.friendly_name # require a friendly_name
operator: "="
value:
- name: attributes.friendly_name
operator: "matches"
value: "/vibration/i" # is almost empty but unused, not important here in this view
bulk_rename:
- from: "Batterie"
- from: "Battery"
- from: "Power"
- type: conditional
conditions:
- entity: binary_sensor.openclose_10
state: "on"
card:
type: entities
title: Offene Fenster
show_header_toggle: false
entities:
- entity: binary_sensor.openclose_10
name: Elternbad
icon: mdi:window-open
- type: vertical-stack
cards:
- type: custom:weather-card
name: Wetter
entity: weather.openweathermap
icons: "/local/lovelace/custom/weather-card/icons/"
# - type: iframe
# url: !secret iframe_windy
# aspect_ratio: 75%
# - type: iframe
# url: !secret iframe_earth
# aspect_ratio: 75%
- type: conditional
conditions:
- entity: binary_sensor.workday_sensor
state: "on"
- entity: binary_sensor.morning
state: "on"
card:
type: entities
title: Nächste Bahn nach Münster
show_header_toggle: false
entities:
- entity: sensor.salzbergen_to_munster_hbf
name: Abfahrt
- type: vertical-stack
cards:
- type: glance

View File

@ -5,7 +5,7 @@ cards:
# Dobby
- type: 'custom:vacuum-card'
entity: vacuum.dobby
map: camera.deebot_dobby_live_map
map: camera.dobby_livemap
stats:
default:
- entity_id: sensor.dobby_heap

View File

@ -31,6 +31,7 @@ sun:
stream:
system_health:
updater:
shopping_list:
http:
ip_ban_enabled: true
@ -42,9 +43,6 @@ http:
# traefik.web
- 172.19.0.0/24
frontend:
themes: !include_dir_merge_named themes/
lovelace:
mode: yaml
resources:
@ -112,16 +110,26 @@ person:
- device_tracker.pixely
zone:
- name: !secret work_name_f
latitude: !secret work_lat_f
longitude: !secret work_long_f
- name: !secret work_f_name
latitude: !secret work_f_lat
longitude: !secret work_f_lng
radius: 250
icon: mdi:briefcase
- name: !secret work_name_j
latitude: !secret work_lat_j
longitude: !secret work_long_j
- name: !secret work_j_name
latitude: !secret work_j_lat
longitude: !secret work_j_lng
radius: 500
icon: mdi:briefcase
- name: !secret shopping_1_name
latitude: !secret shopping_1_lat
longitude: !secret shopping_1_lng
radius: 250
icon: fas:shopping-basket
- name: !secret shopping_2_name
latitude: !secret shopping_2_lat
longitude: !secret shopping_2_lng
radius: 250
icon: fas:shopping-basket
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
@ -188,17 +196,6 @@ spotify:
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
deebot:
username: !secret ecovacs_user
password: !secret ecovacs_password
country: de
continent: eu
deviceid:
- !secret ecovacs_serial_dobby
live_map: true
show_color_rooms: true
livemappath: 'www/vacuums/'
fontawesome:
regular:
solid:
@ -208,6 +205,9 @@ fontawesome:
alexa: !include config/alexa.yaml
google_assistant: !include config/google_assistant.yaml
frontend:
themes: !include_dir_merge_named themes/
alert: !include_dir_merge_named config/alerts/
automation: !include_dir_merge_list config/automations/
binary_sensor: !include_dir_merge_list config/sensors_binary/

3
customize.yaml Normal file
View File

@ -0,0 +1,3 @@
sensor.landroid_hans_dieter_battery:
friendly_name: Hans-Dieter Batterie
device_class: battery