mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Remove randi sensor
This commit is contained in:
@@ -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
|
|
||||||
Reference in New Issue
Block a user