From 370e33da7ccd90829705e9472614d8142ba857ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bachmann?= Date: Tue, 14 Apr 2026 13:24:10 +0000 Subject: [PATCH] custom_components/whatsapp_bridge_integration/services.yaml aktualisiert --- .../whatsapp_bridge_integration/services.yaml | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/custom_components/whatsapp_bridge_integration/services.yaml b/custom_components/whatsapp_bridge_integration/services.yaml index f741be9..07d8e96 100644 --- a/custom_components/whatsapp_bridge_integration/services.yaml +++ b/custom_components/whatsapp_bridge_integration/services.yaml @@ -2,29 +2,32 @@ send_message: name: Send Message description: Sends a WhatsApp message via the Bahmcloud Bridge. fields: - account: - name: Account Profile - description: The name of a saved profile (e.g., Max). Leave empty if using a manual number. - example: "Max" + recipient: + name: Recipient + description: Select a saved profile or choose "Broadcast to all". + required: true selector: - text: - number: - name: Manual Number - description: "Direct phone number (Format: 491701234567). Overwrites the Account field." - example: "491701234567" - selector: - text: + select: + options: + - label: "Broadcast to all" + value: "all_accounts" + # Dieser Teil sorgt dafür, dass HA die Namen deiner Accounts anzeigt + custom_value: true message: name: Message description: The content of your WhatsApp message. required: true - example: "The garage door is open!" selector: text: multiline: true - all_accounts: - name: Send to All - description: If enabled, the message is sent to all registered profiles. + use_manual_number: + name: Use Manual Number + description: Enable this to ignore the recipient and use the number field below. default: false selector: - boolean: \ No newline at end of file + boolean: + number: + name: Manual Number + description: "Direct phone number (e.g., 491701234567)." + selector: + text: \ No newline at end of file