gajosu / whatsapp-ha-addon Goto Github PK
View Code? Open in Web Editor NEWA WhatsApp API client that connects through the WhatsApp Web browser app with Home Assistant.
License: Apache License 2.0
A WhatsApp API client that connects through the WhatsApp Web browser app with Home Assistant.
License: Apache License 2.0
Hi, I have my system behind a cloudflare tunnel.
I have all setup and working...
Hassio running on: https://ha.mydomain.nl - http://192.168.20.220:8123
The whatsapp addon: https://whatsapp.mydomain.nl - http://192.186.20.220:3000
When I sent a POST from web.postman.co I receive a message on whatsapp. So I know it is working
like:
But when I try to sent from Hassio it does not work..
please advise...
Thank you
hi,
Is it possible to give some example how to put
images, url links, media , footers, etc...
Or do you have docs how to?
Maybe take a look at:
https://github.com/giuseppecastaldo/ha-addons/blob/main/whatsapp_addon/DOCS.md
greets
I send a message Hallo\nDude!
to my phone.
With the \n
it fails, without it not.
get a 500 status code
Logger: homeassistant.components.rest_command
Source: components/rest_command/__init__.py:136
Integration: RESTful Command ([documentation](https://www.home-assistant.io/integrations/rest_command), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+rest_command%22))
First occurred: 01:09:69 (3 occurrences)
Last logged: 01:11:53
Error. Url: http://homeassistant:3000/api/chats/[email protected]/messages. Status code 500. Payload: b'{"msg": "Hallo\nDude!"}'
I start the add-on wait until the QR comes up and scan it.
Then my phone loads for a bit and then says there is a new device and it says active.
Log looks like this afterwards:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
Add-on: Whatsapp
Whatsapp integration for Home Assistant.
-----------------------------------------------------------
Add-on version: 2.3.5
You are running the latest version of this add-on.
System: Home Assistant OS 10.5 (armv7 / raspberrypi3)
Home Assistant Core: 2023.8.4
Home Assistant Supervisor: 2023.08.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[00:21:02] INFO: Configuring timezone (Europe/Berlin)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun example (no readiness notification)
s6-rc: info: service legacy-services successfully started
8/25/2023, 24:21:10 [info]: Starting Controller
8/25/2023, 24:21:11 [info]: [Whatsapp] Starting Client
8/25/2023, 24:21:11 [info]: [WebSocket] Starting WebSocket
8/25/2023, 24:21:11 [info]: [HomeAssistant] Home Assistant integration enabled
8/25/2023, 24:21:11 [info]: [HttpServer] ⚡ Listening http://0.0.0.0:3000
8/25/2023, 24:21:11 [info]: [WebSocket] New connection from h7uXyVBSGybRvpwXAAAB
8/25/2023, 24:21:34 [info]: [WebSocket] Disconnect from h7uXyVBSGybRvpwXAAAB, reason: transport close
8/25/2023, 24:21:34 [info]: [WebSocket] New connection from AlXqnrUv7uE0djezAAAD
8/25/2023, 24:21:46 [info]: [Whatsapp] Client is loading screen
8/25/2023, 24:22:02 [info]: [WebSocket] Disconnect from AlXqnrUv7uE0djezAAAD, reason: transport close
8/25/2023, 24:22:03 [info]: [WebSocket] New connection from LjcLx7hDQK_DBGorAAAF
8/25/2023, 24:22:48 [info]: [WebSocket] Disconnect from LjcLx7hDQK_DBGorAAAF, reason: transport close
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄ █▄█ ▀ █▄▀█▀ ▄▄▄▀ █▄▄ ▀ ▀▀▀ ▀▄█▄ ▀██ ▄▄▄▄▄ █
█ █ █ █ ▄▄ ▀██ ▀ ▄ ▄▀▀▀▀ ▄▄█▀▄▀ ▀ █ ██▀▀▄▀█ █ █ █
█ █▄▄▄█ █▄▀ ▄ █▀▄▀▄ ▄█ ▄▄▄ █▀▀ ▀█▄ ▄▀█ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █▄█▄▀▄▀▄▀ █ ▀ █▄█ ▀▄▀▄█▄█▄█▄▀ ▀▄█ █▄▄▄▄▄▄▄█
█ ▄▄▄▀█▄█▄ ▀█▄█▄█ ▄▀▀▄ ▄▀▄ ▄ ▄▀████▄█▄▄ █▄█▀ ▄▄█▄█
█ ███▄▄▄▄▄ ██▀▀▀▄▄▄▄█▀█ ▄██ ▀█ █▀▄ ▄ █▄▄▀▄ ▀█▄ █▄█▄▀█
██▀▀▄█▄▄▄ ▄█▄▀▄█▀▄ ▄ ███ ▄▀▄██▄ ▀ ▄▄ ▀ █▀██▀▀ █▄▄ ▀███
█ ██▄▄█▄▄▄ ▀█▀ █▄▄ ▄ █▀▀█ ▀█▄ █▀▀▀▄██▄ █▀▄ ▀ ▄█▄▄█ █▄▄█
████▄▄ ▄█ ▀▀▄ █▄▄▀ ▀▄▄▄▀▀▀▀▀█▄▀▄█▄▀ ██▄▄▄█ ██▄▄ ▀█ ▄█▀█
█▄█ ██ ▄▀▀ ▄█▀▀ ██▀█▄▀▄ █▄█▀██▀▄▀██▄ ▄▀ ██▀▄▀▄█ ▀▀ █▀█
██ ▄▀█▀▄ █▀█ ▀▀ █ ██▄ ▄▀▀ ▀▄██▄▄█ ▄▄ ▀▀▄▄█▄▀▄ █
█▄▄▄ ▄▀▄ ▄▀▄▀▄ ▀▄ ▄▄ ███▄▄█ ███▄ █▄ ▀█ ▄ ██ █▄█ ██ ▀█
█▄▀▄▄ ▄▄▄ ▄ ▄▄ ▀ ▀▀▀█ ▄▄▄ ▄█ █ █ ▄▀ █▀█▄█ ▄▄▄ ▀▄▀▀█
█▄█▀▀ █▄█ ▄▀▀████▀▀█▀█ █ █▄█ █▄▀██ ███ ▄▄█ █▄█ █ ▄█
██▄▄▄▄ ▄ ▄▀ ▀▄▄▄▀ ▀██▄█▄ ▄▄ ▄█▄▄▀▀▀▀▄█▀▀ ▄▀▄▄ ▄█████
█ ▀ ▄▄▄ ▄ █▀▀ ██▀▄ ▀██▀███▄ ▀ █ ▄█ █▀ ▀▄▄██ ▀▀█ ▀▀▀█
██▄ █▀█▄▀ ▄ █▄ █ ▄▀█ █ ▄ ▀█ ▀▄ ▄▀▄█▄█▀█▄▄▀ █▀██ ▀▀ ▄█
█▀▀█ █▀▄▄▄▄█ ▄██▄▀██▀ ▄ ▄ █▄██▀▄ ▄█▀█▄▀██▀▄▀▀▀█▄▄██
█▀▀▄ ▀▄▄▀█████ █▀▄▄ ▀▀█▄ ▀▀█ █▄▀ █ ▀ █▀▀█▀█ ▄▄▄██▄▀█
██▀██▄▀▄▀▄ ████ ▀▀ ▄▀▀▀█▀██▀█ ▀▄▄▄ ▄█ ▄ ▄ █▀ ▄▄▀ ▄ ▄█
█▄ ▄▀▄▄▄ ▀▄▀▀ █▀█▄▀██▄▀ ▀▄ ▄▀▀█▄▄▀ ▀█▄▄ █ ▄█▄█▄█▄█▀ ▄█
█▄ ▀▄▄▄▄█ █▀▄▄██ ▄ ▄▄▄█▄█▄▀█▄█▄█▀█▀ ▄▄ ▀▀▄██▀█▄ ▀█
████▄██▄█▀ ▄ █ ▄▄█▄▀ █▄▄ ▄▄▄ █▄█ ▀ ██▄ ▀ ▄▄▄ ▄▄▀██
█ ▄▄▄▄▄ ██ ▀▀▄▄▄▄██▄▄█▀█▀ █▄█ ▀█▄▀ ▀█ ██▀▀ █▄█ ██▄▀█
█ █ █ █▀▄ ▄▀▄ ▄██ ▀▀███ ▄ ██▄█▀█▄ ▀█▀██▄▄ ▄▄▄██ ▄█
█ █▄▄▄█ █ ▄ █ ▄▀█ ▄ ▄▀▀▄█▄ ▄▀ ▄▄▀██ ▀▄▄▀▀▀█▄ █▀█ ██
█▄▄▄▄▄▄▄█▄█▄▄▄▄█▄▄██▄█████▄▄▄████▄▄▄███▄▄███▄▄██▄██▄▄██
Inside the Whatsapp App it says it is connected
Inside the Addon nothing changes for Minutes.
And if I try to send something i get the following.
8/25/2023, 24:45:06 [error]: Whatsapp is not connected
Don't know why it says 24:XX, it is 0:XX on my watch.
Restarting, repairing didn't fix the issue.
Homeassistant log says the following:
Error. Url: http://homeassistant:3000/api/chats/[email protected]/messages. Status code 503. Payload: b'{"msg": "Test Message"}'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.