group sonos & small refactorings

This commit is contained in:
Christian Kauer 2021-11-12 20:13:15 +01:00
parent a4dc9f695e
commit bdb0721e11
9 changed files with 50 additions and 25 deletions

View File

@ -11,8 +11,8 @@ trigger:
condition: condition:
- alias: "before 22:00" - alias: "before 22:00"
condition: time condition: time
after: " 15:00:00" after: "15:00:00"
before: " 22:00:00" before: "22:00:00"
# weekday: # weekday:
# - " mon" # - " mon"
action: action:

View File

@ -9,10 +9,10 @@ action:
- service: notify.dev_telegram - service: notify.dev_telegram
data: data:
message: Home Assistant is starting up again message: Home Assistant is starting up again
- delay: '00:00:15'
# mount nas - but shellcommand doesnt work: https://community.home-assistant.io/t/mount-remote-smb-share-on-hassio/116734/101 # mount nas - but shellcommand doesnt work: https://community.home-assistant.io/t/mount-remote-smb-share-on-hassio/116734/101
#- service: shell_command.mount_nas #- service: shell_command.mount_nas
# #
- service: hassio.addon_stdin - service: hassio.addon_stdin
data: data:
addon: a0d7b954_ssh addon: a0d7b954_ssh
@ -21,4 +21,4 @@ action:
# - service: notify.chk_telegram # - service: notify.chk_telegram
# data: # data:
# message: Home Assistant is starting up again # message: Home Assistant is starting up again

View File

@ -5,7 +5,7 @@ entities:
light.attic_ceiling_spots: light.attic_ceiling_spots:
state: "off" state: "off"
light.wohnzimmerlichter: light.wohnzimmerlichter:
state: "off" state: "off"
light.stricklicht: light.stricklicht:
state: "off" state: "off"
light.esszimmerlichter: light.esszimmerlichter:

View File

@ -1,4 +1,4 @@
alias: create backup alias: Skript Backup erstellen
sequence: sequence:
- service: notify.dev_telegram - service: notify.dev_telegram
data: data:

10
scripts/good_morning.yaml Normal file
View File

@ -0,0 +1,10 @@
# https://www.home-assistant.io/integrations/script
alias: Skript Guten Morgen
sequence:
- service: scene.turn_on
target:
entity_id: scene.attic_breakfast_time
- delay: "00:30:00"
- service: script.sonos_group_livingroom
data: {}
mode: single

View File

@ -1,12 +1,12 @@
# https://www.home-assistant.io/integrations/script # https://www.home-assistant.io/integrations/script
alias: Gute Nacht Skript alias: Skript Gute Nacht
sequence: sequence:
- service: light.turn_on - service: light.turn_on
target: target:
entity_id: light.attic_ceiling_spots entity_id: light.attic_ceiling_spots
data: data:
brightness: 130 brightness: 130
rgb_color: [255,0,0] rgb_color: [255, 0, 0]
- service: switch.turn_off - service: switch.turn_off
target: target:
entity_id: switch.metered_wall_plug_switch_node4 entity_id: switch.metered_wall_plug_switch_node4
@ -17,10 +17,3 @@ sequence:
target: target:
entity_id: scene.schalfenszeit entity_id: scene.schalfenszeit
mode: single mode: single

View File

@ -1,7 +1,7 @@
alias: mount nas alias: Skript Mount nas (Test)
sequence: sequence:
- service: hassio.addon_stdin - service: hassio.addon_stdin
data: data:
addon: a0d7b954_ssh addon: a0d7b954_ssh
input: >- input: >-
mkdir -p /nas && mount -t nfs4 192.168.178.70:/volume1/netshare /nas mkdir -p /nas && mount -t nfs4 192.168.178.70:/volume1/netshare /nas

View File

@ -0,0 +1,23 @@
# https://www.home-assistant.io/integrations/sonos/
# https://www.home-assistant.io/integrations/media_player/
alias: Skript Wohnzimmer gruppieren und TV-Modus
sequence:
- service: sonos.join
data:
master: media_player.wohnzimmer
entity_id: media_player.wohnzimmer_2
- service: media_player.select_source
data:
entity_id: media_player.wohnzimmer_2
source: Line-in
- service: media_player.volume_set
data:
entity_id: media_player.wohnzimmer_2
volume_level: 0.5
- service: media_player.media_play
data:
entity_id: media_player.wohnzimmer
- service: notify.dev_telegram
data:
message: sonos wohnzimmer gruppiert
mode: single

View File

@ -1,6 +1,6 @@
# https://www.home-assistant.io/integrations/script # https://www.home-assistant.io/integrations/script
alias: Telegram Test1 alias: Skript Telegram Test1
sequence: sequence:
- service: telegram_bot.send_message - service: telegram_bot.send_message
data: data:
message: test from Telegram Test1 message: test from Telegram Test1
@ -9,11 +9,10 @@ sequence:
data: data:
message: test from Telegram with service "notify.dev_telegram" message: test from Telegram with service "notify.dev_telegram"
mode: single mode: single
# alias: Telegram Test1 # alias: Telegram Test1
# mode: single # mode: single
# sequence: # sequence:
# - service: telegram_bot.send_message # - service: telegram_bot.send_message
# data: # data:
# message: Sonne17 # message: Sonne17
# target: -391668323 # target: -391668323