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: > -