Open jelmerwouters opened 3 months ago
I can confirm. Lists are also not working by the way, perhaps related to the same issue.
Try the "Android device only" example which is currently working:
service: whatsapp.send_message
data:
clientId: default
to: 391234567890@s.whatsapp.net
body:
text: Hi it's a template message
footer: Hello World
templateButtons:
- index: 1
urlButton:
displayText: ⭐ Star Whatsapp addon on GitHub!
url: "https://github.com/giuseppecastaldo/ha-addons/tree/main/whatsapp_addon"
- index: 2
callButton:
displayText: Call me!
phoneNumber: +1 (234) 5678-901
- index: 3
quickReplyButton:
displayText: "This is a reply, just like normal buttons!"
id: id-like-buttons-message
Nope, still not working
the clientId is to be a whatsapp business ? i am trying with a plain client, but no luck on this
body: text: Hi it's a template message footer: Hello World templateButtons:
- index: 1 urlButton: displayText: ⭐ Star Whatsapp addon on GitHub! url: "https://github.com/giuseppecastaldo/ha-addons/tree/main/whatsapp_addon"
- index: 2 callButton: displayText: Call me! phoneNumber: +1 (234) 5678-901
- index: 3 quickReplyButton: displayText: "This is a reply, just like normal buttons!" id: id-like-buttons-message
The strange thing is that the lists for "Android devices only", when I send with this service data as mentioned here, I can see in whatsapp web the message "This message can't be shown on Whatsapp web. Open Whatsapp on your phone to view". But in the whatsapp in the phone there's nothing.
event_type: new_whatsapp_message
data:
clientId: XXXXXXXX
type: viewOnceMessage
key:
remoteJid: XXXXXXXXX@s.whatsapp.net
fromMe: false
id: XXXXXXXXXXXXXXXXX
messageTimestamp: XXXXXXXX
pushName: XXXXXXXXXXXX
broadcast: false
message:
viewOnceMessage:
message:
templateMessage:
fourRowTemplate: {}
hydratedTemplate:
hydratedContentText: Hi its a template message
hydratedFooterText: Hello World
hydratedButtons:
- urlButton:
displayText: ⭐ Star Whatsapp addon on GitHub!
url: >-
https://github.com/giuseppecastaldo/ha-addons/tree/main/whatsapp_addon
index: 1
- callButton:
displayText: Call me!
phoneNumber: +1 (234) 5678-901
index: 2
- quickReplyButton:
displayText: This is a reply, just like normal buttons!
id: id-like-buttons-message
index: 3
messageContextInfo:
deviceListMetadata: {}
deviceListMetadataVersion: 2
origin: REMOTE
time_fired: "XXXXXXXXXXXXXXXXX"
context:
id: XXXXXXXXXXXXXXXXX
parent_id: null
user_id: XXXXXXXXXXXXXXXXX
This is what I receive when I start listening for new_whatsapp_message
event and run automation using this as reference: https://github.com/giuseppecastaldo/ha-addons/blob/main/whatsapp_addon/DOCS.md#how-to-send-list-android-devices-only
But dont receive any message in phone.
Can anyone help to solve this?
For some reason this issue was closed, but the issue is not resolved.
Using the example code from the documentation does not result in a message send with buttons. Nothing is received.