From: Giorgio Ravera Date: Thu, 19 Feb 2026 13:08:17 +0000 (+0100) Subject: Updated themses, added ssl certificate expiration, replaced bar-card with entity... X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=0c88aa3b0462e29e7fe714cf5ac902d377c4a5af;p=homeassistant.git Updated themses, added ssl certificate expiration, replaced bar-card with entity-progress-card --- diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 3a4647ba..62e7c413 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -1730,54 +1730,55 @@ ] } ] - }, - { - "type": "custom:bar-card", - "show_header_toggle": false, - "state_color": false, - "positions": { - "indicator": "off", - "name": "outside", - "value": "outside", - "icon": "inside" - }, - "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\nbar-card-value {\n \n margin: 0px;\n font-size: 15px;\n text-shadow: 1px 1px #0005;\n}\nbar-card-name {\n margin: 0px;\n font-size: 15px;\n text-shadow: 1px 1px #0005;\n}\nha-icon {\n color: darkgrey;\n}", - "entities": [ - { - "entity": "sensor.canon_tr8500_series_black_bk", - "name": "BK", - "color": "black", - "width": "85%" - }, - { - "entity": "sensor.canon_tr8500_series_black_pgbk", - "name": "PGBK", - "color": "black", - "width": "85%" - }, - { - "entity": "sensor.canon_tr8500_series_cyan", - "name": "C", - "color": "cyan", - "width": "85%" - }, - { - "entity": "sensor.canon_tr8500_series_magenta", - "name": "M", - "color": "magenta", - "width": "85%" - }, - { - "entity": "sensor.canon_tr8500_series_yellow", - "name": "Y", - "color": "yellow", - "width": "85%" - } - ] } ] } ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:entity-progress-card", + "entity": "sensor.canon_tr8500_series_black_bk", + "name": "BK", + "fill_direction": "left-to-right", + "bar_color": "black", + "bar_size": "large" + }, + { + "type": "custom:entity-progress-card", + "entity": "sensor.canon_tr8500_series_black_pgbk", + "name": "PGBK", + "fill_direction": "left-to-right", + "bar_color": "#555555", + "bar_size": "large" + }, + { + "type": "custom:entity-progress-card", + "entity": "sensor.canon_tr8500_series_cyan", + "name": "C", + "fill_direction": "left-to-right", + "bar_color": "cyan", + "bar_size": "large" + }, + { + "type": "custom:entity-progress-card", + "entity": "sensor.canon_tr8500_series_magenta", + "name": "M", + "fill_direction": "left-to-right", + "bar_color": "magenta", + "bar_size": "large" + }, + { + "type": "custom:entity-progress-card", + "entity": "sensor.canon_tr8500_series_yellow", + "name": "Y", + "fill_direction": "left-to-right", + "bar_color": "yellow", + "bar_size": "large" + } + ] } ] } @@ -3259,20 +3260,57 @@ "layout_type": "custom:grid-layout" }, { - "type": "entities", - "entities": [ + "type": "custom:vertical-stack-in-card", + "cards": [ { - "entity": "input_boolean.central_heating" + "type": "entities", + "entities": [ + { + "entity": "input_boolean.central_heating" + }, + { + "entity": "select.netatmo_casa_ravera_testa" + }, + { + "entity": "input_number.netatmo_manual_temperature" + } + ], + "state_color": false, + "title": "Impostazioni" }, { - "entity": "select.netatmo_casa_ravera_testa" + "type": "markdown", + "content": "
\n" }, { - "entity": "input_number.netatmo_manual_temperature" + "type": "entities", + "entities": [ + { + "entity": "input_boolean.valvola_zona_giorno" + }, + { + "entity": "input_boolean.valvola_cucina" + }, + { + "entity": "input_boolean.valvola_sala" + }, + { + "entity": "input_boolean.valvola_studio" + }, + { + "entity": "input_boolean.valvola_bagno_piccolo" + }, + { + "entity": "input_boolean.valvola_bagno_grande" + }, + { + "entity": "input_boolean.valvola_camera" + } + ], + "title": "Accensione / Spegnimento", + "show_header_toggle": false } ], - "state_color": false, - "title": "Impostazioni", "view_layout": { "position": "sidebar" } @@ -3678,6 +3716,124 @@ } ] }, + { + "type": "grid", + "cards": [ + { + "type": "heading", + "heading": "Sensore Acqua Veranda - SONOFF SNZB-05P", + "heading_style": "title" + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "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": "https://www.zigbee2mqtt.io/images/devices/SNZB-05P.png" + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "binary_sensor.sensore_acqua_veranda_water_leak", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.sensore_acqua_veranda_battery", + "name": "Batteria" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "grid", + "cards": [ + { + "type": "heading", + "icon": "mdi:motion-sensor", + "heading": "Sesori Presenza", + "heading_style": "title" + } + ], + "column_span": 3 + }, + { + "type": "grid", + "cards": [ + { + "type": "heading", + "heading": "Sensore Presenza Bagno Grande - SONOFF SNZB-03P", + "heading_style": "title" + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "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": "https://www.zigbee2mqtt.io/images/devices/SNZB-03P.png" + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "binary_sensor.sensore_presenza_bagno_grande_occupancy", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.sensore_presenza_bagno_grande_illumination", + "name": "Illuminazione" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.sensore_presenza_bagno_grande_battery", + "name": "Batteria" + } + ] + } + ] + } + ] + } + ] + } + ] + }, { "type": "grid", "cards": [ diff --git a/.storage/lovelace.lovelace_settings b/.storage/lovelace.lovelace_settings index cf2eb470..e3a02886 100644 --- a/.storage/lovelace.lovelace_settings +++ b/.storage/lovelace.lovelace_settings @@ -134,10 +134,50 @@ "entity": "sensor.current_version" }, { - "entity": "sensor.server_giorgioravera_it_scadenza_del_certificato" + "entity": "sensor.zigbee2mqtt_bridge_version" + }, + { + "entity": "sensor.zigbee2mqtt_bridge_coordinator_type" } ] }, + { + "type": "heading", + "icon": "mdi:certificate", + "heading": "Certificati", + "heading_style": "title" + }, + { + "type": "custom:entity-progress-card", + "name": "Validità Certificato SSL", + "icon": "mdi:certificate", + "decimal": 0, + "min_value": 0, + "max_value": 90, + "bar_orientation": "rtl", + "custom_theme": [ + { + "min": 0, + "max": 10, + "color": "red" + }, + { + "min": 10, + "max": 20, + "color": "yellow-color" + }, + { + "min": 20, + "max": 90, + "color": "green" + } + ], + "entity": "sensor.certificato_ssl_giorni_rimanenti", + "grid_options": { + "columns": 12, + "rows": 1 + } + }, { "type": "heading", "icon": "mdi:update", diff --git a/README.md b/README.md index b4b56e36..5b3136bd 100644 --- a/README.md +++ b/README.md @@ -34,20 +34,19 @@ My server is an Intel NUC (NUC10i5FNH) with [Proxmox Virtual Environment](https: The following integration are part of HACS system. Install HACS first: * [HACS](https://github.com/hacs/integration) ### Integrations -* [browser_mod](https://github.com/thomasloven/hass-browser_mod) +* [browser-mod](https://github.com/thomasloven/hass-browser_mod) * [Monitor Docker](https://github.com/ualex73/monitor_docker) * [MercedeME 2020](https://github.com/ReneNulschDE/mbapi2020) * [pfSense integration for Home Assistant](https://github.com/travisghansen/hass-pfsense) (not currently used) * [Scheduler Component](https://github.com/nielsfaber/scheduler-component) (not currently used) ### Frontend * [auto-entities](https://github.com/thomasloven/lovelace-auto-entities) -* [Bar Card](https://github.com/custom-cards/bar-card) * [Battery State Card](https://github.com/maxwroc/battery-state-card) * [button-card](https://github.com/custom-cards/button-card) * [card-mod](https://github.com/thomasloven/lovelace-card-mod) * [clock-weather-card](https://github.com/pkissling/clock-weather-card) -* [Darkish Theme](https://github.com/78wesley/Home-Assistant-Darkish-Theme) -* [homeassistant_electrolux_status](https://github.com/mauro-midolo/homeassistant_electrolux_status) (Electrolux EOB9S21WX and AEG NSC7P751DS) +* [homeassistant-electrolux-status](https://github.com/mauro-midolo/homeassistant_electrolux_status) (Electrolux EOB9S21WX and AEG NSC7P751DS) +* [locelace-entity-progress-card](https://github.com/francois-le-ko4la/lovelace-entity-progress-card) * [Lovelace Horizon Card](https://github.com/rejuvenate/lovelace-horizon-card) * [fold-entity-row](https://github.com/thomasloven/lovelace-fold-entity-row) * [Home Assistant Swipe Navigation](https://github.com/zanna-37/hass-swipe-navigation) @@ -60,11 +59,13 @@ The following integration are part of HACS system. Install HACS first: * [Mushroom Themes](https://github.com/piitaya/lovelace-mushroom-themes) (not currently used) * [Paper Buttons Row](https://github.com/jcwillox/lovelace-paper-buttons-row) (not currently used) * [Plotly Graph Card](https://github.com/dbuezas/lovelace-plotly-graph-card) -* [Reeder Dark Theme](https://github.com/hekm77/reeder_dark_theme) * [Scheduler Card](https://github.com/nielsfaber/scheduler-card) (not currently used) * [Shutter Card](https://github.com/Deejayfool/hass-shutter-card) * [Tabbed Card](https://github.com/kinghat/tabbed-card) * [Zigbee2mqtt Networkmap Card](https://github.com/azuwis/zigbee2mqtt-networkmap) +### Themes +* [Aqua Fiesta](https://github.com/home-assistant-community-themes/aqua-fiesta) +* [Blue Night](https://github.com/home-assistant-community-themes/blue-night) ## Custom Component Used (not included in HACS) The following integrations are not part of HACS. It's required to clone the related repository in the folder git_repos. * [bravia-auth-and-remote](https://github.com/breunigs/bravia-auth-and-remote) diff --git a/automations/doors.yaml b/automations/doors.yaml index 067813ac..f47e0e4b 100644 --- a/automations/doors.yaml +++ b/automations/doors.yaml @@ -27,6 +27,9 @@ - condition: time after: "15:00:00" before: "05:00:00" + - condition: state + entity_id: group.lights + state: "off" action: - delay: 00:00:01 diff --git a/automations/themes.yaml b/automations/themes.yaml index 175462d4..8447c399 100644 --- a/automations/themes.yaml +++ b/automations/themes.yaml @@ -25,11 +25,11 @@ data_template: name: >- {% if is_state('sensor.home_mode', 'giorno') %} - default + classic_blue {% endif %} {% if is_state('sensor.home_mode', 'notte') %} - darkish + blue_night {% endif %} {% if is_state('sensor.home_mode', 'vacanza') %} - reeder_dark + aqua-fiesta {% endif %} diff --git a/customizations/certificates.yaml b/customizations/certificates.yaml index b6e028fa..dc9ab598 100644 --- a/customizations/certificates.yaml +++ b/customizations/certificates.yaml @@ -4,3 +4,7 @@ sensor.server_giorgioravera_it_scadenza_del_certificato: friendly_name: Scadenza Certificato SSL + +sensor.server_giorgioravera_it_scadenza: + friendly_name: "Certificato SSL - Giorni Rimanenti" + #icon: mdi:certificate diff --git a/log/logbook.yaml b/log/logbook.yaml index cc426b14..8b48926f 100644 --- a/log/logbook.yaml +++ b/log/logbook.yaml @@ -102,6 +102,9 @@ exclude: - sensor.xraver_duckdns_org #- sensor.xraver_duckdns_org_ipv6 - sensor.externalip_giorgioravera_it + # Certificates + - sensor.server_giorgioravera_it_scadenza_del_certificato + - sensor.server_giorgioravera_it_scadenza # Canon - sensor.canon_tr8500_series - sensor.canon_tr8500_series_black_bk diff --git a/log/recorder.yaml b/log/recorder.yaml index 4be23b66..e41b0af1 100644 --- a/log/recorder.yaml +++ b/log/recorder.yaml @@ -104,6 +104,9 @@ exclude: - sensor.xraver_duckdns_org #- sensor.xraver_duckdns_org_ipv6 - sensor.externalip_giorgioravera_it + # Certificates + - sensor.server_giorgioravera_it_scadenza_del_certificato + - sensor.server_giorgioravera_it_scadenza # Canon - sensor.canon_tr8500_series - sensor.canon_tr8500_series_black_bk diff --git a/packages/update/update_types.yaml b/packages/update/update_types.yaml index 58b99dac..22718af0 100644 --- a/packages/update/update_types.yaml +++ b/packages/update/update_types.yaml @@ -49,16 +49,17 @@ group: name: HACS modules icon: mdi:alpha-h-box entities: + - update.aqua_fiesta_theme_update - update.auto_entities_update - - update.bar_card_update - update.battery_state_card_entity_row_update + - update.blue_night_theme_update - update.browser_mod_update + - update.bubble_card_update - update.button_card_update - update.card_mod_update - - update.clear_theme_dark_update - update.clock_weather_card_update - - update.darkish_theme_update - - update.electrolux_care_integration_v2_not_official_update + - update.electrolux_status_update + - update.entity_progress_card_update - update.fold_entity_row_update - update.hacs_update - update.home_assistant_swipe_navigation_update @@ -72,7 +73,6 @@ group: - update.mushroom_update - update.paper_buttons_row_update - update.plotly_graph_card_update - - update.reeder_dark_theme_update - update.shutter_card_update - update.tabbed_card_update - update.vehicle_info_card_update diff --git a/template/certs.yaml b/template/certs.yaml new file mode 100644 index 00000000..f76f740b --- /dev/null +++ b/template/certs.yaml @@ -0,0 +1,20 @@ +###################################################################### +# Sensors: Certificates +###################################################################### + +- trigger: + - platform: homeassistant + event: start + - platform: time_pattern + seconds: "/30" + - platform: time + at: "00:00:00" + sensor: + - name: "Certificato SSL - Giorni Rimanenti" + unique_id: certificato_ssl_giorni_rimanenti + unit_of_measurement: "giorni" + availability: > + {{ states('sensor.server_giorgioravera_it_scadenza_del_certificato') not in ['unknown','unavailable','none',''] }} + state: > + {% set expiry = as_datetime(states('sensor.server_giorgioravera_it_scadenza_del_certificato')) %} + {{ ((expiry - now()).total_seconds() / 86400) | round(0) }}