Untitled

 avatar
user_0804382
plain_text
a year ago
10 kB
2
Indexable
Never
- alias: Turn off all lights
  trigger:
  - platform: state
    entity_id: sensor.0x158d0002fa99fd_action
    to: button_1_single
  action:
  - service: light.turn_off
    entity_id: all
  mode: single
  id: 135257b98cf943d4b0972004d020a80b
- id: '1652010224733'
  alias: Свет в шкафу
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 095cc4a1906608467b8fc881f770a8f4
    type: click
    subtype: single
    discovery_id: 0x00158d0004505dd7 click_single
  condition: []
  action:
  - type: toggle
    device_id: 19c24593cd7ce21c0fd90b641555ee6d
    entity_id: switch.sonoff_1000a60930
    domain: switch
  mode: single
- id: '1652016603750'
  alias: Утюг
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 095cc4a1906608467b8fc881f770a8f4
    type: action
    subtype: double
    discovery_id: 0x00158d0004505dd7 action_double
  condition: []
  action:
  - type: toggle
    device_id: 4d222a198bcfe5259b6551466e4cf785
    entity_id: switch.utiug_2
    domain: switch
  mode: single
- id: yandex_temp_gostinnaia
  alias: Температура в Гостинной
  trigger:
  - platform: event
    event_type: yandex_speaker
    event_data:
      value: Сделай громче на 0
  action:
  - service: media_player.play_media
    target:
      entity_id: '{{ trigger.event.data.entity_id }}'
    data:
      media_content_type: text
      media_content_id: "Температура в Гостинной {{ states(\"sensor.0x00158d0004066e04_temperature\")|round
        }} {% if states(\"sensor.0x00158d0004066e04_temperature\")|round % 10 == 1
        %}\n  Градус\n{% elif states(\"sensor.0x00158d0004066e04_temperature\")|round
        % 10 in [2,3,4] %}\n  Градуса\n{% else %}\n  Градусов\n{% endif %}\n"
  mode: single
- id: yandex_vlaga_gostinnaia
  alias: Влажность в Гостинной
  trigger:
  - platform: event
    event_type: yandex_speaker
    event_data:
      value: Сделай громче на 0
  action:
  - service: media_player.play_media
    target:
      entity_id: '{{ trigger.event.data.entity_id }}'
    data:
      media_content_type: text
      media_content_id: "Влажность в гостинной {{ states(\"sensor.0x00158d0004066e04_humidity\")|round
        }} {% if states(\"sensor.0x00158d0004066e04_humidity\")|round % 10 == 1 %}\n
        \ процент\n{% elif states(\"sensor.0x00158d0004066e04_humidity\")|round %
        10 in [2,3,4] %}\n  процента\n{% else %}\n  процентов\n{% endif %}\n"
  mode: single
- id: '1656852299841'
  alias: 'Температура в Ванной '
  description: ''
  trigger:
  - platform: event
    event_type: yandex_speaker
    event_data:
      value: Сделай громче на 0
  condition: []
  action:
  - service: media_player.play_media
    target:
      entity_id: '{{ trigger.event.data.entity_id }}'
    data:
      media_content_type: text
      media_content_id: "Температура в Ванной {{ states(\"sensor.vannaia_temperature\")|round
        }} {% if states(\"sensor.vannaia_temperature\")|round % 10 == 1 %}\n  Градус\n{%
        elif states(\"sensor.vannaia_temperature\")|round % 10 in [2,3,4] %}\n  Градуса\n{%
        else %}\n  Градусов\n{% endif %}\n"
  mode: single
- id: '1656852246735'
  alias: Влажность в Ванной
  description: ''
  trigger:
  - platform: event
    event_type: yandex_speaker
    event_data:
      value: Сделай громче на 0
  condition: []
  action:
  - service: media_player.play_media
    target:
      entity_id: '{{ trigger.event.data.entity_id }}'
    data:
      media_content_type: text
      media_content_id: "Влажность в ванной {{ states(\"sensor.vannaia_humidity\")|round
        }} {% if states(\"sensor.vannaia_humidity\")|round % 10 == 1 %}\n  процент\n{%
        elif states(\"sensor.vannaia_humidity\")|round % 10 in [2,3,4] %}\n  процента\n{%
        else %}\n  процентов\n{% endif %}\n"
  mode: single
- id: '1660294918602'
  alias: Кроватка Свет
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: dda9e831283559b0651d9ddd57258f1a
    type: action
    subtype: 'on'
    discovery_id: 0x84fd27fffe958faa action_on
  condition: []
  action:
  - type: turn_on
    device_id: 4af685f30748da02fa3cb33386647ef5
    entity_id: light.ikea_hub
    domain: light
  mode: single
- id: '1660295151302'
  alias: Кроватка Свет  выкл
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: dda9e831283559b0651d9ddd57258f1a
    type: action
    subtype: 'off'
    discovery_id: 0x84fd27fffe958faa action_off
  condition: []
  action:
  - type: turn_off
    device_id: 4af685f30748da02fa3cb33386647ef5
    entity_id: light.ikea_hub
    domain: light
  mode: single
- id: '1665396707305'
  alias: Считана метка 1
  description: ''
  trigger:
  - platform: tag
    tag_id: d81409a6-3886-4785-a4ed-71eb24ff4284
  condition:
  - condition: trigger
    id: ''
  action:
  - service: light.turn_on
    data: {}
    target:
      device_id: 095cc4a1906608467b8fc881f770a8f4
  mode: single
- id: '1665396914066'
  alias: Считана метка Test
  description: '1'
  trigger:
  - platform: tag
    tag_id: T1
  condition: []
  action:
  - service: light.turn_on
    data: {}
    target:
      device_id: 095cc4a1906608467b8fc881f770a8f4
  mode: single
- id: '1665396995658'
  alias: Считана метка Test
  description: '12'
  trigger:
  - platform: tag
    tag_id: T1
  condition: []
  action:
  - service: light.turn_on
    data: {}
    target:
      device_id: 5de269720ac950358c70d3752ea8cf78
  mode: single
- id: '1665397199510'
  alias: Считана метка Test
  description: куку
  trigger:
  - platform: tag
    tag_id: T1
  condition:
  - condition: state
    entity_id: switch.sonoff_100093f84f
    state: 'off'
  action:
  - type: turn_off
    device_id: 5de269720ac950358c70d3752ea8cf78
    entity_id: switch.sonoff_100093f84f
    domain: switch
  mode: single
- id: '1671198270678'
  alias: Лоджия 3
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_3_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_3_single
  condition: []
  action:
  - type: turn_on
    device_id: 0fda4e41ef85148c83ac722dc7de4f5a
    entity_id: switch.lodzhiia_trek_right
    domain: switch
  mode: single
- id: '1671217273387'
  alias: Лампы над ПК
  description: Включение ламп над пк
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_1_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_1_single
  condition: []
  action:
  - type: turn_on
    device_id: 0fda4e41ef85148c83ac722dc7de4f5a
    entity_id: switch.lodzhiia_trek_left
    domain: switch
  mode: single
- id: '1671217632183'
  alias: Лампы над ПК 2
  description: Выключение ламп над пк
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_2_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_2_single
  condition: []
  action:
  - type: turn_off
    device_id: 0fda4e41ef85148c83ac722dc7de4f5a
    entity_id: switch.lodzhiia_trek_left
    domain: switch
  mode: single
- id: '1671217854164'
  alias: Треке Шина
  description: Включение Трек шины Лоджия
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_4_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_4_single
  condition: []
  action:
  - type: turn_off
    device_id: 0fda4e41ef85148c83ac722dc7de4f5a
    entity_id: switch.lodzhiia_trek_right
    domain: switch
  mode: single
- id: '1671217959208'
  alias: Трек Светильники
  description: Вылючение Трек шины Лоджия
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_4_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_4_single
  condition: []
  action:
  - type: turn_off
    device_id: 0fda4e41ef85148c83ac722dc7de4f5a
    entity_id: switch.lodzhiia_right
    domain: switch
  mode: single
- id: '1671218063118'
  alias: Зал Люстра ВКЛ
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_5_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_5_single
  condition: []
  action:
  - type: turn_on
    device_id: 5de269720ac950358c70d3752ea8cf78
    entity_id: switch.sonoff_100093f84f
    domain: switch
  mode: single
- id: '1671218110344'
  alias: Люстра Залк ВЫКЛ
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 17d8ec6b3aaf79fdfa8b3b98aac53bc0
    type: action
    subtype: button_6_single
    discovery_id: 0x04cf8cdf3c797e03 action_button_6_single
  condition: []
  action:
  - type: turn_off
    device_id: 5de269720ac950358c70d3752ea8cf78
    entity_id: switch.sonoff_100093f84f
    domain: switch
  mode: single
- alias: Ночной режим света Ванная
  trigger:
    platform: time
    at: '23:00:00'
  action:
  - service: light.turn_on
    entity_id: light.yeelight_ceiling1_0x7c447fc
    data:
      color_temp: 2700
      brightness: 5
  id: ea07c13098a14057a4c022bb7fc1b0de
- alias: Дневной Режим Ванная
  trigger:
    platform: time
    at: 06:00:00
  action:
  - service: light.turn_on
    entity_id: light.yeelight_ceiling1_0x7c447fc
    data:
      color_temp_kelvin: 6535
      brightness: 255
  id: 39cc5badea3c42159d635f3ec05692e0