2022.5 fixes

This commit is contained in:
2022-05-06 19:06:50 +03:00
parent a4e42f0e5a
commit d26a11111d
4 changed files with 19 additions and 12 deletions
+1 -3
View File
@@ -65,9 +65,6 @@ lovelace:
# https://www.home-assistant.io/components/system_health
system_health:
# https://www.home-assistant.io/components/updater
updater:
# https://www.home-assistant.io/components/logger
logger:
default: warning
@@ -151,6 +148,7 @@ logbook:
# https://www.home-assistant.io/integrations/media_extractor
# TODO: Add to media module
media_source:
media_extractor:
# https://www.home-assistant.io/integrations/mobile_app
@@ -3,7 +3,8 @@ v3_button_purifier:
state_display: |
[[[
if (entity.state === 'off') { return 'Off'; }
return entity.attributes.speed.charAt(0).toUpperCase() + entity.attributes.speed.slice(1);
if (!entity.attributes.preset_mode) { return 'Unknown preset'; }
return entity.attributes.preset_mode.charAt(0).toUpperCase() + entity.attributes.preset_mode.slice(1);
]]]
variables:
value_has_error: |
+15 -7
View File
@@ -1,11 +1,11 @@
# https://www.home-assistant.io/integrations/webostv
webostv:
- host: !secret living_room_tv_ip
name: Living Room TV
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: !secret living_room_tv_mac
# webostv:
# - host: !secret living_room_tv_ip
# name: Living Room TV
# turn_on_action:
# service: wake_on_lan.send_magic_packet
# data:
# mac: !secret living_room_tv_mac
media_player:
- platform: androidtv
@@ -91,6 +91,14 @@ script:
command: "adb shell am start -n \"com.android.systemui/.Somnambulator\""
automation:
- alias: TV · Turn on
trigger:
- platform: webostv.turn_on
entity_id: media_player.living_room_tv
action:
- service: wake_on_lan.send_magic_packet
data:
mac: 78:5D:C8:C9:DB:76
- alias: TV · Join Beam to Sonos group when off
trigger:
platform: state
+1 -1
View File
@@ -2,7 +2,7 @@
sun:
sensor:
- platform: launch_library
# - platform: launch_library
- platform: moon
binary_sensor: