diff --git a/config/packages/sensors/randi.yaml b/config/packages/sensors/randi.yaml deleted file mode 100644 index 1fece38..0000000 --- a/config/packages/sensors/randi.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# https://www.home-assistant.io/integrations/scrape -sensor: - - platform: scrape - resource: https://randi.bg - select: ".default-cart-wrapper #cart-total" - value_template: "{{ 'on' if value.find('продукт') > -1 else 'off' }}" - name: Randi cart availability - scan_interval: 300 - -automation: - - alias: Randi · Notify cart is available - trigger: - platform: state - entity_id: sensor.randi_cart_availability - to: "on" - action: - - service: script.say - data: - message: "Hey! Thought I should let you know that Randi is available!" - -homeassistant: - customize: - sensor.randi_cart_availability: - icon: mdi:cart-outline