},
{
"type": "custom:button-card",
- "template": "template_device_generic_button",
+ "template": "template_device_generic_state",
"entity": "switch.0x0004740001583a4a_device_mode",
- "icon": "mdi:lightbulb-on-50"
+ "icon": "mdi:lightbulb-on-50",
+ "show_state": false
},
{
"type": "custom:button-card",
- "template": "template_device_generic_button",
+ "template": "template_device_generic_state",
"entity": "switch.0x0004740001583a4a_led_in_dark",
- "icon": "mdi:led-outline"
+ "icon": "mdi:led-outline",
+ "show_state": false
},
{
"type": "custom:button-card",
- "template": "template_device_generic_button",
+ "template": "template_device_generic_state",
"entity": "switch.0x0004740001583a4a_led_if_on",
- "icon": "mdi:led-outline"
+ "icon": "mdi:led-outline",
+ "show_state": false
}
]
}
},
{
"type": "custom:button-card",
- "template": "template_device_generic_button",
+ "template": "template_device_generic_state",
"entity": "switch.0x000474000159053e_led_in_dark",
- "icon": "mdi:led-outline"
+ "icon": "mdi:led-outline",
+ "show_state": false
},
{
"type": "custom:button-card",
- "template": "template_device_generic_button",
+ "template": "template_device_generic_state",
"entity": "switch.0x000474000159053e_led_if_on",
- "icon": "mdi:led-outline"
+ "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": "4411C - Dimmer 0x0004740000254d99"
+ },
+ {
+ "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.0x0004740000254d99",
+ "name": "Stato"
+ },
+ {
+ "type": "custom:button-card",
+ "template": "template_device_firmware",
+ "entity": "update.0x0004740000254d99",
+ "name": "Firmare"
+ },
+ {
+ "type": "custom:button-card",
+ "template": "template_device_generic_state",
+ "entity": "switch.0x0004740000254d99_device_mode",
+ "icon": "mdi:lightbulb-on-50",
+ "show_state": false
+ },
+ {
+ "type": "custom:button-card",
+ "template": "template_device_generic_state",
+ "entity": "switch.0x0004740000254d99_led_in_dark",
+ "icon": "mdi:led-outline",
+ "show_state": false
+ },
+ {
+ "type": "custom:button-card",
+ "template": "template_device_generic_state",
+ "entity": "switch.0x0004740000254d99_led_if_on",
+ "icon": "mdi:led-outline",
+ "show_state": false
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
}
]
}
customize:
# BTI-NT4411C - Dimmer 0x0004740001583a4a
- light.0x0004740001583a4a:
- supported_color_modes: null
- supported_features: 0
+ #light.0x0004740001583a4a:
+ # supported_color_modes: null
+ # supported_features: 0
switch.0x0004740001583a4a_device_mode:
friendly_name: "Funzione Dimmer"
switch.0x0004740001583a4a_led_if_on:
number.0x0004740001583a4a_ballast_minimum_level:
friendly_name: "Illuminazione minima"
+ # BTI-4411C - Dimmer 0x0004740000254d99
+ #light.0x0004740000254d99:
+ # supported_color_modes: null
+ # supported_features: 0
+ switch.0x0004740000254d99_device_mode:
+ friendly_name: "Funzione Dimmer"
+ switch.0x0004740000254d99_led_if_on:
+ friendly_name: "LED se acceso"
+ switch.0x0004740000254d99_led_in_dark:
+ friendly_name: "LED se spento"
+ number.0x0004740000254d99_ballast_maximum_level:
+ friendly_name: "Illuminazione massima"
+ number.0x0004740000254d99_ballast_minimum_level:
+ friendly_name: "Illuminazione minima"
+
# BTI-NT4027C - Tapparella 0x000474000159053e
cover.0x000474000159053e:
supported_features: 15
--- /dev/null
+######################################################################
+# BTicino Package - Group
+######################################################################
+
+group:
+ bticino:
+ name: BTicino Devices
+ icon: mdi:alpha-b-box
+ entities:
+ - update.0x0004740001583a4a
+ - update.0x0004740000254d99
+ - update.0x000474000159053e
+ - update.0x000474000025912a
+ - update.0x00047400002599cf
+ - update.0x0004740000249a4e
+ - update.0x000474000015be6b
+ - update.0x0004740000249aad
- switch.0x0004740001583a4a_led_if_on
- switch.0x0004740001583a4a_led_in_dark
+ # BTI-4411C - Dimmer 0x0004740000254d99
+ - select.0x0004740000254d99_identify
+ - number.0x0004740000254d99_ballast_maximum_level
+ - number.0x0004740000254d99_ballast_minimum_level
+ - switch.0x0004740000254d99_device_mode
+ - switch.0x0004740000254d99_led_if_on
+ - switch.0x0004740000254d99_led_in_dark
+
# BTI-NT4027C - Tapparella 0x000474000159053e
- select.0x000474000159053e_identify
- select.0x000474000159053e_calibration_mode
- switch.0x0004740001583a4a_led_if_on
- switch.0x0004740001583a4a_led_in_dark
+ # BTI-4411C - Dimmer 0x0004740000254d99
+ - select.0x0004740000254d99_identify
+ - number.0x0004740000254d99_ballast_maximum_level
+ - number.0x0004740000254d99_ballast_minimum_level
+ - switch.0x0004740000254d99_device_mode
+ - switch.0x0004740000254d99_led_if_on
+ - switch.0x0004740000254d99_led_in_dark
+
# BTI-NT4027C - Tapparella 0x000474000159053e
- select.0x000474000159053e_identify
- select.0x000474000159053e_calibration_mode
--- /dev/null
+
+######################################################################
+# BTicino Package - Operations Script
+######################################################################
+
+automation:
+ ######################################################################
+ # BTicino: Update Notification
+ ######################################################################
+ - alias: "BTicino: Update Notification"
+ variables:
+ pending_update_list: >
+ {{ states.update
+ | selectattr('state','eq','on')
+ | selectattr('entity_id', 'in', states.group.bticino.attributes.entity_id)
+ | map(attribute='entity_id')
+ | list
+ }}
+ trigger:
+ - platform: state
+ entity_id: group.bticino
+ to: 'on'
+ - platform: homeassistant
+ event: start
+
+ condition:
+ condition: state
+ entity_id: group.bticino
+ state: 'on'
+
+ action:
+ - delay: '00:00:10'
+ - service: script.notify_text
+ data_template:
+ title: "BTicino - Aggiornamento"
+ message: >
+ Sono disponibili {{pending_update_list | count }} aggiornamenti per i dispositivi BTicino:
+ {% for entity_id in pending_update_list %}
+ -> {{ state_attr(entity_id, 'friendly_name')|replace(" - Aggiornamento Firmware", "") }}: {{ state_attr(entity_id, 'latest_version') }}
+ {%- endfor -%}
+ notification_id: "update"
+ enable_persistent: true
+ - service: input_boolean.turn_on
+ entity_id: input_boolean.update_bticino
\ No newline at end of file
entity_id:
- input_boolean.update_hacs
- input_boolean.update_shelly
+ - input_boolean.update_bticino
to: 'off'
action:
<<: *customize
input_boolean.update_shelly:
<<: *customize
+ input_boolean.update_bticino:
+ <<: *customize
group.update:
<<: *customize
automation.update_hacs_notification:
# Shelly
update_shelly:
- name: Aggiornamento Shelly
+ name: Aggiornamenti Shelly
+ initial: off
+ icon: mdi:package-up
+
+ # BTicino
+ update_bticino:
+ name: Aggiornamenti BTicino
initial: off
icon: mdi:package-up
#- input_boolean.update_homeassistant
- input_boolean.update_hacs
- input_boolean.update_shelly
+ - input_boolean.update_bticino