Skip to content

Latest commit

 

History

History
63 lines (55 loc) · 1.68 KB

README.md

File metadata and controls

63 lines (55 loc) · 1.68 KB

PRTG config in Home Assistant

This new approach of getting notified by blinking lights when some alarm happend in PRTG is not using the notification in PRTG anymore, but using Home Assistant to poll stats from PRTG and then use that to blinking lights.

To make this happen:

copy files:

Copy prtg.yaml into your packages directory

If you don't have a package folder, you can create one, and then add to configuration.yaml:

homeassistant:
  packages: !include_dir_named packages

Then you need to add some secrets:

prtg-api-token: long-random-token
prtg-url: {full prtg url}/api/getstatus.htm
noclight: light.name

by example:

prtg-api-token: long-random-token
prtg-url: https://prtg.cloudblabla.tld/api/getstatus.htm
noclight: light.noc

To create a token, you can follow: Paessler tutorial

Save all config, restart your home assistant, and it is working. Hopefully...

If you like, you can add to your dashboard to config automotions:

type: horizontal-stack
cards:
  - type: entities
    entities:
      - entity: input_datetime.lighton
      - entity: automation.lightson
    show_header_toggle: false
    title: Lichten aan
  - type: entities
    entities:
      - entity: input_datetime.lightoff
      - entity: automation.lightsoff
    show_header_toggle: false
    title: Lichten uit

and to see all statusses

type: entities
entities:
  - entity: sensor.prtgsensors
  - entity: sensor.prtg_upsens
  - entity: sensor.prtg_alarms
  - entity: sensor.prtg_warnsens
  - entity: sensor.prtg_pausedsens
  - entity: sensor.prtg_unknownsens
  - entity: sensor.prtg_script
title: PRTG
state_color: true