mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Update Randi
This commit is contained in:
@@ -63,6 +63,7 @@ cards:
|
|||||||
- type: entities
|
- type: entities
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.randi_cart_availability
|
||||||
- binary_sensor.sonos_recoverable
|
- binary_sensor.sonos_recoverable
|
||||||
|
|
||||||
# Column 2: Sensors
|
# Column 2: Sensors
|
||||||
|
|||||||
@@ -3,17 +3,21 @@ sensor:
|
|||||||
- platform: scrape
|
- platform: scrape
|
||||||
resource: https://randi.bg
|
resource: https://randi.bg
|
||||||
select: ".default-cart-wrapper #cart-total"
|
select: ".default-cart-wrapper #cart-total"
|
||||||
|
value_template: "{{ 'on' if value.find('продукт') > -1 else 'off' }}"
|
||||||
name: Randi cart availability
|
name: Randi cart availability
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Randi · Notify cart is available
|
- alias: Randi · Notify cart is available
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: sensor.randi_cart_availability
|
entity_id: sensor.randi_cart_availability
|
||||||
from: "unknown"
|
to: "On"
|
||||||
action:
|
action:
|
||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey! Though I should let you know that Randi is available!"
|
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