PiHole Daily Client stats!

View All Rules

alias: PiHole Daily Client stats!
trigger:
  platform: time
  at: '23:00:00'
action:
  - delay: '00:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
  - service: script.notify_engine
    data_template:
      channel: "tweets"
      value1: >
          {{ [
          "There are currently {{states.sensor.unifi_client_count.state}} clients on my network.",
          "As reported by #PiHole, there are {{states.sensor.unifi_client_count.state}} clients on my network.",
          ] | random + " (https://amzn.to/2SKJ957)" }}
      hashtag: '#PiHole #Security'
  - service: notify.signal_stuart
    data_template:
      message: >
          {{ [
          "There are currently {{states.sensor.unifi_client_count.state}} clients on my network.",
          "As reported by #PiHole, there are {{states.sensor.unifi_client_count.state}} clients on my network.",
          ] | random + " (https://amzn.to/2SKJ957)" }}

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.