XMPP doesn't work correct

1,685 views
Skip to first unread message

Uwe Bartelheimer

unread,
Oct 17, 2012, 1:55:06 AM10/17/12
to ope...@googlegroups.com
Hello Friends,
I'm new to openhab since 2 weeks. I'm running openhab on a xubuntu notebook and it runs quiet good.
Over the Exec-Binding I call a Javafile, witch controlls my "Siemens Logo SPS".

A great feature of openhab is the ability to get status information via xmpp-chat.
I myself have an googlemail-account an so I create a second googlemail-account named "uweb.o...@gmail.com" and wrote the user and password into the openhab.cfg.

Openhab conneted to talk.google.com and all seems to be good.
Loggin in to my google-account, I add the uweb.openhab-account and see it is online. I try a chat.
Sending "items" works fine and I get all the switches with there states.
But trying it a second or third time, openhab doesn't answer. Sometimes I can send a send-command and the light turns off or on.
But there is no answer in the chat. A few seconds later google shows me, my openhab-account goes offline.
In the openhab-console on my notebook all is ok and openhab is still connected to talk.google.com.

Does anyone know, what I'm doing wrong??? What can II do?

Kai Kreuzer

unread,
Oct 17, 2012, 4:03:13 PM10/17/12
to ope...@googlegroups.com
Hi Uwe,

Does anyone know, what I'm doing wrong??? What can II do?

Not really. But I have heard that you need to configure the XMPP proxy, if you use GTalk servers.
Could you have a try to set


in your openhab.cfg, if you haven't done so yet?

Regards,
Kai

Uwe Bartelheimer

unread,
Oct 18, 2012, 1:28:08 PM10/18/12
to ope...@googlegroups.com, k...@openhab.org
Hi Kai,
this is the section from my openhab.cfg:
############################# XMPP configuration ######################################

# The XMPP server to use, e.g. "jabber.org" or "talk.google.com"
xmpp:servername=talk.google.com

# The XMPP Proxyserver to use, e.g. "gmail.com"
xmpp:proxy=gmail.com

# the server port to use (optional, defaults to 5222)
xmpp:port=5222

# the username and password for the sending XMPP account
xmpp:username=uweb.o...@gmail.com
xmpp:password=xxxxxxxxx

# a comma separated list of users that are allowed to use the XMPP console

the console from openhab logs "Connection to XMPP as 'uweb.o...@gmail.com has been established"
but on my gmail-account the openhab does't goes online....
 regards
Uwe B

Uwe Bartelheimer

unread,
Oct 23, 2012, 6:56:31 AM10/23/12
to ope...@googlegroups.com, k...@openhab.org
Hi friends,
I think I found the reason of my problem:
when I login to my mail account and see my home comes online, I start to chat with the command "items".
My xxxx.items file contains a lot of switches and then openhab tries to send me the state of all switches.
The result string is longer than 2000 characters and it is not possible to send strings longer than 2000 characters.

I tried to send this long string (copy from the OSGi console) from my mail account to another xmpp account and got an error message.

Is it possible to catch this exception and split the string?

regards 
Uwe B

Pierre Galteau

unread,
Dec 5, 2012, 4:01:46 AM12/5/12
to ope...@googlegroups.com
Hello,

i'm trying to connect to XMPP, and have configuring my openhab.cfg:


############################# XMPP configuration ######################################

# The XMPP server to use, e.g. "jabber.org" or "talk.google.com"
xmpp:servername=talk.google.com

# The XMPP Proxyserver to use, e.g. "gmail.com"
xmpp:proxy=gmail.com

# the server port to use (optional, defaults to 5222)
xmpp:port=5222

# the username and password for the sending XMPP account
xmpp:username=pgal...@gmail.com
xmpp:password=xxxxxxxx



But in the log file i have this error:
ERROR o.o.i.n.i.jabber.XMPPConnect[:122]- Could not establish connection to XMPP server 'talk.google.com:5222': SASL authentication failed using mechanism PLAIN

Is there another port i can use (i saw on internet that port 5223 is ssl ?) ?

Note: i also have a problem with google calendar: i create an account for my house, and the connection seems to be good in log file, but maybe i am wrong on the way i format the event in gcal. I check the google calendar feed, and it is ok, i have the rss feed.
I don't see any log about this event in my openhab log...

Thanks for your reply.

PS: i use version 1.0 of openHab.

Thomas Eichstädt-Engelen

unread,
Dec 5, 2012, 4:49:06 AM12/5/12
to ope...@googlegroups.com
Hi,

in my configuration the xmpp:proxy parameter is omitted ... could you try to leaf it out, too (the same applies to the port parameter)?

GCal: if you switch on debug-logging (start openhab with start_debug.sh/bat) you should a log entry like "found {} calendar events to process". Note, the event downloader does only download events with a start time less than "refresh interval * 2" to reduce the amount of events being downloaded.

Regards,

Thomas E.-E.



--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/CDU3VXhB67sJ.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

cpt.ku...@gmail.com

unread,
Apr 10, 2013, 12:08:46 PM4/10/13
to ope...@googlegroups.com
Hi!
I'm using openHAB runtime 1.1.0 and face the problem described in this thread: XMPP works well but after the 2nd or 3rd items command i get no further response from openHab (running on Debian Linux on Raspberry PI).

The logfile shows:
22:00:27.781 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection timed out
22:00:27.804 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Connection timed out
22:00:28.672 INFO  o.o.i.n.i.jabber.XMPPConnect[:119]- Connection to XMPP as 'xxxxxx...@gmail.com' has been established.
22:00:28.682 INFO  o.o.i.n.i.jabber.XMPPConnect[:158]- XMPP re-connection succeeded.
22:00:38.528 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Stream closed
22:00:38.546 INFO  o.o.i.n.i.jabber.XMPPConnect[:158]- XMPP re-connection succeeded.
22:00:38.550 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Socket is closed
22:00:38.557 INFO  o.o.i.n.i.jabber.XMPPConnect[:158]- XMPP re-connection succeeded.
22:00:49.272 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Stream closed
22:00:49.299 INFO  o.o.i.n.i.jabber.XMPPConnect[:158]- XMPP re-connection succeeded.
22:00:49.303 INFO  o.o.i.n.i.jabber.XMPPConnect[:152]- XMPP connection has been closed on error: Socket is closed
22:00:49.306 INFO  o.o.i.n.i.jabber.XMPPConnect[:158]- XMPP re-connection succeeded.

openHAB is still working as expected but in Google Talk the openHAB user is shown offline and i con not send messages anymore.

############################# XMPP configuration ######################################

# The XMPP server to use, e.g. "jabber.org" or "talk.google.com"
xmpp:servername=talk.google.com

# The XMPP Proxyserver to use, e.g. "gmail.com"
xmpp:proxy=gmail.com

# the server port to use (optional, defaults to 5222)
xmpp:port=5222

# the username and password for the sending XMPP account
xmpp:username=xxxxxx...@gmail.com
xmpp:password=*************

# a comma separated list of users that are allowed to use the XMPP console
xmpp:consoleusers=yyyyyyy...@gmail.com


The XMPP addon does not re-connect to the server correctly. How can i solve this problem?

Chiao!

Kai Kreuzer

unread,
Apr 10, 2013, 12:10:55 PM4/10/13
to ope...@googlegroups.com
There were a few fixes around XMPP in openHAB 1.2 development - could you try with the latest 1.2 snapshot from https://openhab.ci.cloudbees.com/job/openHAB/ (or wait for the official 1.2 release next Sunday)?

Regards,
Kai

To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

cpt.ku...@gmail.com

unread,
Apr 10, 2013, 2:19:23 PM4/10/13
to ope...@googlegroups.com
Hi Kai!

New release next sunday? Sound's great, i guess i'll wait!

Thanx! Joe

cpt.ku...@gmail.com

unread,
Apr 23, 2013, 4:07:02 AM4/23/13
to ope...@googlegroups.com, cpt.ku...@gmail.com
Hi Kai!

The XMPP connection seems stable now - thank you. But there is another problem:

The first time i use the command "items" i get a valid answer from openhab. Then the google talk user is still online but the openhab installations does not "answer" anymore. I enabled the logging and it get:

21:17:39.018 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
21:18:25.630 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: null
21:18:28.505 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: help
21:18:32.534 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: null
21:18:33.844 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: items
21:18:34.305 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: FF_Office (Type=GroupItem, Members=3, State=Uninitialized)
21:18:34.332 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: FF_Child (Type=GroupItem, Members=1, State=Uninitialized)
21:18:34.352 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: FF_Bed (Type=GroupItem, Members=1, State=Uninitialized)
21:18:34.372 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: FF_Gallery (Type=GroupItem, Members=1, State=Uninitialized)
21:18:34.394 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Lights (Type=GroupItem, BaseType=SwitchItem, Members=7, State=Uninitialized)
21:18:34.415 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_GF_TV_Wall (Type=DimmerItem, State=Uninitialized)
21:18:34.435 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Office_Ceiling (Type=SwitchItem, State=Uninitialized)
21:18:34.456 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Gallery_Ceiling (Type=DimmerItem, State=Uninitialized)
21:18:34.488 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Child_Ceiling (Type=SwitchItem, State=Uninitialized)
21:18:34.518 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Bed_Ceiling (Type=DimmerItem, State=Uninitialized)
21:18:34.543 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Bath_Ceiling (Type=SwitchItem, State=Uninitialized)
21:18:34.564 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Light_FF_Bath_Mirror (Type=SwitchItem, State=Uninitialized)
21:18:34.582 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_all (Type=SwitchItem, State=Uninitialized)
21:18:34.612 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_1 (Type=RollershutterItem, State=Uninitialized)
21:18:34.636 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_2 (Type=RollershutterItem, State=Uninitialized)
21:18:34.662 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_3 (Type=RollershutterItem, State=Uninitialized)
21:18:34.674 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_4 (Type=RollershutterItem, State=Uninitialized)
21:18:34.700 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_TV1 (Type=RollershutterItem, State=Uninitialized)
21:18:34.716 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Living_TV2 (Type=RollershutterItem, State=Uninitialized)
21:18:34.728 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Kitchen_1 (Type=RollershutterItem, State=Uninitialized)
21:18:34.759 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Kitchen_2 (Type=RollershutterItem, State=Uninitialized)
21:18:34.773 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Kitchen_3 (Type=RollershutterItem, State=Uninitialized)
21:18:34.794 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_GF_Kitchen_4 (Type=RollershutterItem, State=Uninitialized)
21:18:34.815 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_FF_Office_Window (Type=RollershutterItem, State=Uninitialized)
21:18:34.828 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Shutter_FF_Office_Door (Type=RollershutterItem, State=Uninitialized)
21:18:34.840 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Weather_Chart (Type=GroupItem, Members=3, State=Undefined)
21:18:34.852 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Weather_Temperature (Type=NumberItem, State=13)
21:18:34.864 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Weather_Temp_Max (Type=NumberItem, State=Uninitialized)
21:18:34.876 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Weather_Temp_Min (Type=NumberItem, State=Uninitialized)
21:18:34.893 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Date (Type=DateTimeItem, State=Uninitialized)
21:18:34.905 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: update_greent (Type=SwitchItem, State=Uninitialized)
21:18:34.917 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Usage: 
update <item> <state> - sends a status update for an item
send <item> <command> - sends a command for an item
status <item> - shows the current status of an item
items [<pattern>] - lists names and types of all items matching the pattern
say <sentence to say> - Says a message through TTS on the host machine
> <script to execute> - Executes a script

21:18:34.935 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Usage: 
update <item> <state> - sends a status update for an item
send <item> <command> - sends a command for an item
status <item> - shows the current status of an item
items [<pattern>] - lists names and types of all items matching the pattern
say <sentence to say> - Says a message through TTS on the host machine
> <script to execute> - Executes a script

21:18:34.953 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Usage: 
update <item> <state> - sends a status update for an item
send <item> <command> - sends a command for an item
status <item> - shows the current status of an item
items [<pattern>] - lists names and types of all items matching the pattern
say <sentence to say> - Says a message through TTS on the host machine
> <script to execute> - Executes a script



This Block is repeated over and over every couple of milli seconds (until i kill the process):

21:18:34.953 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Usage: 
update <item> <state> - sends a status update for an item
send <item> <command> - sends a command for an item
status <item> - shows the current status of an item
items [<pattern>] - lists names and types of all items matching the pattern
say <sentence to say> - Says a message through TTS on the host machine
> <script to execute> - Executes a script


Maybe my items file is wrong?
Greetings, Joe

cpt.ku...@gmail.com

unread,
Apr 23, 2013, 3:39:05 PM4/23/13
to ope...@googlegroups.com, cpt.ku...@gmail.com
This problem is not related to the items configuration. I reproduced the problem with the demo runtime configuration.
It seems that the chat messages are echoed back to the openhab xmpp client and trigger the processMessage Method.

Am i the only one using this feature?

cpt.ku...@gmail.com

unread,
Apr 24, 2013, 2:49:23 PM4/24/13
to ope...@googlegroups.com, cpt.ku...@gmail.com
This problem is likely to occur in conjunction with Google Talk accounts.

I found this piece of code:

// gtalk requires this or your messages bounce back as errors
        ConnectionConfiguration connConfig = new ConnectionConfiguration("talk.google.com", 5222, "gmail.com");
        XMPPConnection connection = new XMPPConnection(connConfig);


But using the proxy configuration does not change anything. Every message sent via the 'smack' library is bounced back as an error - but it is also delivered to the chat client! These error messages are interpreted as an unknown command and answered by the usage message. This in turn triggers an infinite loop!

A small fix solves the problem, but does not solve the cause!


public void processMessage(Chat chat, Message msg) {
logger.debug("Received XMPP message: {} of type {}", msg.getBody(),
msg.getType());
if (msg.getType() != Message.Type.error) {
String cmd = msg.getBody();
String[] args = cmd.split(" ");
ConsoleInterpreter.handleRequest(args, new ChatConsole(chat));
}
}

Greetings,
Joe

Kai Kreuzer

unread,
Apr 24, 2013, 3:08:58 PM4/24/13
to ope...@googlegroups.com
Hi Joe,

Thanks a lot for analyzing this problem and entering http://code.google.com/p/openhab/issues/detail?id=255 - I indeed did not have it as I am using jabber.org and not google talk. Will include your suggested patch soon.

Cheers,
Kai

cpt.ku...@gmail.com

unread,
Apr 25, 2013, 12:33:09 PM4/25/13
to ope...@googlegroups.com
Hi Kai,

looks like i should switch to jabber.org ;-) I could not find out why google deliveres the messages AND bounces them back as errors.
Anyway, error messages should not trigger the "Usage:" response. This fix makes sense to avoid ifinite loops.

Cheers,
Joe

Kai Kreuzer

unread,
Apr 26, 2013, 5:26:16 PM4/26/13
to ope...@googlegroups.com
Thanks again, the issue is fixed now!

Christoph Wempe

unread,
Jul 26, 2013, 6:18:16 PM7/26/13
to ope...@googlegroups.com
I just created an gmail-account and configured the xmpp-plugin successfully. :)
I just had no idea how to get the cryptic gmail-address "xmpp:consoleusers".
When I tried to send a massage from my private account to the openhab account I found my address in the log. :)

23:56:42.066 WARN  o.o.i.n.i.jabber.XMPPConsole[:72]- Received chat request from the unknown user '242tp1xxxx...@public.talk.google.com'.

But what is the official way to get this address?

Another question:
Is there a way to send information automatically (e.g. periodically) via xmpp to me?
Like "Somebody just entered the front door" or "Here is your daily report. It is 27°C outside".

Kai Kreuzer

unread,
Jul 27, 2013, 10:21:15 AM7/27/13
to ope...@googlegroups.com
Hi Christoph,

> I just had no idea how to get the cryptic gmail-address "xmpp:consoleusers".
> But what is the official way to get this address?

Not sure why you have/need a cryptic address here - I am simply using my normal gmail-address from which I send the messages (or rather my jabber.org address since GTalk is/will be replaced by the proprietary hangouts…)

> Is there a way to send information automatically (e.g. periodically) via xmpp to me?
> Like "Somebody just entered the front door" or "Here is your daily report. It is 27°C outside".

Surely! Simply use the available XMPP action in an apropriate rule, like

rule Firealarm
when
Item Alarm_Fire changed to ON
then
if(Alarm.state==OFF) {
send("y...@gmail.com", "Your house is burning down!")
}
end

Hope you won't need this example ;-)

Regards,
Kai

Christoph Wempe

unread,
Jul 27, 2013, 10:43:49 AM7/27/13
to ope...@googlegroups.com
Thanks


Not sure why you have/need a cryptic address here - I am simply using my normal gmail-address from which I send the messages (or rather my jabber.org address since GTalk is/will be replaced by the proprietary hangouts…)

Maybe it didn't work, because I  use my own domain with gmail.
When I tried the gmail-adress and it didn't work, I saw the log and used the long adress.
Will try my other address. :)

 
Surely! Simply use the available XMPP action in an apropriate rule, like

rule Firealarm
when
        Item Alarm_Fire changed to ON
then
        if(Alarm.state==OFF) {
                send("y...@gmail.com", "Your house is burning down!")
        }
end

Somehow I missed this important site with all commands, until now.
My bad. ;)

Christoph Wempe

unread,
Jul 27, 2013, 7:46:18 PM7/27/13
to ope...@googlegroups.com
I am getting crazy. :(


I got all kind of different behavior without changing much (just playing around with xmpp:consoleusers) in the openhab.cfg.


"unknown user" when I try to send from Hangout or send via openhab (test.rules).
I tried the corrosponding usernames in the  xmpp:consoleusers.
17:50:56.261 INFO  o.o.i.n.i.jabber.XMPPConnect[:122]- Connection to XMPP as 'xx...@gmail.com' has been established.
17:51:08.062 WARN  o.o.i.n.i.jabber.XMPPConsole[:72]- Received chat request from the unknown user '242tp.......zr1a@public.talk.google.com'.
17:54:38.383 INFO  o.o.i.n.i.jabber.XMPPConnect[:122]- Connection to XMPP as 'xx...@gmail.com' has been established.
17:56:18.779 WARN  o.o.i.n.i.jabber.XMPPConsole[:72]- Received chat request from the unknown user 'my....@domain.com'.


A few times I got it working:


But I get the feeling it stopped working every time I got the answer to "items".

Unfortunately I cannot reproduce it anymore, because it just doesn't work anymore. :(

First the "say"-command stopped working.
00:30:38.887 ERROR o.o.i.multimedia.actions.Audio[:205]- No TTS service available - tried to say: jo ON
(I understand this error, but why did it work in the first place?? [see screenshot])

And now the connection is established according to log.
01:18:50.800 INFO  o.o.i.n.i.jabber.XMPPConnect[:122]- Connection to XMPP as 'xx...@gmail.com' has been established.
But the account seems to be offline in hangout and does not replay to any command.


I think I just had to clear my mind by posting here and will start from scratch tomorrow to isolate the cause of the problem. :)

Christoph Wempe

unread,
Jul 27, 2013, 8:46:35 PM7/27/13
to ope...@googlegroups.com
Set Log-Level higher.
Got maaaaannnnyyyyy log entries from jabber.
Saw the last edit in the source code was something with "infinite loop".
Realized it is a bug in v1.2.

I will try the 1.3-snapshot. :)

Christoph Wempe

unread,
Jul 27, 2013, 9:23:56 PM7/27/13
to ope...@googlegroups.com
So now I got the same issue as in the forst post of this thread. :)

rule "test xmpp"
    when
        Time cron "*/20 * * * * ?"
    then
        send("m...@domain.com", "Test 123")
end

Log
03:19:40.002 DEBUG o.o.m.r.i.e.ExecuteRuleJob[:73]- Executing scheduled rule 'test xmpp'
03:19:40.177 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 123 of type error
03:20:00.004 DEBUG o.o.m.r.i.e.ExecuteRuleJob[:73]- Executing scheduled rule 'test xmpp'
03:20:00.156 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 123 of type error
03:20:20.002 DEBUG o.o.m.r.i.e.ExecuteRuleJob[:73]- Executing scheduled rule 'test xmpp'
03:20:20.178 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 123 of type error

I use the latest snapshot now.
Am I correct the only/best solution is to create a new account at jabber.org?

I really need to get to bed now. :)

Christoph Wempe

unread,
Jul 28, 2013, 9:05:08 AM7/28/13
to ope...@googlegroups.com
Here is my latest discovery.

I configured all three possible xmpp-adresses of my gmail-account (crypt, gmail, my domain) and a fake-address:
I send a meaasagr to each address:
send("my....@domain.com", "Test 1")
send("242t....a@public.talk.google.com", "Test 2")
send("my....@gmail.com", "Test 3")
send("does...@exist.com", "Test 4")
send("does.n...@exist.com", "Test 5")

Logs:
14:59:20.002 DEBUG o.o.m.r.i.e.ExecuteRuleJob[:73]- Executing scheduled rule 'test xmpp'
14:59:20.008 WARN  o.o.i.n.i.jabber.XMPPConsole[:72]- Received chat request from the unknown user 'does.n...@exist.com'.
14:59:20.157 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 1 of type error
14:59:20.664 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 3 of type error
14:59:20.664 DEBUG o.o.i.n.i.jabber.XMPPConsole[:80]- Received XMPP message: Test 4 of type error

"Test 2" arrives successfully.

Conclusion:
Sending to the crypt address does work fine.
Every other (allowed) address gets an "Received XMPP message: *** of type error" rejection.

Can anybody confirm this?

Kai Kreuzer

unread,
Jul 28, 2013, 10:12:08 AM7/28/13
to ope...@googlegroups.com
Am I correct the only/best solution is to create a new account at jabber.org?

As GTalk is more or less dead, I think this is probably the best solution…


Juan Pablo Soto

unread,
Jun 27, 2014, 1:01:38 PM6/27/14
to ope...@googlegroups.com
the only solution is to put the username without @ 
Regards

wma...@amdium.com

unread,
Jul 10, 2014, 12:29:53 AM7/10/14
to ope...@googlegroups.com, k...@openhab.org
Dear Uwe,

You have done this but facing some problems as u saying not working correct, can you tell me which commands and how to use,

  1. do i need to make items file, or rules file etc in openhab designer or just add the credentials in openhab.cfg file and then when core says connection with a...@gmail.com has been established all is done?
  2. now i have added that email address which i used inopenhab.cfg to my other gmail account, i want to chat, how can i chat and what commands/messages i can write? these are pre built in xmpp binding or i need to create, further if i need to create then how and where i can create? ( i am searching over internet hopefully i get the way how to do but as u have already done thats y asking you)


Regards

Wajid

wma...@amdium.com

unread,
Jul 10, 2014, 2:50:13 AM7/10/14
to ope...@googlegroups.com

Hello dear Christoph 

i am also new to openhab, can u tell me how did you get this window ( snapshot that u shared having reply from openhab against items etc)

i have not made any rule etc, nothing just added my gmail account settings in openhab.cfg file and it shows me folowing result whenever i try to send msg to my email address i used in openhab.cfg file. i get this in core:

11:45:51.852 WARN  o.o.a.x.internal.XMPPConsole[:52] - Received chat request from the unknown user '1li9zg0h6zhuj...@public.talk.google.com'.
11:47:12.382 WARN  o.o.a.x.internal.XMPPConsole[:52] - Received chat request from the unknown user '1li9zg0h6zhuj...@public.talk.google.com'.

What should i do? how can i get the windows that u got in snapshot?

Regards

Wajid

wma...@amdium.com

unread,
Jul 14, 2014, 4:27:12 AM7/14/14
to ope...@googlegroups.com

y not i am getting the results i want, can anyone send me the items and rule files for xmpp binding by which he/she is getting status replies from openhab

Christoph Wempe

unread,
Jul 15, 2014, 4:36:31 AM7/15/14
to ope...@googlegroups.com
Wajid and I figured aout the problem.
It was the same I had that time ago.

In case anybody alse faces the same problem.

You need to try to send a message from you account to your openhab-xmpp-account.
Then search the logs for the lines Wajid posted above ("WARN  o.o.a.x.internal.XMPPConsole[:52] - Received chat request from the unknown user ....").

All you need to do is copy this long crypted mail address to "xmpp:consoleusers=".


Am Donnerstag, 10. Juli 2014 08:50:13 UTC+2 schrieb Wajid Malik:

Hello dear Christoph 

i am also new to openhab, can u tell me how did you get this window ( snapshot that u shared having reply from openhab against items etc)

i have not made any rule etc, nothing just added my gmail account settings in openhab.cfg file and it shows me folowing result whenever i try to send msg to my email address i used in openhab.cfg file. i get this in core:

11:45:51.852 WARN  o.o.a.x.internal.XMPPConsole[:52] - Received chat request from the unknown user '1li9...o@public.talk.google.com'.
11:47:12.382 WARN  o.o.a.x.internal.XMPPConsole[:52] - Received chat request from the unknown user '1li9..o.@public.talk.google.com'.

Wajid Malik

unread,
Jul 15, 2014, 4:57:16 AM7/15/14
to ope...@googlegroups.com
i did the same and it worked. but it should work with normal address too. I dont know its a bug or what?

Daniel Abegglen

unread,
Jul 15, 2014, 5:02:56 AM7/15/14
to ope...@googlegroups.com
Thanks for the information, nice to know!

Regards,
Daniel
Reply all
Reply to author
Forward
0 new messages