From ccfe607e640dfd6c1a50593752034f8703a4f996 Mon Sep 17 00:00:00 2001 From: caiosweet <24454580+caiosweet@users.noreply.github.com> Date: Sun, 2 Jul 2023 06:39:52 +0200 Subject: [PATCH 1/2] fixed error in log during uninstall --- README.md | 2 ++ .../caiosweet/notifier_startup_configuration.yaml | 2 +- packages/centro_notifiche/hub_main.yaml | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e34e28..5d2ab65 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ To get started, go to the **[Wiki page][Wiki]**. [![][blueprint_import_shield]][blueprint_notifier_startup_configuration] +![Blueprint Configuration](https://github.com/caiosweet/Package-Notification-HUB-AppDaemon/wiki/assets/videos/blueprint_centro_notifiche_configuration_and_changes.gif) + ___ ## Dashboard preview diff --git a/blueprints/automation/caiosweet/notifier_startup_configuration.yaml b/blueprints/automation/caiosweet/notifier_startup_configuration.yaml index 85ae829..3790407 100755 --- a/blueprints/automation/caiosweet/notifier_startup_configuration.yaml +++ b/blueprints/automation/caiosweet/notifier_startup_configuration.yaml @@ -1,7 +1,7 @@ blueprint: name: Centro Notifiche - Configurazione Avvio description: > - `v5.1.1` + `v5.1.2` Blueprint per la configurazione del [Package Centro Notifiche](https://api.github.com/repos/caiosweet/Package-Notification-HUB-AppDaemon/releases/latest) per Appdaemon [Notifier Center](https://github.com/jumping2000/notifier) 🔔 - diff --git a/packages/centro_notifiche/hub_main.yaml b/packages/centro_notifiche/hub_main.yaml index 159c5cb..c695423 100755 --- a/packages/centro_notifiche/hub_main.yaml +++ b/packages/centro_notifiche/hub_main.yaml @@ -1,7 +1,7 @@ homeassistant: customize: package.cn: - version: &v "5.1.1" + version: &v "5.1.2" date: 📅 01/11/2019 - Updated 27/06/2023 info: https://github.com/caiosweet/Package-Notification-HUB-AppDaemon/wiki links: @@ -158,8 +158,8 @@ template: {% set no_workday = integration_entities('workday') | select('is_state', 'off') | list %} {% set holidays = is_state('input_boolean.notifier_holidays', 'on') %} {% set day = iif(holidays or no_workday, 'holidays', 'weekdays') %} - {% set start = state_attr('input_datetime.notifier_start_%s'%day, 'timestamp') %} - {% set end = state_attr('input_datetime.notifier_end_%s'%day, 'timestamp') %} + {% set start = state_attr('input_datetime.notifier_start_%s'%day, 'timestamp') | default(0, true) %} + {% set end = state_attr('input_datetime.notifier_end_%s'%day, 'timestamp') | default(0, true) %} {% set dnd = iif(start <= end, (start <= nt < end), (nt >= start or nt < end)) %} {{ iif(speech and not priority, dnd, (not (speech or priority)), false) }} icon: >- From 1cd91195ecf4acba245db588d8139f127c12d0da Mon Sep 17 00:00:00 2001 From: caiosweet <24454580+caiosweet@users.noreply.github.com> Date: Sun, 2 Jul 2023 12:18:12 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 5d2ab65..3b0615f 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,39 @@ ___ +# License + +MIT License + +Copyright (c) 2019-2023 Caio Sweet + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +___ + +$$\textbf{\color{#0099ff} \huge Enjoy Yourself \unicode{x1f973} Caio Sweet}$$ + +

+ +

+

+ [notifier]: https://github.com/jumping2000/notifier