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:
- alias: "before 22:00"
condition: time
after: " 15:00:00"
before: " 22:00:00"
after: "15:00:00"
before: "22:00:00"
# weekday:
# - " mon"
action:

View File

@ -9,10 +9,10 @@ action:
- service: notify.dev_telegram
data:
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
#- service: shell_command.mount_nas
#
#- service: shell_command.mount_nas
#
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
@ -21,4 +21,4 @@ action:
# - service: notify.chk_telegram
# 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:
state: "off"
light.wohnzimmerlichter:
state: "off"
state: "off"
light.stricklicht:
state: "off"
light.esszimmerlichter:

View File

@ -1,4 +1,4 @@
alias: create backup
alias: Skript Backup erstellen
sequence:
- service: notify.dev_telegram
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
alias: Gute Nacht Skript
sequence:
alias: Skript Gute Nacht
sequence:
- service: light.turn_on
target:
entity_id: light.attic_ceiling_spots
data:
brightness: 130
rgb_color: [255,0,0]
rgb_color: [255, 0, 0]
- service: switch.turn_off
target:
entity_id: switch.metered_wall_plug_switch_node4
@ -17,10 +17,3 @@ sequence:
target:
entity_id: scene.schalfenszeit
mode: single

View File

@ -1,7 +1,7 @@
alias: mount nas
sequence:
alias: Skript Mount nas (Test)
sequence:
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
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
alias: Telegram Test1
sequence:
alias: Skript Telegram Test1
sequence:
- service: telegram_bot.send_message
data:
message: test from Telegram Test1
@ -9,11 +9,10 @@ sequence:
data:
message: test from Telegram with service "notify.dev_telegram"
mode: single
# alias: Telegram Test1
# mode: single
# sequence:
# - service: telegram_bot.send_message
# data:
# message: Sonne17
# target: -391668323
# target: -391668323