From bab13c4c49c620365aca31d725ee33e46b8b13f8 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 10 Sep 2024 07:01:51 +0200 Subject: [PATCH] Added Bticino 4411C --- .storage/lovelace.lovelace_devices | 68 ++++++++++++++++++++ packages/BTicino/bticino_customizations.yaml | 15 +++++ packages/BTicino/bticino_groups.yaml | 1 + packages/BTicino/bticino_log.yaml | 18 ++++++ 4 files changed, 102 insertions(+) diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 445d9800..0c244353 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -4242,6 +4242,74 @@ } ] }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "4411C - Dimmer 0x0004740000292ec9" + }, + { + "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_4411C.png", + "tap_action": { + "action": "none" + } + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "light.0x0004740000292ec9", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.0x0004740000292ec9", + "name": "Firmare" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x0004740000292ec9_device_mode", + "icon": "mdi:lightbulb-on-50", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x0004740000292ec9_led_in_dark", + "icon": "mdi:led-outline", + "show_state": false + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "switch.0x0004740000292ec9_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 dd0b546e..24d367df 100644 --- a/packages/BTicino/bticino_customizations.yaml +++ b/packages/BTicino/bticino_customizations.yaml @@ -35,6 +35,21 @@ homeassistant: number.0x0004740000254d99_ballast_minimum_level: friendly_name: "Illuminazione minima" + # BTI-4411C - Dimmer 0x0004740000292ec9 + #light.0x0004740000292ec9: + # supported_color_modes: null + # supported_features: 0 + switch.0x0004740000292ec9_device_mode: + friendly_name: "Funzione Dimmer" + switch.0x0004740000292ec9_led_if_on: + friendly_name: "LED se acceso" + switch.0x0004740000292ec9_led_in_dark: + friendly_name: "LED se spento" + number.0x0004740000292ec9_ballast_maximum_level: + friendly_name: "Illuminazione massima" + number.0x0004740000292ec9_ballast_minimum_level: + friendly_name: "Illuminazione minima" + # BTI-NT4027C - Tapparella 0x000474000159053e cover.0x000474000159053e: supported_features: 15 diff --git a/packages/BTicino/bticino_groups.yaml b/packages/BTicino/bticino_groups.yaml index d81436be..db58964e 100644 --- a/packages/BTicino/bticino_groups.yaml +++ b/packages/BTicino/bticino_groups.yaml @@ -10,6 +10,7 @@ group: # Dimmers - update.0x0004740000254d99 - update.0x0004740001583a4a + - update.0x0004740000292ec9 # Lights - update.0x000474000025912a - update.0x00047400002599cf diff --git a/packages/BTicino/bticino_log.yaml b/packages/BTicino/bticino_log.yaml index 96fa3a3e..86455dfa 100644 --- a/packages/BTicino/bticino_log.yaml +++ b/packages/BTicino/bticino_log.yaml @@ -23,6 +23,15 @@ logbook: - switch.0x0004740000254d99_led_if_on - switch.0x0004740000254d99_led_in_dark + # BTI-4411C - Dimmer 0x0004740000292ec9 + - select.0x0004740000292ec9_identify + - number.0x0004740000292ec9_ballast_maximum_level + - number.0x0004740000292ec9_ballast_minimum_level + - switch.0x0004740000292ec9_device_mode + - select.0x0004740000292ec9_power_on_behavior + - switch.0x0004740000292ec9_led_if_on + - switch.0x0004740000292ec9_led_in_dark + # BTI-3584C - Wired Relay 0x000474000025912a - select.0x000474000025912a_power_on_behavior @@ -117,6 +126,15 @@ recorder: - switch.0x0004740000254d99_led_if_on - switch.0x0004740000254d99_led_in_dark + # BTI-4411C - Dimmer 0x0004740000292ec9 + - select.0x0004740000292ec9_identify + - number.0x0004740000292ec9_ballast_maximum_level + - number.0x0004740000292ec9_ballast_minimum_level + - switch.0x0004740000292ec9_device_mode + - select.0x0004740000292ec9_power_on_behavior + - switch.0x0004740000292ec9_led_if_on + - switch.0x0004740000292ec9_led_in_dark + # BTI-3584C - Wired Relay 0x000474000025912a - select.0x000474000025912a_power_on_behavior -- 2.47.3