Update Randi

This commit is contained in:
2020-04-06 20:24:46 +03:00
parent 07b529e78e
commit 85e303b08a
2 changed files with 8 additions and 3 deletions
@@ -63,6 +63,7 @@ cards:
- type: entities
show_header_toggle: false
entities:
- sensor.randi_cart_availability
- binary_sensor.sonos_recoverable
# Column 2: Sensors
+7 -3
View File
@@ -3,17 +3,21 @@ 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
automation:
- alias: Randi · Notify cart is available
trigger:
platform: state
entity_id: sensor.randi_cart_availability
from: "unknown"
to: "On"
action:
- service: script.say
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