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

Scrape Yaml

$
0
0

I want to put scrape code directly in the yaml instead of using the visual part of the integration and I can’t get it to work… any ideas? This is the code, if I configure it from the visual with the same data it works but if I put this code in the sensors section, when I restart the system the sensor doesn’t even appear.

  - platform: scrape
    resource: https://www.dinoonline.com.ar/super/producto/aceite-de-girasol-natura-x-15-lt/_/A-2320031-2320031-s
    name: Aceite
    select: "#addToCartx > div:nth-child(5) > div:nth-child(1) > div > div > div.precio-unidad > span"
    scan_interval: 43200 
    value_template: "{{ value | float }}"  
    unit_of_measurement: "ARS"

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105753

Trending Articles



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