Умный дом - обзор - Home Assistant - Делаем сами - нестандартные сенсоры, выключатели

Аватар автора
Умная бытовая техника: умные решения для дома
Фрагмент 5. Обзор установки интеграции layout-card. Делаем нестандартные сенсоры и выключатели. /config/configuration.yaml -------------------------------------------- # В секцию "resources" добавить: - url: /hacsfiles/lovelace-layout-card/layout-card.js type: module /config/ui-lovelace.yaml ---------------------------------------- # В секцию "button_card_templates" добавить: Датчики с наименованием button_sensor_name: show_name: true size: 40px aspect_ratio: 3/1 tap_action: action: none styles: name: - justify-self: end - align-self: end - padding: 3px 6px - font-size: 13px - font-weight: bold card: - box-shadow: &1px 2px 1px #808080' - margin: 0px 0px 4px 0px - padding: 2% icon: - color: '#1872F2' grid: - grid-template-areas: &temp temp"' - grid-template-columns: 35px 1fr 1fr - grid-template-rows: 1fr custom_fields: temp: - font-weight: 450 - font-size: 16px - justify-self: start - padding-left: 15px custom_fields: temp: | [[[ var temp = entity.state; var temp_a = entity.attributes.unit_of_measurement; return temp + &&+ temp_a; ]]] Датчики со статусом button_sensor_okno: show_name: true size: 40px aspect_ratio: 3/1 tap_action: action: none styles:...

0/0


0/0

0/0

0/0