mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-10 10:24:42 +00:00
20 lines
493 B
YAML
20 lines
493 B
YAML
# https://www.home-assistant.io/integrations/scrape
|
|
sensor:
|
|
- platform: scrape
|
|
resource: https://randi.bg
|
|
select: ".default-cart-wrapper #cart-total"
|
|
name: Randi cart availability
|
|
|
|
|
|
automation:
|
|
- alias: Randi · Notify cart is available
|
|
trigger:
|
|
platform: state
|
|
entity_id: sensor.randi_cart_availability
|
|
from: "unknown"
|
|
action:
|
|
- service: script.say
|
|
data:
|
|
message: "Hey! Though I should let you know that Randi is available!"
|
|
|