Files
sarah/config/packages/sensors/randi.yaml
T
2020-04-06 01:00:03 +03:00

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!"