Monitoring urządzeń w domu

Duża ilość urządzeń w domowej sieci wifi powoduje zawsze problemy z dostępnością wszystkich urządzeń. Do monitoringu działania urządzeń wykorzystuje oprogramowanie „Uptime Kuma” jak dodatek zainstalowany w HA

Konfiguracja

Ustawienia pojedynczego monitora dla urządzenia

Powiadomienia wysyłam bezpośrednio poprzez HA na komórkę. Większość urządzeń monitoruje na odpowiednim temacie MQTT – przykład powyżej.

Aby pominąć błędne powiadomienia:

  • dla MQTT – heartbeat: 60 sek oraz ilość prób: 5,
  • dla ping – heartbeat: 300 sek oraz ilość prób: 5,

Konfiguracja HA

Za pomocą dodatkowej integracji HACS: „Uptime Kuma HACS integration: dodane są sensory do HA, dodatkowo wykorzystany Dashboard HACS: button-card.

Konfiguracja karty:

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_watermeter1_mqtt
        icon: mdi:water
        name: mbus
        show_state: false
        color: rgb(255, 0, 0)
        font-size: 6px
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_watermeter2
        icon: mdi:water
        name: cam
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_kamera_wejscie
        icon: mdi:camera
        name: Wejście
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_kamera_garaz
        icon: mdi:camera
        name: Garaz
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_alarm_mqtt
        icon: mdi:motion-sensor
        name: Alarm
        show_state: false
        color: rgb(255, 0, 0)
        font-size: 6px
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_kotlownia_mqtt
        icon: mdi:motion-sensor
        name: Kotłownia
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_wemos1_mqtt
        icon: mdi:remote
        name: Wemos1
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_wemos2_mqtt
        icon: mdi:garage-open
        name: Wemos2
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_pompa_wody_mqtt
        icon: mdi:pump
        name: Pompa
        show_state: false
        color: rgb(255, 0, 0)
        font-size: 6px
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_ebusd_signal_mqtt
        icon: mdi:gas-burner
        name: ebusd
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_lampa_sypialnia_lewa_mqtt
        icon: mdi:lamp
        name: Sypialnia lewa
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_lampa_sypialnia_prawa_mqtt
        icon: mdi:lamp
        name: Sypialnia prawa
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_solaredge
        icon: mdi:solar-power-variant
        name: Panele
        show_state: false
        color: rgb(255, 0, 0)
        font-size: 6px
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_odkurzacz
        icon: mdi:robot-vacuum
        name: ebusd
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_nam
        icon: mdi:air-filter
        name: NAM
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_drukarka_hp5070
        icon: mdi:printer
        name: Drukarka
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_frigate
        icon: mdi:cctv
        name: Frigate
        show_state: false
        color: rgb(255, 0, 0)
        font-size: 6px
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_hyperion
        icon: mdi:led-strip-variant
        name: Hyperion
        show_state: false
        color: rgb(255, 0, 0)
        state:
          - value: up
            color: rgb(0, 255, 0)
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_wled_tv
        icon: mdi:led-off
        name: WLED TV
        show_state: false
        color: gray
        state:
          - value: pending
            color: orange
          - value: up
            color: rgb(0,255,0)
          - value: down
            color: red
      - type: custom:button-card
        styles:
          name:
            - color: gray
            - font-size: 12px
        entity: sensor.uptimekuma_wled_sypialnia
        icon: mdi:led-off
        name: WLED Sypialnia
        show_state: false
        color: gray
        state:
          - value: pending
            color: orange
          - value: up
            color: rgb(0,255,0)
          - value: down
            color: red

Komentarze

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *