From bc5eda15f84e3780d26a748eed23785abd59e50d Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 22 Aug 2024 23:01:58 +0200 Subject: [PATCH] Add hallway supplies button --- roles/automations/files/shopping.yaml | 52 +++++++++++++++++++-------- vars/shopping-list.yml | 22 ++++++++++++ 2 files changed, 60 insertions(+), 14 deletions(-) diff --git a/roles/automations/files/shopping.yaml b/roles/automations/files/shopping.yaml index f16255b..8f678b3 100644 --- a/roles/automations/files/shopping.yaml +++ b/roles/automations/files/shopping.yaml @@ -24,20 +24,6 @@ - action: SHOPPING_WATER title: Woda -- id: kitchen_shopping_pasta - alias: '[Kitchen][Shopping] Pasta' - trigger: - - device_id: 75e43fd0f6c82fb9e7bc6ff7c30b8c9a - domain: zha - platform: device - type: remote_button_short_press - subtype: remote_button_short_press - condition: [ ] - action: - - service: shopping_list.add_item - data: - name: Makaron pełnoziarnisty - - id: kitchen_shopping_spices alias: '[Kitchen][Shopping] Spices' trigger: @@ -95,3 +81,41 @@ title: Tabletki czyszczące do ekspresu - action: SHOPPING_COFFEE_MILK_CLEANER title: Środek do czyszczenia mleka ekspresu + +- id: hallway_shopping_supplies + alias: '[Hallway][Shopping] Supplies' + trigger: + - device_id: 75e43fd0f6c82fb9e7bc6ff7c30b8c9a + domain: zha + platform: device + type: remote_button_short_press + subtype: remote_button_short_press + condition: [ ] + action: + - service: notify.mobile_app_iphone + data: + message: Co dodać do listy zakupów? + data: + actions: + - action: SHOPPING_SHOWER_GEL + title: Żel pod prysznic + - action: SHOPPING_SHAMPOO + title: Szampon + - action: SHOPPING_SHAVING_GEL + title: Żel do golenia + - action: SHOPPING_SOAP + title: Mydło + - action: SHOPPING_CLEANING_DETERGENT + title: Proszek do prania + - action: SHOPPING_RINSE_AID + title: Płyn do płukania + - action: SHOPPING_CILIT + title: Cilit Bang + - action: SHOPPING_DOMESTOS + title: Domestos + - action: SHOPPING_TOILET_CUBE + title: Kostka do toalety + - action: SHOPPING_TOILET_PAPER + title: Papier toaletowy + - action: SHOPPING_TISSUE + title: Chusteczki diff --git a/vars/shopping-list.yml b/vars/shopping-list.yml index 25a3bc8..b5ee157 100644 --- a/vars/shopping-list.yml +++ b/vars/shopping-list.yml @@ -33,3 +33,25 @@ shopping_list: title: Mąka kukurydziana - action: SHOPPING_WATER title: Woda + - action: SHOPPING_SHOWER_GEL + title: Żel pod prysznic + - action: SHOPPING_SHAMPOO + title: Szampon + - action: SHOPPING_SHAVING_GEL + title: Żel do golenia + - action: SHOPPING_SOAP + title: Mydło + - action: SHOPPING_CLEANING_DETERGENT + title: Proszek do prania + - action: SHOPPING_RINSE_AID + title: Płyn do płukania + - action: SHOPPING_CILIT + title: Cilit Bang + - action: SHOPPING_DOMESTOS + title: Domestos + - action: SHOPPING_TOILET_CUBE + title: Kostka do toalety + - action: SHOPPING_TOILET_PAPER + title: Papier toaletowy + - action: SHOPPING_TISSUE + title: Chusteczki