mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
fixing exphome devices and getting rid of grocy
This commit is contained in:
@@ -39,4 +39,4 @@ action:
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "06:00:00"
|
||||
time: "05:30:00"
|
||||
|
||||
@@ -20,6 +20,12 @@ action:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
volume_level: 0.95
|
||||
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 5
|
||||
milliseconds: 0
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
|
||||
@@ -7,6 +7,6 @@ trigger:
|
||||
to: "off"
|
||||
|
||||
action:
|
||||
- service: media_player.turn_off
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
# Note, this is using new automation features introduced in Home Assistant 0.115
|
||||
id: handle_chore_tag_scan
|
||||
alias: Handle Chore Tag Scan
|
||||
mode: single
|
||||
# Hide warnings when triggered while in delay.
|
||||
max_exceeded: silent
|
||||
variables:
|
||||
# Map scanner device ID to media player entity ID
|
||||
devices:
|
||||
75060fd1afdd90be: 2
|
||||
|
||||
# Map tag ID to content
|
||||
tags:
|
||||
# Lights: Reading
|
||||
04-1F-22-8A-21-6E-81:
|
||||
chore_id: 4
|
||||
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: tag_scanned
|
||||
condition:
|
||||
# Test that we support this device and tag
|
||||
- "{{ trigger.event.data.tag_id in tags }}"
|
||||
- "{{ trigger.event.data.device_id in devices }}"
|
||||
action:
|
||||
- variables:
|
||||
person_id: "{{ devices[trigger.event.data.device_id] }}"
|
||||
chore_id: "{{ tags[trigger.event.data.tag_id].chore_id }}"
|
||||
|
||||
|
||||
- service: logbook.log
|
||||
data_template:
|
||||
name: Handle Chore Tag Scan
|
||||
entity_id: automation.handle_chore_tag_scan
|
||||
message: >
|
||||
Tag {{ trigger.event.data.tag_id }} scanned on device {{ trigger.event.data.device_id }}. person_id: {{ person_id }} - chore_id: {{ chore_id }}
|
||||
|
||||
- service: grocy.execute_chore
|
||||
data:
|
||||
chore_id: "{{chore_id}}"
|
||||
done_by: "{{person_id}}"
|
||||
|
||||
- delay: 2 # timeout before we allow processing next scan
|
||||
@@ -56,8 +56,3 @@ action:
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/Sounds/tts/coffee_ready.mp3
|
||||
|
||||
- alias: "Consume K-Cup"
|
||||
service: input_button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_button.grocy_consume_kcup
|
||||
|
||||
Reference in New Issue
Block a user