✅ CSS3 color names - Список
☑️ Пакадж показанный в видео:
circle_light:
homeassistant:
customize:
automation.cicle_light_color_sync:
friendly_name: Синхронизация цвета списка и светильника
automation.cicle_light_color_change:
friendly_name: Переключение элементов списка циклической подсветки
automation.cicle_light_color:
friendly_name: Cтарт стоп режима циклической подсветки ленты
input_select:
cicle_light_color:
name: Список цветов
options:
- crimson
- deeppink
- hotpink
- lightpink
- red
- orangered
- orange
- lightsalmon
- darksalmon
- coral
- goldenrod
- gold
- yellow
- yellowgreen
- greenyellow
- limegreen
- lime
- lawngreen
- green
- aquamarine
- mediumturquoise
- turquoise
- darkturquoise
- deepskyblue
- dodgerblue
- royalblue
- blue
- darkblue
- darkslateblue
- darkmagenta
- darkorchid
- blueviolet
- mediumpurple
- purple
- mediumorchid
- orchid
- plum
- violet
- fuchsia
- magenta
- darkviolet
- mediumvioletred
automation:
- alias: cicle_light_color_sync
initial_state: true
trigger:
- platform: state
entity_id: input_select.cicle_light_color
action:
- service: light.turn_on
entity_id: light.yeelight_0x531e4b4
data_template:
color_name: >
{{trigger.to_state.state}}
transition: 2
- alias: cicle_light_color_change
initial_state: false
trigger:
- platform: time_pattern
seconds: '/5'
action:
- service: input_select.select_next
target:
entity_id: input_select.cicle_light_color
- alias: cicle_light_color
initial_state: true
trigger:
- platform: state
entity_id: sensor.0x00158d000154a353_action
to: 'single'
action:
- choose:
- conditions:
- condition: state
entity_id: light.yeelight_0x531e4b4
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.yeelight_0x531e4b4
data_template:
color_name: >
{{states('input_select.cicle_light_color')}}
transition: 2
- service: automation.turn_on
target:
entity_id: automation.cicle_light_color_change
- conditions:
- condition: state
entity_id: light.yeelight_0x531e4b4
state: 'on'
sequence:
- service: light.turn_off
entity_id: light.yeelight_0x531e4b4
- service: automation.turn_off
target:
entity_id: automation.cicle_light_color_change
- Webmoney - Z243592584952
- BTC - 1Gzr7WQugfnPuWVawu47EiCMTDUBqCAshj
- ETH - 0xa0ce3E29Cf537013649Ae9cdbc08C4853fF91FAc
- LTC - ltc1qs493yk2wk9ywx5h6aruk4p9zm75hx42ekv4ym2
- TRX - TFTCLqvS1tMBwokRHBwz1TCDJ4oD1Z5zPk