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 - 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
+7 -3
View File
@@ -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