---
# Use the UptimeRobot integration to watch if Home Assistant still
# is accessible from outside the network.

binary_sensor:
  - platform: uptimerobot
    api_key: !secret uptimerobot_api_key

automation:
  - alias: Home Assistant Down
    id: f885222d-cf69-43dd-bd13-f07f49014e48
    description: >-
      Notify admin that Home Assistant can't be accessed from outside the house
    trigger:
      - platform: state
        entity_id: binary_sensor.home_assistant
        to: 'false'
    action:
      - service: notify.admin
        data:
          message: Home Assistant is niet beschikbaar buiten het interne
            netwerk.
          title: ⚠ Home Assistant onbereikbaar
    mode: single

---
# Use the UptimeRobot integration to watch if Home Assistant still
# is accessible from outside the network.

binary_sensor:
  - platform: uptimerobot
    api_key: !secret uptimerobot_api_key

automation:
  - alias: Home Assistant Down
    id: f885222d-cf69-43dd-bd13-f07f49014e48
    description: >-
      Notify admin that Home Assistant can't be accessed from outside the house
    trigger:
      - platform: state
        entity_id: binary_sensor.home_assistant
        to: 'off'
    action:
      - service: notify.admin
        data:
          message: Home Assistant is niet beschikbaar buiten het interne
            netwerk.
          title: ⚠ Home Assistant onbereikbaar
    mode: single

Replace false with off in automation trigger for uptime robot check
fix: Replace false with off in automation trigger
for uptime robot check
