summaryrefslogtreecommitdiffstats
path: root/scripts.yaml
blob: 09cb932987278d4be5780561f85ea0dc3bce192f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
turn_off_all_lights:
  alias: turn_off_all_lights
  use_blueprint:
    path: lights/turn_off_lights.yaml
  mode: single
'1672632854824':
  alias: Send Photo
  use_blueprint:
    path: camera/send_photo.yaml
    input:
      host: http://127.0.0.1:8123
'1672637427937':
  alias: Security Camera
  use_blueprint:
    path: camera/security_camera.yaml
    input:
      lights_on:
      - switch.entrance_lights_center
      lights_off:
      - switch.hall_lights_left
      fast_shots: 10
      motion_sensor: binary_sensor.hall_motions_occupancy
turn_off_bedroom_lights:
  alias: turn_off_bedroom_lights
  use_blueprint:
    path: lights/turn_off_lights.yaml
    input:
      lights: bedroom
  mode: single
bedroom_aircon:
  alias: Bedroom AirCon
  use_blueprint:
    path: devices/aircon.yaml
    input:
      power: switch.bedroom_aircon
      temperature: sensor.bedroom_temp_temperature
      cool_scene: scene.hyundai_aircon_cool_18
      heat_scene: scene.hyundai_aircon_warm_28
      off_scene: scene.hyundai_aircon_off
      confirm:
      - service: input_button.press
        data: {}
        target:
          entity_id: input_button.button_confirm
  mode: single
'1672883652038':
  sequence:
  - service: media_player.volume_set
    data:
      volume_level: 1
    target:
      entity_id: media_player.smartpi
  - service: media_player.play_media
    target:
      entity_id: media_player.smartpi
    data:
      media_content_id: media-source://dlna_dms/asgard/:64$0$5$1$0$0
      media_content_type: audio/mpeg
    metadata:
      title: Wish I Had An Angel
      thumbnail:
      media_class: music
      children_media_class:
      navigateIds:
      - {}
      - media_content_type: app
        media_content_id: media-source://dlna_dms
      - media_content_type: channel
        media_content_id: media-source://dlna_dms/asgard/:0
      - media_content_type: object.container.storageFolder
        media_content_id: media-source://dlna_dms/asgard/:64
      - media_content_type: object.container.storageFolder
        media_content_id: media-source://dlna_dms/asgard/:64$0
      - media_content_type: object.container.storageFolder
        media_content_id: media-source://dlna_dms/asgard/:64$0$5
      - media_content_type: object.container.storageFolder
        media_content_id: media-source://dlna_dms/asgard/:64$0$5$1
      - media_content_type: object.container.storageFolder
        media_content_id: media-source://dlna_dms/asgard/:64$0$5$1$0
  mode: restart
  alias: Kodi - Play Angel Alarm
silence:
  alias: Silence
  sequence:
  - service: media_player.media_stop
    data: {}
    target:
      entity_id: media_player.smartpi
  mode: single
kodi_sleep:
  alias: 'Kodi: Sleep'
  sequence:
  - service: media_player.media_stop
    data: {}
    target:
      entity_id: media_player.smartpi
  mode: single
turn_on_office_lights:
  alias: turn_on_office_lights
  sequence:
  - parallel:
    - service: light.turn_on
      data:
        brightness_pct: 100
        kelvin: 6000
      target:
        entity_id: light.yeelight_color_0x7caaf86
    - service: homeassistant.turn_off
      data: {}
      target:
        entity_id: switch.lights_living_lustre
  mode: single