Skip to content

System monitor IV

En este nueva entrega de System monitor, vamos a instalar unos sensores que contaran todo lo que tenemos en Home Assistant. Van a contar las luces, los interruptores, las automatizaciones, los scripts, etc…

Para instalarlos, sólo copia este código en tu archivo sensors.yaml

####  CONTADORES    ####

  
- platform: template
  sensors:
    #----- Contar automatizaciones
    count_automations:
      value_template: "{{ states.automation | list | length }}"
    #----- Contar Scripts
    count_scripts:
      value_template: "{{ states.script| list | length }}"
    #----- Contar Rastreadores de dispositivos
    count_device_trackers:
      value_template: "{{ states.device_tracker | list | length }}"
    #----- Contar sensores binarios
    count_binary_sensors:
      value_template: "{{ states.binary_sensor| list | length }}"
    #----- Contar Sensores
    count_sensors:
      value_template: "{{ states.sensor | list | length }}"
    #----- Contar interruptores
    count_switches:
      value_template: "{{ states.switch | list | length }}"
    #----- Contar Zonas
    count_zones:
      value_template: "{{ states.zone | list | length }}"
    #----- Contar Input Booleans
    count_input_booleans:
      value_template: "{{ states.input_boolean | list | length }}"
    #----- Contar Input Numbers
    count_input_numbers:
      value_template: "{{ states.input_number | list | length }}"
    #----- Contar Input Texts
    count_input_texts:
      value_template: "{{ states.input_text | list | length }}"
    #----- Contar Input Selects
    count_input_selects:
      value_template: "{{ states.input_select | list | length }}"
    #----- Contar Input Date Times
    count_input_datetimes:
      value_template: "{{ states.input_datetime | list | length }}"
    #----- Contar luces
    count_lights:
      value_template: "{{ states.light | list | length }}"
    #----- Contar Temporizadores
    count_timers:
      value_template: "{{ states.timer | list | length }}"
  
    
    

Y si quieres personalizar todos estos sensores, te dejo el código para copiar en tu archivo customize.yaml. Aquí recuerda que si quieres puedes personalizar a tu gusto cambiando el nombre del friendly_name y el icono. Puedes encontrar miles de iconos para personalizar tu HA aquí

#### CONTADORES ####

sensor.count_automations:
  friendly_name: Automatizaciones
  icon: mdi:home-automation
sensor.count_binary_sensors:
  friendly_name: Sensores binarios
  icon: mdi:radio-tower
sensor.count_device_trackers:
  friendly_name: Rastreadores
  icon: mdi:eight-track
sensor.count_input_booleans:
  friendly_name: Entrada boleana
  icon: mdi:inbox-multiple
sensor.count_input_datetimes:
  friendly_name: Entrada fecha y hora
  icon: mdi:calendar-clock
sensor.count_input_numbers:
  friendly_name: Entrada de números
  icon: mdi:numeric-1-box-multiple-outline
sensor.count_input_selects:
  friendly_name: Entradas de seleccón
  icon: mdi:select-all
sensor.count_input_texts:
  friendly_name: Entradas de texto
  icon: mdi:card-text-outline
sensor.count_scripts:
  friendly_name: Scripts
  icon: mdi:script-text
sensor.count_sensors:
  friendly_name: Sensores
  icon: mdi:video-input-antenna
sensor.count_switches:
  friendly_name: Interruptores
  icon: mdi:light-switch
sensor.count_zones:
  friendly_name: Zonas
  icon: mdi:map-marker-circle
sensor.count_lights:
  friendly_name: Luces
  icon: mdi:lightbulb-on
sensor.count_timers:
  friendly_name: Temporizadores
  icon: mdi:timer

MIRA EL VÍDEO DE CÓMO INSTALAR ESTOS SENSORES

Aquí puedes ver el capítulo 2 de System monitor

SÍGUEME A YOUTUBE

System monitor - Sígueme en Youtube
Sígueme en Youtube

Related Posts

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Comments (4)

They are all very good.

Responder

Very good article. Great perfection with the best info.

Responder

This site definitely has all of the information I needed about this subject

Responder

Thank you for your message! I’m glad to hear that my website provided you with all the information you needed on the subject. I strive to provide comprehensive and helpful information on various topics, and I’m always here to answer any questions or concerns you may have. If you need anything else in the future, don’t hesitate to reach out. Thank you again for your message, and I hope to see you around the site!

Responder
Ajustes