diff --git a/examples/example_automations.yaml b/examples/example_automations.yaml index a3c7b69..0efbbef 100644 --- a/examples/example_automations.yaml +++ b/examples/example_automations.yaml @@ -4,7 +4,7 @@ #----------------------------------------------------------------------------------------------------# automation: #----------------------------------------------------------------------------------------------------# - # Home Assistant Start/Final Write/Close/Stop/Restart + # Home Assistant Start/Final Write/Close/Stop/Restart [👍 Integrated into blueprint projects] #----------------------------------------------------------------------------------------------------# # - alias: Home Assistant Start Stop Hub # description: "Notification Home Assistant Start/Final Write/Close/Stop/Restart" diff --git a/extra/utility.yaml b/extra/utility.yaml new file mode 100644 index 0000000..2b1182c --- /dev/null +++ b/extra/utility.yaml @@ -0,0 +1,37 @@ +command_line: +#------------------------------------------------------------------------------# +# Home Assistant initialized sesnor +#------------------------------------------------------------------------------# + - sensor: + name: HA Start + command: > + grep -m1 'Home Assistant initialized' home-assistant.log + | awk '{ print $6, $7, $8, $9, $10 }' + value_template: '{{ value | default("Error", true) }}' + scan_interval: 525600 # 1 year + +#------------------------------------------------------------------------------# +# Home Assistant Setup of domain sensor +#------------------------------------------------------------------------------# + - sensor: + name: Verifica tempi setup + command: > + grep 'Setup of domain' home-assistant.log + | tail | cut -c -255 | awk '$11 > 10 { print $9, $11 " sec" }' + value_template: '{{ value | default("Setup Domain Ok", true) }}' + scan_interval: 525600 # 1 year + +## N.B. In order to use sensor.ha_start, set the info logs in this way + +# logger: +# default: warn # or whatever you want (info, error...) +# logs: +# homeassistant.bootstrap: info + +## If you need to use these sensors outside my project, +## then remember to insert this service when Home Assistant restarts. + +# service: homeassistant.update_entity +# entity_id: +# - sensor.ha_start +# - sensor.verifica_tempi_setup \ No newline at end of file diff --git a/lovelace/card_menu.yaml b/lovelace/card_menu.yaml index 3c43c97..4529f7d 100755 --- a/lovelace/card_menu.yaml +++ b/lovelace/card_menu.yaml @@ -7,8 +7,8 @@ card: cards: - type: markdown content: > -
🤵 - {{ states('sensor.notifier_config') }}
+
🤵 {{ states('sensor.notifier_config') + }}
{% if states('sensor.notifier_debug_error') not in ['on','OK'] %} diff --git a/lovelace/card_menu_custom.yaml b/lovelace/card_menu_custom.yaml index eccf187..4b65a2e 100755 --- a/lovelace/card_menu_custom.yaml +++ b/lovelace/card_menu_custom.yaml @@ -5,7 +5,7 @@ cards:
🤵 {{states('sensor.notifier_config')}}
- {% if not states('sensor.notifier_debug_error') in ['on','OK']%} + {% if states('sensor.notifier_debug_error') not in ['on','OK']%} diff --git a/lovelace/card_menu_hui.yaml b/lovelace/card_menu_hui.yaml index 22d3c06..83af818 100755 --- a/lovelace/card_menu_hui.yaml +++ b/lovelace/card_menu_hui.yaml @@ -8,10 +8,10 @@ card: show_header_toggle: false entities: - type: custom:hui-markdown-card - content: | -
🤵 {{ states('sensor.notifier_config') }}
- {% if states('sensor.notifier_debug_error') not in ['on','OK'] %} - + content: > +
🤵 {{ states('sensor.notifier_config') }} +
{% if states('sensor.notifier_debug_error') not in + ['on','OK'] %} {{states('sensor.notifier_debug_error')}} {% endif %} - type: divider style: @@ -90,7 +90,6 @@ card: show_icon: true show_name: false show_state: false - action_name: Reset tap_action: action: toggle confirmation: diff --git a/lovelace/card_my_menu_custom.yaml b/lovelace/card_my_menu_custom.yaml index ef8176e..b2caf72 100755 --- a/lovelace/card_my_menu_custom.yaml +++ b/lovelace/card_my_menu_custom.yaml @@ -184,7 +184,6 @@ cards: - input_number.notifier_night_volume - input_number.notifier_late_night_volume - input_number.notifier_intercom_volume - - entity: binary_sensor.notifier_dnd layout: name|state name: DND diff --git a/packages/centro_notifiche/hub_main.yaml b/packages/centro_notifiche/hub_main.yaml index 4c506fe..5d117c2 100755 --- a/packages/centro_notifiche/hub_main.yaml +++ b/packages/centro_notifiche/hub_main.yaml @@ -1,7 +1,7 @@ homeassistant: customize: package.cn: - version: "5.0.9" + version: "5.0.10" date: 📅 01/11/2019 - Updated 11/06/2023 info: https://github.com/caiosweet/Package-Notification-HUB-AppDaemon/wiki links: @@ -9,7 +9,7 @@ homeassistant: package: https://github.com/caiosweet/Package-Notification-HUB-AppDaemon web: https://hassiohelp.eu/ extra_attributes: &extra_attributes - package: "Centro Notifiche 🔔 5.0.9" + package: "Centro Notifiche 🔔 5.0.10" authors: "Caio & Gianpi" #######################################-#######################################