Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95419

Sensor Web scraper - Get last in a list?

$
0
0

@Tomahawk wrote:

Trying to create a scraper sensor and automation which can notify me of a new version of a software package has been released, published on a website.

The web page has a list of versions and I want to be notified when “sdcard-jumper-t16-2.3V0024.zip” has increased by 1, to version “sdcard-jumper-t16-2.3V0025.zip”, and so on.

Is it possible to configure the scraper sensor to just change state when a new version is read from the website. If so, can someone help me with the code?


  - platform: scrape
    resource: https://downloads.open-tx.org/2.3/nightlies/sdcard/
    name: Jumper T16 SD card
    select: 'sdcard-jumper-t16-2.3V*.zip' ???
    value_template: '{{ Get last one of the sdcard-jumper-t16-2.3V* }}' ???
    index: Or get-max index somehow....???
    attribute: url
    scan_interval: 3600

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>