From 3a1cba28ba8fa736f6dd0260293a523b87363bd4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 22 Aug 2024 22:48:01 +0200 Subject: [PATCH] Merge supplies shopping button in kitchen --- roles/automations/files/shopping.yaml | 20 ++++++++++++++++---- vars/shopping-list.yml | 8 ++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/roles/automations/files/shopping.yaml b/roles/automations/files/shopping.yaml index ccfdbff..f16255b 100644 --- a/roles/automations/files/shopping.yaml +++ b/roles/automations/files/shopping.yaml @@ -1,5 +1,5 @@ -- id: kitchen_shopping_oatmeal - alias: '[Kitchen][Shopping] Oatmeal' +- id: kitchen_shopping_supplies + alias: '[Kitchen][Shopping] Supplies' trigger: - device_id: 99f942bf6462d2372012278e086721bf domain: zha @@ -8,9 +8,21 @@ subtype: remote_button_short_press condition: [ ] action: - - service: shopping_list.add_item + - service: notify.mobile_app_iphone data: - name: Płatki owsiane + message: Co dodać do listy zakupów? + data: + actions: + - action: SHOPPING_SALT + title: Sól + - action: SHOPPING_OATMEAL + title: Płatki owsiane + - action: SHOPPING_PASTA + title: Makaron + - action: SHOPPING_CORN_FLOUR + title: Mąka kukurydziana + - action: SHOPPING_WATER + title: Woda - id: kitchen_shopping_pasta alias: '[Kitchen][Shopping] Pasta' diff --git a/vars/shopping-list.yml b/vars/shopping-list.yml index 259a093..25a3bc8 100644 --- a/vars/shopping-list.yml +++ b/vars/shopping-list.yml @@ -25,3 +25,11 @@ shopping_list: title: Czosnek - action: SHOPPING_SALT title: Sól + - action: SHOPPING_OATMEAL + title: Płatki owsiane + - action: SHOPPING_PASTA + title: Makaron + - action: SHOPPING_CORN_FLOUR + title: Mąka kukurydziana + - action: SHOPPING_WATER + title: Woda