Whatsapp aka. yowsup helper functions

unfortunately I ran into problems with the alpha binding at the first hurdle - installed the jar into /user/share/openhab2/addons and it’s not visible to openhab, either in bundle:list or paperUI. A restart didn’t help.

I’ve installed jars into that folder before without a problem, so perhaps there’s an issue with the jar? Nothing in the logs, so I can’t be of much help…

just start yowsup-cli with -y. You’ll get event messages if something comes in. The bundle parses the console output and retrieves the information from that stream

I checked in a fresh rebuild, use this version.

Do a “tail -f openhab.log” while copying the jar to the folder. You should at least see messages showing the load process. Check PaperUI.

Thank you. The app now loads and the hub sets up fine.

Sending messages - I get a “waiting for this message” error on the recipient device - the message never goes through. Sending from the yowsup command line still works fine.

Receiving messages - I don’t seem to get event messages from the command line (and, unsurprisingly, the binding doesn’t receive them either)

Just to add: really appreciate all your work on this. Possibly I am too useless with this stuff to be a good test subject…

  • no worries, that’s what early versions are made for :slight_smile: happy to help.
  • what do you mean with “on the recipient device”? The recipient does not know if and when a message is coming.

Are you sendung from OH->yowsup to WhatsApp in a mobile?
Which yowsup fork are you using? Which OH version?

Please enable a TRAC log:

  • open OH console
  • log:set TRACE org.openhab.binding.whatsapp

and provide the log entries so we can see what happens on the yowsup-cli console.

@dan12345 any reults?

apologies - been a bit caught up, but hope to get to it soon!

I’m back!

I’m using the AragurDEV fork on the OH M7 milestone build. Sending text and images from the command line works just fine. The binding however does nothing. Sending to whatsapp on a mobile in both cases.

Here’s the trace log when I try to send a message:

2018-12-15 10:58:40.078 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Send message: type=TEXT, number=441234123456, message="testing the new binding", timestamp=, id=
2018-12-15 10:58:40.083 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Error: Not connected'
2018-12-15 10:58:40.083 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Logging in to WhatsApp service.
2018-12-15 10:58:40.872 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[offline]:[offline]:Auth: Logged in!'
2018-12-15 10:58:41.183 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.184 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.194 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself'
2018-12-15 10:58:41.195 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself
2018-12-15 10:58:41.199 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.199 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.222 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself'
2018-12-15 10:58:41.223 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself
2018-12-15 10:58:41.227 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.227 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.246 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself'
2018-12-15 10:58:41.246 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself
2018-12-15 10:58:41.251 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.251 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.259 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself'
2018-12-15 10:58:41.259 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:yowsup.layers.axolotl.layer_receive:Received a message that we've previously decrypted, goint to send the delivery receipt myself
2018-12-15 10:58:41.283 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.284 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.330 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.331 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.334 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.335 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.335 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.335 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.364 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.364 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.365 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.365 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.368 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.369 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.406 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.406 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.408 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.408 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.410 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.411 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.451 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.451 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.452 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.452 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.521 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.521 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.523 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.523 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.525 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.526 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.565 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.566 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.567 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.567 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.570 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.570 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.610 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.611 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.611 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.612 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:58:41.615 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...'
2018-12-15 10:58:41.615 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
2018-12-15 10:58:41.639 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[441234123456@s.whatsapp.net(29-11-2018 16:11)]:[3A0FE9CC65A9DB7A96A7]	 b'Goodbye''
2018-12-15 10:58:41.640 [INFO ] [ng.whatsapp.internal.WhatsAppHandler] - WhatsApp.Handler: Received Message: type=TEXT, number=441234123456, message="b'Goodbye'", timestamp=29-11-2018 16:11, id=3A0FE9CC65A9DB7A96A7
2018-12-15 10:58:41.642 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Message 3A0FE9CC65A9DB7A96A7: Sent delivered receipt and Read'
2018-12-15 10:58:41.642 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: '[connected]:'
2018-12-15 10:59:31.010 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'INFO:yowsup.demos.cli.layer:Iq:'
2018-12-15 10:59:31.011 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'ID: 7'
2018-12-15 10:59:31.011 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Type: result'
2018-12-15 10:59:31.011 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'from: 449876987987@s.whatsapp.net'
2018-12-15 11:00:21.063 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'INFO:yowsup.demos.cli.layer:Iq:'
2018-12-15 11:00:21.063 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'ID: 8'
2018-12-15 11:00:21.063 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Type: result'
2018-12-15 11:00:21.064 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'from: 449876987987@s.whatsapp.net'
2018-12-15 11:01:11.116 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'INFO:yowsup.demos.cli.layer:Iq:'
2018-12-15 11:01:11.116 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'ID: 9'
2018-12-15 11:01:11.116 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Type: result'
2018-12-15 11:01:11.116 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'from: 449876987987@s.whatsapp.net'
2018-12-15 11:02:01.168 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'INFO:yowsup.demos.cli.layer:Iq:'
2018-12-15 11:02:01.169 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'ID: 10'
2018-12-15 11:02:01.169 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'Type: result'
2018-12-15 11:02:01.169 [INFO ] [ng.whatsapp.internal.WhatsAppControl] - WhatsApp.Control: Console: 'from: 449876987987@s.whatsapp.net'````

(with numbers anonymised but log otherwise unchanged)

Hi @markus7017. I scrubbed the yowsup installation and re-did everything from scratch. The binding now works perfectly - I can send and receive text messages extremely reliably. Could you please give an example of how to send images with the binding?

This is an excellent way for e.g. guests to communicate with openhab without giving them full access. I currently use SMS but it’s less secure, slower and a bit 1990s…

So I suspect quite a few people would be interested in the binding - only question is whether the tricky install of the yowsup fork will put people off…

Oh, a small bug. Occasionally the binding disconnects. It logs itself back in, but doesn’t seem to do so properly, as the next message I send doesn’t go out. The one after that does, though.

Dan

The media channel could be used for that. Due to the fact that there arw several attributes (number, file name, caption) I can‘t use the simple format number:message. For that I defined a simple JSON format (you currently see it already on incoming messages when you link the channel mediaIn). I‘ll supply a sample incl. OH rule by end if the week.

I was still not able to receive images or send/receive videos with my yowsup installation while others report success based on the same yowsup fork.

could you please describe this use case

yes, this is very specific depending on what‘s already installed on the system. The step-by-step above is already a good start, but when I did it again there were other packages to install, also there are differences btw. Debian, macOS, Windows. I think we need to create a tutorial and then people could add specifics on different platforms etc.

could you please provide more details (TRACE log)? When does that happen?

The binding has a auto-recovery: It checks the status before trying to send a message, there is currently no queueing (buffer the message while recovering), which explains the behavior you are describing.

As I saw more or less any Exception on the yowsup side brings thr cli in a state that it‘s not able to continue. I‘ll add some auto-recovery for that.

1 Like

Thank you!

However my yowsup installation seems broken again. I’m going to have to spend more time working out why that keeps happening.

what happened? please provide logs, maybe I could hep

OK, Yowsup fixed! I’ll wait for the next disconnection and send you logs. If you do have a chance to post an example of the image sending then that would be awesome.

I should add - my use cases are:

  • urgent messages from openhab to us (e.g. intruder alarm). Currently uses Pushbullet (or SMS if we have no internet reception)
  • sending images from openhab to us (e.g. entryphone). Currently use Pushbullet, but whatsapp is nicer
  • receiving messages from guests to whom we’ve given access (e.g. close blinds) but where we don’t want to give them full access to openhab. Currently use SMS but v clunky.

Finally: I can send images from the yowsup command line with /image send [number] [file] “[message]”. Weird it’s not working for you…

Hi @markus7017 - just to report that, a couple of weeks on, and the binding is still working perfectly. Sends and receives messages instantly, 100% reliably.

If you do have a chance to post an example rule for sending images then that would be much appreciated.

Dan

yes, just fixing the hansling to send an image (already working in my dev environment), expect a new build today or tomorrow.

how did you get the other media formats working? I use the same yowsow fork, but can‘t send a video etc.

with the fix the binding will also support the other formats if yowsup-cli is doing its best :slight_smile:

ok, alpha2 is available

  • fixed a bug when sending a media message with JSON control format
  • destination number is normalized
    WhatsApp requires the number in international format. The binding normalizes the given number to allow different formats. You need to set the default country code in the binding config if you want to use 0xxx (being transformed to CCxxxx).
    examples:
    +491711234567 -> 491711234567
    00491711234567 -> 491711234567
    01711234567 -> 491711234567
  • the binding checks for the .yowsup database folder and a subfolder with the originating number to make sure that the initialization was performed and the key db was generated. However, for whatever reasons this doesn’t work when running in a regular openHAB context so the check is skipped when running in root or openhab user context.

You should remove the exiting thing and re-created it (required to use the new channel definitions)

To send an image use the Media Outbound Message channel. It requires a JSON formatted input like
{ “type” : “image”, “number” : “491711234567”, “path” : “/home/markus7017/image.png”, “caption” : “Hello from openHAB” }. The caption is optional, the image fie must have a fully qualified path.

Format audio, video, document should also work if yowsup has proper multimedia support.
I didn’t verified location and vcard yet.

Let me know if that works for you.

Many thanks - new binding works fine sending and receiving text messages.

I get an error when sending an image, but I’m probably formatting the item wrongly:

var jsonstring='{ "type" : "image", "number" : "441234123456", "path" : "/home/dan/test.png", "caption" : "Hello from openHAB" }'
logInfo("EMAIL", "About to post: {}",jsonstring)		
waMediaOut.sendCommand(jsonstring)

The error is:


2018-12-30 09:41:51.812 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.whatsapp.handler.WhatsAppHandler@fa5d4eb': javax.json.spi.JsonProvider: Provider org.glassfish.json.JsonProviderImpl not a subtype ```

the problem is that the json parser is not found even it is packaged with the jar. I saw this with another build, a clean rebuild solved it. I‘ll post a new build later today

Thanks. Once that’s working then you should really take this out of alpha…

ok, done. check the new build (I verified that the jar contains the json libs)
https://github.com/markus7017/org.openhab.binding.whatsapp/blob/master/target/org.openhab.binding.whatsapp-2.4.0-SNAPSHOT.jar

and I moved to branch beta1 :wink: (so far no additional changes)