giuseppecastaldo / ha-addons

Home Assistant Whatsapp Add-on
Apache License 2.0
49 stars 18 forks source link

Send message doesn't work with fresh installed Version 1.3.2 #38

Open fotokloto opened 11 months ago

fotokloto commented 11 months ago

Error message: [2023-07-11T14:31:48.975] [ERROR] default - Send message failed. Number 49xxxxxxxxxx@s.whatsapp.net is not on Whatsapp.

Remark: The given number is a existing Whatsapp account

Gigapouts commented 10 months ago

Same issue

gekberlin commented 10 months ago

Same problem on my site. I have also double checked that the number is correct. The strange thing is that with : 49xxxxxxxxxx@s.whatsapp.net](mailto:49xxxxxxxxxx@s.whatsapp.net I get the error message and with 49 0 xxxxxxxxxx@s.whatsapp.net](mailto:49xxxxxxxxxx@s.whatsapp.net (which is an invalid number because of the leading 0 after the country code) I don't get an error and the message is also visible in my whatsapp app. Of course, the message still can't be delivered because the number is not available. Any suggestions @giuseppecastaldo ?

C-o-l-u-m-b-o commented 9 months ago

Exact same issue here... 49 correct number => "Number is not on whatsapp" 49 0+correct number - I see as outgoing message in my real whatsapp

PiperNigrum commented 9 months ago

Any updates for this issue? Installed the addon an facing this issue... Tried to send a Message with both account types (WA and WA Business)

XtraLarge commented 9 months ago

same problem here .....

try to send a message with that code ....

service: whatsapp.send_message
data:
  clientId: default
  to: 49152xxxxxxxx@s.whatsapp.net
  body:
    text: HomeAssistant neu gestartet!

I got the following error: [2023-09-23T09:48:18.584] [ERROR] default - Send message failed. Number 49152xxxxxxxx@s.whatsapp.net is not on Whatsapp.

PS: if you need my number for testing/debugging pls send me an pn. PPS: my workaround is actually to create a group with the person and send the message to the group. This works! PPPS: the easiest way to get the group id is:

  1. Create a group
  2. add source and destination person to group
  3. under HA development --> listen to event "new_whatsapp_message"
  4. send a message to the group
  5. so you can see the message ..... and the group id :)
PiperNigrum commented 8 months ago

Does anybody of my german colleague solved this Problem? Maybe I'm wrong but I think this repo is not up to date and also won't be in future...

cosote commented 7 months ago

Hi guys, I just created a PR that fixes sending messages to users. BTW: This Repo is pretty cool. It uses Baileys project to do the WA stuff (version 6.3.0) what I like and it keeps this addon small and clean and a few folks forked and added some nice features. Even if it's not that active, I will stick with it, as it's easy to update, fix and improve. Great job @giuseppecastaldo 👍! Cheers - cosote.

fotokloto commented 7 months ago

Good job done, it's now working.

cosote commented 6 months ago

PS: if you need my number for testing/debugging pls send me an pn. PPS: my workaround is actually to create a group with the person and send the message to the group. This works! PPPS: the easiest way to get the group id is:

  1. Create a group
  2. add source and destination person to group
  3. under HA development --> listen to event "new_whatsapp_message"
  4. send a message to the group
  5. so you can see the message ..... and the group id :)

Yes - that needs a nice section in docs for time being. I do remember in forced repos I saw some group metadata code... would be nice if the addon could resolve the group (name or invite key) to group-id... it took me some time to read in multiple places to get that sorted out. Anyway, I think this issue can be closed @giuseppecastaldo?