Last active
April 27, 2026 00:43
-
-
Save kai-zer-ru/ab6accecb186673eb48b726a3cb773d3 to your computer and use it in GitHub Desktop.
Автоматизация с экраном Яндекс ТВ станции бейсик (https://github.com/AlexxIT/YandexStation/pull/768)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| binary_sensor: | |
| - state: '{{ state_attr(''media_player.yandex_station_n20c4c002jefck'', ''screen_on'') }}' | |
| icon: mdi:television | |
| name: Экран телевизора | |
| default_entity_id: binary_sensor.yandex_tv_screen_state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: Подсветка тв в зависимости от экрана телека | |
| description: "" | |
| triggers: | |
| - trigger: state | |
| entity_id: | |
| - binary_sensor.yandex_tv_screen_state | |
| to: | |
| - "off" | |
| id: to_off | |
| - trigger: state | |
| entity_id: | |
| - binary_sensor.yandex_tv_screen_state | |
| to: | |
| - "on" | |
| id: to_on | |
| conditions: [] | |
| actions: | |
| - choose: | |
| - conditions: | |
| - condition: trigger | |
| id: | |
| - to_off | |
| sequence: | |
| - if: | |
| - condition: not | |
| conditions: | |
| - condition: media_player.is_playing | |
| target: | |
| device_id: c95cf8d350f114173caa494c465a9e33 | |
| options: {} | |
| then: | |
| - action: light.turn_off | |
| metadata: {} | |
| target: | |
| device_id: ddfc21f297e1799508ff7af3327f9737 | |
| data: {} | |
| - action: switch.turn_off | |
| metadata: {} | |
| target: | |
| entity_id: switch.akustika | |
| data: {} | |
| - conditions: | |
| - condition: trigger | |
| id: | |
| - to_on | |
| sequence: | |
| - alias: Если акустика выключена — включаем | |
| if: | |
| - condition: device | |
| type: is_off | |
| device_id: 237baec3d031ce20e995f194df5e0934 | |
| entity_id: 7214c351013274a28f32bf8fae87ee5e | |
| domain: switch | |
| then: | |
| - action: switch.turn_on | |
| target: | |
| device_id: 237baec3d031ce20e995f194df5e0934 | |
| data: {} | |
| - delay: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 6 | |
| milliseconds: 0 | |
| - action: button.press | |
| target: | |
| entity_id: button.pult_akustika_akustika | |
| data: {} | |
| - if: | |
| - condition: light.is_off | |
| target: | |
| device_id: ddfc21f297e1799508ff7af3327f9737 | |
| options: {} | |
| then: | |
| - action: light.turn_on | |
| metadata: {} | |
| target: | |
| device_id: ddfc21f297e1799508ff7af3327f9737 | |
| data: {} | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment