Compare commits

...

5 Commits

11 changed files with 2043 additions and 907 deletions

View File

@@ -1 +1 @@
{"pid": 67, "version": 1, "ha_version": "2025.12.4", "start_ts": 1766360674.64677} {"pid": 66, "version": 1, "ha_version": "2025.12.4", "start_ts": 1770245525.0375628}

View File

@@ -1,4 +1,4 @@
- id: "1729875991469" - id: '1729875991469'
alias: BagnoOvest-save-energy alias: BagnoOvest-save-energy
description: Thermostat will close upon window open description: Thermostat will close upon window open
use_blueprint: use_blueprint:
@@ -6,27 +6,27 @@
input: input:
window_sensor: binary_sensor.bagnoovest_finestra_contact window_sensor: binary_sensor.bagnoovest_finestra_contact
climate_target: climate.bagnoovest_termosifone climate_target: climate.bagnoovest_termosifone
- id: "1729887529602" - id: '1729887529602'
alias: BagnoPT-save-energy alias: BagnoPT-save-energy
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/heat_save.yaml path: homeassistant/heat_save.yaml
input: input:
window_sensor: binary_sensor.bagnopt_finestra_contact window_sensor: binary_sensor.bagnopt_finestra_contact
climate_target: climate.bagnopt_termosifone climate_target: climate.bagnopt_termosifone
ext_temp_limit: 17 ext_temp_limit: 17
- id: "1729887632269" - id: '1729887632269'
alias: SoggiornoPT-save-energy alias: SoggiornoPT-save-energy
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/heat_save.yaml path: homeassistant/heat_save.yaml
input: input:
window_sensor: binary_sensor.soggiornopt_finestrasud_contact window_sensor: binary_sensor.soggiornopt_finestrasud_contact
climate_target: climate.soggiornopt_termosifonesud climate_target: climate.soggiornopt_termosifonesud
ext_temp_limit: 17 ext_temp_limit: 17
- id: "1731705145404" - id: '1731705145404'
alias: Luce Automatica Scala Mansarda alias: Luce Automatica Scala Mansarda
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/motion_light_dual_ng.yaml path: homeassistant/motion_light_dual_ng.yaml
input: input:
@@ -35,9 +35,9 @@
light_target: light_target:
device_id: 702137a6f2c17b89fdb0598f7003743c device_id: 702137a6f2c17b89fdb0598f7003743c
no_motion_wait: 30 no_motion_wait: 30
- id: "1732739522749" - id: '1732739522749'
alias: Luce Automatica Taverna Garage alias: Luce Automatica Taverna Garage
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/motion_light_trix_ng.yaml path: homeassistant/motion_light_trix_ng.yaml
input: input:
@@ -49,17 +49,17 @@
use_sun: false use_sun: false
dont_disturb: false dont_disturb: false
no_motion_wait: 40 no_motion_wait: 40
- id: "1736805701473" - id: '1736805701473'
alias: P1confort-light alias: P1confort-light
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/confort_light.yaml path: homeassistant/confort_light.yaml
input: input:
light_target: light_target:
device_id: e0397b54f1c2d1514be403e2996ca368 device_id: e0397b54f1c2d1514be403e2996ca368
- id: "1738366774549" - id: '1738366774549'
alias: Test-motion-light-ng alias: Test-motion-light-ng
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/motion_light_dual_ng.yaml path: homeassistant/motion_light_dual_ng.yaml
input: input:
@@ -69,23 +69,22 @@
device_id: 9f46c5b7c07f1495e0f4bf8d6f72a525 device_id: 9f46c5b7c07f1495e0f4bf8d6f72a525
no_motion_wait: 0 no_motion_wait: 0
dont_disturb: false dont_disturb: false
- id: "1738426726761" - id: '1738426726761'
alias: Test-Pulsante01 alias: Test-Pulsante01
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/button_action.yaml path: homeassistant/button_action.yaml
input: input:
light_target: light_target:
entity_id: light.test_lamp1 entity_id: light.test_lamp1
- id: "1739393696392" - id: '1739393696392'
alias: Power-load-high alias: Power-load-high
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/power-load-high.yaml path: homeassistant/power-load-high.yaml
- id: "1740247429602" - id: '1740247429602'
alias: EVcharge-process alias: EVcharge-process
description: description: Manage charge of 2 cars sequentially via 2 controlled plugs (requires
Manage charge of 2 cars sequentially via 2 controlled plugs (requires
power and energy entities) power and energy entities)
use_blueprint: use_blueprint:
path: homeassistant/evcharge-process.yaml path: homeassistant/evcharge-process.yaml
@@ -95,14 +94,14 @@
use_entity1: input_boolean.evcharge_front_request use_entity1: input_boolean.evcharge_front_request
use_entity2: input_boolean.evcharge_back_request use_entity2: input_boolean.evcharge_back_request
start_button: input_button.evcharge_start start_button: input_button.evcharge_start
- id: "1740332596550" - id: '1740332596550'
alias: test-email alias: test-email
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/test_macro.yaml path: homeassistant/test_macro.yaml
- id: "1748185066312" - id: '1748185066312'
alias: Luce-Garage alias: Luce-Garage
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/presence_light.yaml path: homeassistant/presence_light.yaml
input: input:
@@ -112,79 +111,79 @@
use_sun: false use_sun: false
dont_disturb: false dont_disturb: false
no_presence_wait: 180 no_presence_wait: 180
- id: "1753031203413" - id: '1753031203413'
alias: Apri-Cancelletto alias: Apri-Cancelletto
description: "" description: ''
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- input_button.apri_cancelletto - input_button.apri_cancelletto
conditions: [] conditions: []
actions: actions:
- action: switch.turn_on - action: switch.turn_on
metadata: {} metadata: {}
data: {} data: {}
target: target:
device_id: 4a76297a493304816b1084c6979f4801 device_id: 4a76297a493304816b1084c6979f4801
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
seconds: 0 seconds: 0
milliseconds: 200 milliseconds: 200
- action: switch.turn_off - action: switch.turn_off
metadata: {} metadata: {}
data: {} data: {}
target: target:
device_id: 4a76297a493304816b1084c6979f4801 device_id: 4a76297a493304816b1084c6979f4801
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
seconds: 2 seconds: 2
milliseconds: 0 milliseconds: 0
- action: switch.turn_off - action: switch.turn_off
metadata: {} metadata: {}
data: {} data: {}
target: target:
device_id: 4a76297a493304816b1084c6979f4801 device_id: 4a76297a493304816b1084c6979f4801
mode: single mode: single
- id: "1753371588861" - id: '1753371588861'
alias: Cancelletto Alert alias: Cancelletto Alert
description: "" description: ''
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- binary_sensor.cancelletto_visitor - binary_sensor.cancelletto_visitor
to: "on" to: 'on'
conditions: [] conditions: []
actions: actions:
- device_id: 61ac46de1cc773e1b7d5faa379ee465b - device_id: 61ac46de1cc773e1b7d5faa379ee465b
domain: mobile_app domain: mobile_app
type: notify type: notify
message: Qualcuno ha suonato al Cancelletto usa Home Assistant message: Qualcuno ha suonato al Cancelletto usa Home Assistant
- device_id: f0ad21f704179a15735313abaa4bd548 - device_id: f0ad21f704179a15735313abaa4bd548
domain: mobile_app domain: mobile_app
type: notify type: notify
message: Qualcuno ha suonato al Cancelletto usa Home Assistant message: Qualcuno ha suonato al Cancelletto usa Home Assistant
enabled: false enabled: false
- device_id: 46e6c7b252a23f498de8602ca380d0a9 - device_id: 46e6c7b252a23f498de8602ca380d0a9
domain: mobile_app domain: mobile_app
type: notify type: notify
message: Qualcuno ha suonato al Cancelletto usa Home Assistant message: Qualcuno ha suonato al Cancelletto usa Home Assistant
enabled: true enabled: true
- device_id: 163daed9ae6074cfa3a10b866ab5d2e0 - device_id: 163daed9ae6074cfa3a10b866ab5d2e0
domain: mobile_app domain: mobile_app
type: notify type: notify
message: Qualcuno ha suonato al Cancelletto usa Home Assistant message: Qualcuno ha suonato al Cancelletto usa Home Assistant
enabled: false enabled: false
- device_id: 8836f21983cdb6b245d3be58d7acd7d7 - device_id: 8836f21983cdb6b245d3be58d7acd7d7
domain: mobile_app domain: mobile_app
type: notify type: notify
message: Qualcuno ha suonato al Cancelletto usa Home Assistant message: Qualcuno ha suonato al Cancelletto usa Home Assistant
enabled: false enabled: false
mode: single mode: single
- id: "1756127648616" - id: '1756127648616'
alias: Luce Automatica Scala Taverna alias: Luce Automatica Scala Taverna
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/motion_light_dual_ng.yaml path: homeassistant/motion_light_dual_ng.yaml
input: input:
@@ -195,43 +194,43 @@
use_sun: false use_sun: false
dont_disturb: false dont_disturb: false
no_motion_wait: 30 no_motion_wait: 30
- id: "1757599657040" - id: '1757599657040'
alias: Luce-Giardino alias: Luce-Giardino
description: "" description: ''
triggers: triggers:
- trigger: sun - trigger: sun
event: sunset event: sunset
offset: "1500" offset: '1500'
id: giardino-on id: giardino-on
- trigger: time - trigger: time
at: "22:00:00" at: '22:00:00'
id: giardino-off id: giardino-off
conditions: [] conditions: []
actions: actions:
- if: - if:
- condition: trigger - condition: trigger
id: id:
- giardino-on - giardino-on
then: then:
- action: light.turn_on - action: light.turn_on
metadata: {} metadata: {}
data: {} data: {}
target: target:
device_id: 52db33441371f13f0f217a2e66668a2c device_id: 52db33441371f13f0f217a2e66668a2c
- if: - if:
- condition: trigger - condition: trigger
id: id:
- giardino-off - giardino-off
then: then:
- action: light.turn_off - action: light.turn_off
metadata: {} metadata: {}
data: {} data: {}
target: target:
device_id: 52db33441371f13f0f217a2e66668a2c device_id: 52db33441371f13f0f217a2e66668a2c
mode: single mode: single
- id: "1757871524695" - id: '1757871524695'
alias: EVcharge_process_PRO alias: EVcharge_process_PRO
description: "" description: ''
use_blueprint: use_blueprint:
path: homeassistant/evcharge_process_pro.yaml path: homeassistant/evcharge_process_pro.yaml
input: input:
@@ -243,161 +242,196 @@
charged_entity1: input_number.evcharge_front_charged charged_entity1: input_number.evcharge_front_charged
charged_entity2: input_number.evcharge_back_charged charged_entity2: input_number.evcharge_back_charged
stop_button: input_button.evcharge_pro_stop stop_button: input_button.evcharge_pro_stop
- id: "1758560143754" - id: '1758560143754'
alias: Cancelletto-on alias: Cancelletto-on
description: "" description: ''
triggers: triggers:
- type: turned_on - type: turned_on
device_id: 3c1785ee92ef67b2536571f4e318db84 device_id: 3c1785ee92ef67b2536571f4e318db84
entity_id: 34480c273e9378e8582a881acd4a7871 entity_id: 34480c273e9378e8582a881acd4a7871
domain: binary_sensor domain: binary_sensor
trigger: device trigger: device
conditions: [] conditions: []
actions: actions:
- action: input_boolean.turn_on - action: input_boolean.turn_on
metadata: {} metadata: {}
data: {} data: {}
target: target:
entity_id: input_boolean.cancelletto_video_duration entity_id: input_boolean.cancelletto_video_duration
mode: single mode: single
- id: "1758560334981" - id: '1758560334981'
alias: Cancelletto-off alias: Cancelletto-off
description: "" description: ''
triggers: triggers:
- type: turned_off - type: turned_off
device_id: 3c1785ee92ef67b2536571f4e318db84 device_id: 3c1785ee92ef67b2536571f4e318db84
entity_id: 34480c273e9378e8582a881acd4a7871 entity_id: 34480c273e9378e8582a881acd4a7871
domain: binary_sensor domain: binary_sensor
trigger: device trigger: device
for: for:
hours: 0 hours: 0
minutes: 0 minutes: 0
seconds: 48 seconds: 48
conditions: [] conditions: []
actions: actions:
- action: input_boolean.turn_off - action: input_boolean.turn_off
metadata: {} metadata: {}
data: {} data: {}
target: target:
entity_id: input_boolean.cancelletto_video_duration entity_id: input_boolean.cancelletto_video_duration
mode: single mode: single
- id: "1759608901579" - id: '1759608901579'
alias: Luce-Manuale-Salotto alias: Luce-Manuale-Salotto
description: "" description: ''
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- switch.luce_salotto_ctrl - switch.luce_salotto_ctrl
id: luce-salotto-toogle id: luce-salotto-toogle
conditions: [] conditions: []
actions: actions:
- action: light.toggle - action: light.toggle
metadata: {} metadata: {}
data: {} data: {}
target: target:
entity_id: light.luce_salotto entity_id: light.luce_salotto
mode: single mode: single
- id: "1763497184744" - id: '1763497184744'
alias: ETcontroller_pub_setFixHPlimit alias: ETcontroller_pub_setFixHPlimit
description: "" description: ''
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- input_select.fix_hp_power - input_select.fix_hp_power
conditions: [] conditions: []
actions: actions:
- action: mqtt.publish - action: mqtt.publish
metadata: {} metadata: {}
data_template: data_template:
topic: etcontroller/sw/commands topic: etcontroller/sw/commands
payload: payload: "{\"cmd\": \"setFixHPlimit\", \"params\": {\n \"level\": \"{{states('input_select.fix_hp_power')}}\",\n
"{\"cmd\": \"setFixHPlimit\", \"params\": {\n \"level\": \"{{states('input_select.fix_hp_power')}}\",\n \ \"duration\": {{states('input_number.fix_hp_power_duration')}} }}"
\ \"duration\": {{states('input_number.fix_hp_power_duration')}} }}"
mode: single mode: single
- id: "1764007463105" - id: '1764007463105'
alias: ETcontroller_fix_limit_copy alias: ETcontroller_fix_limit_copy
description: description: 'This Automation allows to copy status from MQTT read HP Fix Limit
"This Automation allows to copy status from MQTT read HP Fix Limit
set by ETcontroller.py to internal input_select.fix_hp_power in order to align. set by ETcontroller.py to internal input_select.fix_hp_power in order to align.
dashboards when fix_hp_limit expires dashboards when fix_hp_limit expires
" '
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- sensor.fix_hp_level_read - sensor.fix_hp_level_read
conditions: [] conditions: []
actions: actions:
- action: input_select.select_option - action: input_select.select_option
target: target:
entity_id: input_select.fix_hp_power entity_id: input_select.fix_hp_power
data_template: data_template:
option: "{{ states('sensor.fix_hp_level_read') }}" option: '{{ states(''sensor.fix_hp_level_read'') }}'
mode: single mode: single
- id: "1765575450095" - id: '1765575450095'
alias: Xmas-light-mgmt alias: Xmas-light-mgmt
description: "" description: ''
triggers: triggers:
- trigger: sun - trigger: sun
event: sunset event: sunset
offset: "-900" offset: '-900'
id: Xmas-light-on id: Xmas-light-on
- trigger: time - trigger: time
at: 01:00:00 at: 01:00:00
id: Xmas-light-off id: Xmas-light-off
- trigger: time - trigger: time
at: 06:50:00 at: 06:50:00
id: Xmas-light-on id: Xmas-light-on
- trigger: sun - trigger: sun
event: sunrise event: sunrise
offset: "900" offset: '900'
id: Xmas-light-off id: Xmas-light-off
conditions: [] conditions: []
actions: actions:
- choose: - choose:
- conditions: - conditions:
- condition: trigger - condition: trigger
id: id:
- Xmas-light-on - Xmas-light-on
sequence: sequence:
- action: light.turn_on - action: light.turn_on
metadata: {} metadata: {}
target: target:
entity_id: entity_id:
- light.presa_smart_1 - light.presa_smart_1
- light.presa_smart_11 - light.presa_smart_11
- light.presa_smart_2 - light.presa_smart_2
data: {} data: {}
- conditions: - conditions:
- condition: trigger - condition: trigger
id: id:
- Xmas-light-off - Xmas-light-off
sequence: sequence:
- action: light.turn_off - action: light.turn_off
metadata: {} metadata: {}
target: target:
entity_id: entity_id:
- light.presa_smart_1 - light.presa_smart_1
- light.presa_smart_2 - light.presa_smart_2
- light.presa_smart_11 - light.presa_smart_11
data: {} data: {}
- conditions: [] - conditions: []
sequence: sequence:
- action: light.turn_off - action: light.turn_off
metadata: {} metadata: {}
target: target:
entity_id: entity_id:
- light.presa_smart_1 - light.presa_smart_1
- light.presa_smart_2 - light.presa_smart_2
- light.presa_smart_11 - light.presa_smart_11
data: {} data: {}
default: default:
- action: light.turn_off - action: light.turn_off
metadata: {} metadata: {}
target: target:
entity_id: entity_id:
- light.presa_smart_1 - light.presa_smart_1
- light.presa_smart_2 - light.presa_smart_2
- light.presa_smart_11 - light.presa_smart_11
data: {} data: {}
mode: single
- id: '1769710512491'
alias: Check-Batteries
description: ''
use_blueprint:
path: Blackshome/low-battery-notifications-and-actions.yaml
input:
include_button: enable_button_trigger
button_entity: input_button.check_batteries
include_time: time_disabled
include_easy_notify: enable_easy_okay_notify
notify_device:
- 61ac46de1cc773e1b7d5faa379ee465b
- id: '1770243140821'
alias: ETHW_PRO_reset
description: ''
triggers:
- trigger: state
entity_id:
- input_button.ethw_pro_reset
conditions: []
actions:
- action: switch.turn_on
metadata: {}
target:
device_id: 83fcb9d6fe7420d69f1b4cb63adfddae
data: {}
- delay:
hours: 0
minutes: 0
seconds: 6
milliseconds: 0
- action: switch.turn_off
metadata: {}
target:
device_id: 83fcb9d6fe7420d69f1b4cb63adfddae
data: {}
mode: single mode: single

View File

@@ -102,7 +102,7 @@ variables:
# here list of mobile APP to be notified # here list of mobile APP to be notified
recipient_list_notification: recipient_list_notification:
- notify.mobile_app_tiziano_iphone15pro - notify.mobile_app_tiziano_iphone15pro
- notify.mobile_app_emanuele_s24 # - notify.mobile_app_emanuele_s24
recipient_list_gmail: recipient_list_gmail:
title: "EVcharge Process" title: "EVcharge Process"
@@ -208,7 +208,7 @@ actions:
data: data:
value: "{{ evcharge_entity1_energy_charged }}" value: "{{ evcharge_entity1_energy_charged }}"
- delay: 60 - delay: 120
# - delay: 10 # TEST ONLY # - delay: 10 # TEST ONLY
# take energy counter after charging # take energy counter after charging
@@ -303,7 +303,7 @@ actions:
data: data:
value: "{{ evcharge_entity2_energy_charged }}" value: "{{ evcharge_entity2_energy_charged }}"
- delay: 60 - delay: 120
# - delay: 10 # TEST ONLY # - delay: 10 # TEST ONLY
# take energy counter after charging # take energy counter after charging

View File

@@ -7,7 +7,7 @@ blueprint:
variables: variables:
recipient_list: recipient_list:
- notify.mobile_app_tiziano_iphone15pro - notify.mobile_app_tiziano_iphone15pro
- notify.mobile_app_emanuele_s24 # - notify.mobile_app_ipad_di_emanuele
- notify.mobile_app_enza_iphone13 - notify.mobile_app_enza_iphone13
triggers: triggers:

View File

@@ -52,13 +52,13 @@ actions:
message: >- message: >-
"TEST -> >>{{ evcharge_entity1_power_var }}<<" "TEST -> >>{{ evcharge_entity1_power_var }}<<"
title: "EVcharge process from HA" title: "EVcharge process from HA"
# - action: notify.tiziano_trabattoni_gmail_com - action: notify.tiziano_trabattoni_gmail_com
# data: data:
# title: "{{ recipient_list_gmail['title'] }}" title: "{{ recipient_list_gmail['title'] }}"
# target: "{{ recipient_list_gmail['target'] }}" target: "{{ recipient_list_gmail['target'] }}"
# message: >- message: >-
# "TEST -> >>{{ evcharge_entity1_power_var }}<<" "TEST -> >>{{ evcharge_entity1_power_var }}<<"
#
# action: notify.example_gmail_com # action: notify.example_gmail_com
# data: # data:
# message: "test" # message: "test"

8
bubble_card/config.yaml Normal file
View File

@@ -0,0 +1,8 @@
migration:
done: true
sources:
entity_count: 4
yaml_count: 0
written_count: 4
migrated_at: '2026-02-04T22:54:45.633Z'
version: 1

View File

@@ -0,0 +1,7 @@
default:
name: Default
version: ''
creator: ''
description: Empty and enabled by default. Add your custom styles and/or JS templates here to apply them to all cards by pressing the <ha-icon icon="mdi:pencil"></ha-icon> button above.
code: ''
is_global: true

View File

@@ -0,0 +1,33 @@
icon_container_color:
name: 'Example: Customize the icon container color'
version: v1.2
creator: Clooos
description: |
A list of predefined colors to customize the icon container color.
Configure this module via the editor or in YAML, for example:
<br><br>
<code-block><pre>
icon_container_color:
color: light-blue
</pre></code-block>
supported:
- calendar
- pop-up
- cover
- button
- media-player
- climate
- select
code: |
.bubble-icon-container,
.bubble-day-chip {
opacity: 1 !important;
--bubble-icon-background-color: var(--${this.config.icon_container_color?.color}-color) !important;
}
editor:
- name: color
label: Color
selector:
ui_color:
include_none: true
link: https://github.com/Clooos/Bubble-Card/discussions/1231

View File

@@ -0,0 +1,88 @@
izequbes_custom_colors:
name: IzeQubes Custom Colors
version: v1.0
creator: IzeQube
description: |
Allows the user to change the accent color of the card with the standard Home Assistant predefined colors.
This change only effects the card if the entity is "turned on".
The user can also override the icon color and background background of the icon container.
Last but not least the user can change the opacity of both the card background color as the icon.
unsupported:
- horizontal-buttons-stack
- separator
code: |
${(() => {
// Icon Color
let bubbleIcon = card.querySelector(".bubble-icon");
if(bubbleIcon && this.config.izequbes_custom_colors.main_icon) {
if(!!this.config.izequbes_custom_colors.main_icon.icon_opacity) {
bubbleIcon.style.opacity = this.config.izequbes_custom_colors.main_icon.icon_opacity;
}
if(!!this.config.izequbes_custom_colors.main_icon.icon_color) {
bubbleIcon.style.color = `var(--${this.config.izequbes_custom_colors.main_icon.icon_color}-color)`;
}
}
// Icon Background
let bubbleIconContainer = card.querySelector(".bubble-icon-container");
if(bubbleIconContainer && this.config.izequbes_custom_colors.main_icon) {
if(!!this.config.izequbes_custom_colors.main_icon.background_color) {
bubbleIconContainer.style.background = `var(--${this.config.izequbes_custom_colors.main_icon.background_color}-color)`;
}
}
// Card Color
if(this.config.izequbes_custom_colors.card) {
if(!!this.config.izequbes_custom_colors.card.background_color) {
card.style.setProperty('--bubble-accent-color', `var(--${this.config.izequbes_custom_colors.card.background_color}-color)`);
}
if(!!this.config.izequbes_custom_colors.card.opacity) {
card.querySelector(".bubble-button-background").style.opacity = this.config.izequbes_custom_colors.card.opacity;
}
}
})()}
editor:
- name: main_icon
type: expandable
title: Main Icon Color Settings
icon: mdi:list-box-outline
schema:
- type: string
name: background_color
label: Background Color
selector:
ui_color: {}
- name: icon_color
label: Icon Color
selector:
ui_color: {}
- name: icon_opacity
label: Icon Opacity
selector:
number:
min: 0
max: 1
step: 0.1
mode: slider
- name: card
type: expandable
title: Card Color Settings
icon: mdi:list-box-outline
schema:
- name: background_color
label: Background Color
selector:
ui_color:
include_none: true
- name: opacity
label: Opacity
selector:
number:
min: 0
max: 1
step: 0.1
mode: slider
link: https://github.com/Clooos/Bubble-Card/discussions/1246

View File

@@ -0,0 +1,75 @@
progress_bar:
name: Progress Bar
version: 1.1.1
creator: inukiwi
description: Show a progress bar on "State" buttons, much like how sliders appear. Also supports different colors for custom conditions.
supported:
- button
code: |-
.bubble-button-background {
${card.state = this.config.progress_bar?.custom_entity ? hass.states[this.config.progress_bar?.custom_entity].state : state};
${card.percentage = (card.state - this.config.progress_bar?.min_value) / (this.config.progress_bar?.max_value - this.config.progress_bar?.min_value) * 100};
${card.color = this.config.progress_bar?.progress_color};
${card.color = this.config.progress_bar?.conditional_colors?.condition_1 && checkConditionsMet([].concat(this.config.progress_bar?.conditional_colors?.condition_1), hass) ? this.config.progress_bar?.conditional_colors?.condition_color_1 : card.color };
${card.color = this.config.progress_bar?.conditional_colors?.condition_2 && checkConditionsMet([].concat(this.config.progress_bar?.conditional_colors?.condition_2), hass) ? this.config.progress_bar?.conditional_colors?.condition_color_2 : card.color };
opacity: 1 !important;
background:
linear-gradient(
to right,
var(--${card.color}-color)
${card.percentage}%,
transparent
${card.percentage}%
);
}
editor:
- name: min_value
label: Minimum value
required: true
default: 0
selector:
number:
mode: box
- name: max_value
label: Maximum value
required: true
default: 100
selector:
number:
mode: box
- name: progress_color
label: Progress Color
required: true
default: '#00ff00'
selector:
ui_color:
include_state: true
- name: custom_entity
label: Custom state entity
selector:
entity: {}
- type: expandable
name: conditional_colors
title: Conditional colors
icon: mdi:tune
expanded: false
schema:
- name: condition_1
label: Condition 1 (use color below if met)
selector:
condition: {}
- name: condition_color_1
label: Condition 1 color (only used if condition 1 is defined)
selector:
ui_color:
include_state: true
- name: condition_2
label: Condition 2 (use color below if met)
selector:
condition: {}
- name: condition_color_2
label: Condition 2 color (only used if condition 2 is defined)
selector:
ui_color:
include_state: true
link: https://github.com/Clooos/Bubble-Card/discussions/1634