I’m wanting to monitor a webpage for content changes using curl and then have Home Assistant notify me. With a bit of searching this morning, I came across binary sensors, but I haven’t been able to make one work just yet. I’m wondering if I can get some other eyes on it; I’m relatively unfamiliar with making YAML configuration changes.
Here are the two methods I’ve placed into my configuration.yaml
with no success yet.
- Courtesy of this Reddit comment:
binary_sensor:
- platform: command_line
command: 'curl -s https://<website_to_track>.com | grep "searchTerm" '
name: Website Update Sensor
device_class: connectivity
scan_interval: 3600
payload_on: 0
payload_off: 1
- An attempt using the Statistics Configuration documentation:
sensor:
- platform: command_line
name: Website Update Sensor
command: 'curl -s https://<website_to_track>.com | grep "searchTerm" '
scan_interval: 3600