From 411d00fc324b311a5b83921b66db554134c0b2c4 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Thu, 4 Jul 2024 08:31:54 +0200 Subject: [PATCH] Added remaining bticino cover devices --- .storage/lovelace.lovelace_devices | 305 +++++++++++++++++++ packages/BTicino/bticino_customizations.yaml | 40 +++ 2 files changed, 345 insertions(+) diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 2080ea48..451a4c77 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -4300,6 +4300,311 @@ } ] }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "NT4027C - Tapparella 0x00047400015a3e19" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-stack", + "cards": [ + { + "type": "horizontal-stack", + "cards": [ + { + "type": "picture", + "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", + "image": "/local/images/devices/BTicino/BTI_NT4027C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "cover.0x00047400015a3e19", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x00047400015a3e19", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015a3e19_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015a3e19_led_if_on", + "icon": "mdi:led-outline", + "show_state": false + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "NT4027C - Tapparella 0x00047400015ada4b" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-stack", + "cards": [ + { + "type": "horizontal-stack", + "cards": [ + { + "type": "picture", + "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", + "image": "/local/images/devices/BTicino/BTI_NT4027C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "cover.0x00047400015ada4b", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x00047400015ada4b", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada4b_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada4b_led_if_on", + "icon": "mdi:led-outline", + "show_state": false + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "NT4027C - Tapparella 0x00047400015adb10" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-stack", + "cards": [ + { + "type": "horizontal-stack", + "cards": [ + { + "type": "picture", + "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", + "image": "/local/images/devices/BTicino/BTI_NT4027C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "cover.0x00047400015adb10", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x00047400015adb10", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015adb10_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015adb10_led_if_on", + "icon": "mdi:led-outline", + "show_state": false + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "NT4027C - Tapparella 0x00047400015ada3d" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-stack", + "cards": [ + { + "type": "horizontal-stack", + "cards": [ + { + "type": "picture", + "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", + "image": "/local/images/devices/BTicino/BTI_NT4027C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "cover.0x00047400015ada3d", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x00047400015ada3d", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada3d_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada3d_led_if_on", + "icon": "mdi:led-outline", + "show_state": false + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "NT4027C - Tapparella 0x00047400015ada3f" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-stack", + "cards": [ + { + "type": "horizontal-stack", + "cards": [ + { + "type": "picture", + "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", + "image": "/local/images/devices/BTicino/BTI_NT4027C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "cover.0x00047400015ada3f", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x00047400015ada3f", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada3f_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x00047400015ada3f_led_if_on", + "icon": "mdi:led-outline", + "show_state": false + } + ] + } + ] + } + ] + } + ] + }, { "type": "entities", "show_header_toggle": "off", diff --git a/packages/BTicino/bticino_customizations.yaml b/packages/BTicino/bticino_customizations.yaml index 33ff0580..dd0b546e 100644 --- a/packages/BTicino/bticino_customizations.yaml +++ b/packages/BTicino/bticino_customizations.yaml @@ -42,3 +42,43 @@ homeassistant: friendly_name: "LED se acceso" switch.0x000474000159053e_led_in_dark: friendly_name: "LED se spento" + + # BTI-NT4027C - Tapparella 0x00047400015a3e19 + cover.0x00047400015a3e19: + supported_features: 15 + switch.0x00047400015a3e19_led_if_on: + friendly_name: "LED se acceso" + switch.0x00047400015a3e19_led_in_dark: + friendly_name: "LED se spento" + + # BTI-NT4027C - Tapparella 0x00047400015ada4b + cover.0x00047400015ada4b: + supported_features: 15 + switch.0x00047400015ada4b_led_if_on: + friendly_name: "LED se acceso" + switch.0x00047400015ada4b_led_in_dark: + friendly_name: "LED se spento" + + # BTI-NT4027C - Tapparella 0x00047400015adb10 + cover.0x00047400015adb10: + supported_features: 15 + switch.0x00047400015adb10_led_if_on: + friendly_name: "LED se acceso" + switch.0x00047400015adb10_led_in_dark: + friendly_name: "LED se spento" + + # BTI-NT4027C - Tapparella 0x00047400015ada3d + cover.0x00047400015ada3d: + supported_features: 15 + switch.0x00047400015ada3d_led_if_on: + friendly_name: "LED se acceso" + switch.0x00047400015ada3d_led_in_dark: + friendly_name: "LED se spento" + + # BTI-NT4027C - Tapparella 0x00047400015ada3f + cover.0x00047400015ada3f: + supported_features: 15 + switch.0x00047400015ada3f_led_if_on: + friendly_name: "LED se acceso" + switch.0x00047400015ada3f_led_in_dark: + friendly_name: "LED se spento" -- 2.47.3