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 # https://www.home-assistant.io/components/system_health
system_health: system_health:
# https://www.home-assistant.io/components/updater
updater:
# https://www.home-assistant.io/components/logger # https://www.home-assistant.io/components/logger
logger: logger:
default: warning default: warning
@@ -151,6 +148,7 @@ logbook:
# https://www.home-assistant.io/integrations/media_extractor # https://www.home-assistant.io/integrations/media_extractor
# TODO: Add to media module # TODO: Add to media module
media_source:
media_extractor: media_extractor:
# https://www.home-assistant.io/integrations/mobile_app # https://www.home-assistant.io/integrations/mobile_app
@@ -3,7 +3,8 @@ v3_button_purifier:
state_display: | state_display: |
[[[ [[[
if (entity.state === 'off') { return 'Off'; } 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: variables:
value_has_error: | value_has_error: |
+15 -7
View File
@@ -1,11 +1,11 @@
# https://www.home-assistant.io/integrations/webostv # https://www.home-assistant.io/integrations/webostv
webostv: # webostv:
- host: !secret living_room_tv_ip # - host: !secret living_room_tv_ip
name: Living Room TV # name: Living Room TV
turn_on_action: # turn_on_action:
service: wake_on_lan.send_magic_packet # service: wake_on_lan.send_magic_packet
data: # data:
mac: !secret living_room_tv_mac # mac: !secret living_room_tv_mac
media_player: media_player:
- platform: androidtv - platform: androidtv
@@ -91,6 +91,14 @@ script:
command: "adb shell am start -n \"com.android.systemui/.Somnambulator\"" command: "adb shell am start -n \"com.android.systemui/.Somnambulator\""
automation: 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 - alias: TV · Join Beam to Sonos group when off
trigger: trigger:
platform: state platform: state
+1 -1
View File
@@ -2,7 +2,7 @@
sun: sun:
sensor: sensor:
- platform: launch_library # - platform: launch_library
- platform: moon - platform: moon
binary_sensor: binary_sensor: