Skip to content

Instantly share code, notes, and snippets.

@fwartner
Created April 17, 2024 09:08
Show Gist options
  • Save fwartner/ed03a48b17f545e06f155f4d704e9bdb to your computer and use it in GitHub Desktop.
Save fwartner/ed03a48b17f545e06f155f4d704e9bdb to your computer and use it in GitHub Desktop.
BKW: Maschinen laufen lassen Notification
alias: "BKW: Maschinen laufen lassen Notification"
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.shelly_bkw_power
for:
hours: 0
minutes: 5
seconds: 0
above: 330
id: bkwSunPower
- platform: event
event_type: mobile_app_notification_action
event_data:
action: IOS_BKW_WASCHMASCHINE_AN
id: bkwIOSWMAn
- platform: event
event_type: mobile_app_notification_action
event_data:
action: IOS_BKW_SPUELMASCHINE_AN
id: bkwIOSSMAn
- platform: event
event_type: mobile_app_notification_action
event_data:
action: IOS_BKW_ALLES_AN
id: bkwIOSALLESAn
condition:
- condition: zone
entity_id: person.florian_wartner
zone: zone.home
- condition: state
entity_id: input_boolean.nicht_storen
state: "off"
action:
- choose:
- conditions:
- condition: trigger
id:
- bkwSunPower
sequence:
- service: notify.mobile_app_iphone_von_florian
metadata: {}
data:
title: ☀️ Die Sonne scheint prächtig!
message: >-
Du erzeugst gerade so viel Energie, du könntest doch glatt die
Waschmaschine oder die Spülmaschine laufen lassen! Soll ich die
Steckdosen einschalten?
data:
actions:
- action: IOS_BKW_WASCHMASCHINE_AN
title: Waschmaschine
icon: sfsymbols:power
- action: IOS_BKW_SPUELMASCHINE_AN
title: Spühlmaschine
icon: sfsymbols:power
- action: IOS_BKW_ALLES_AN
title: Beides
icon: sfsymbols:power
- conditions:
- condition: trigger
id:
- bkwIOSWMAn
sequence:
- type: turn_on
device_id: 3c45a70c459e2e66b166dca5891180c6
entity_id: eb4d372310f986822d024a05f2007c03
domain: switch
- conditions:
- condition: trigger
id:
- bkwIOSSMAn
sequence:
- type: turn_on
device_id: 4a05cd597a16be48ba279a90d1ba5c18
entity_id: 6a36fb96527589eaed3672a9978a3393
domain: switch
- conditions:
- condition: trigger
id:
- bkwIOSALLESAn
sequence:
- type: turn_on
device_id: 4a05cd597a16be48ba279a90d1ba5c18
entity_id: 6a36fb96527589eaed3672a9978a3393
domain: switch
- type: turn_on
device_id: 3c45a70c459e2e66b166dca5891180c6
entity_id: eb4d372310f986822d024a05f2007c03
domain: switch
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment