XBMC Connection failed for '#OSMC' on 192.168.45.2

527 views
Skip to first unread message

wolffromthenorth

unread,
May 27, 2015, 3:57:49 PM5/27/15
to ope...@googlegroups.com
hi everybody.
i'm trying now for 2 days to get xbmc to communicate with openhab but it seems the binding is not communicating.
i have set all the options in openhab and xbmc as said on the fora but nothing !
i think OSMC is not communicating correctly with OPENHAB BINDING as the sickrage and sickbeard can communicate with notification messages as i would like to do with openhab
can someone help .?

Ben Jones

unread,
May 27, 2015, 7:29:21 PM5/27/15
to ope...@googlegroups.com
Check the web server port config in OSMC and compare to your binding config.

I just upgraded from Raspbmc to OSMC and previously Raspbmc was 8080 for the web server port (which is what openHAB was configured for) but OSMC installed with a default of port 80. As soon as I changed OSMC to 8080 everything started working as before.

christophe xxx

unread,
May 28, 2015, 1:47:11 AM5/28/15
to ope...@googlegroups.com

Hi ben thanks for replying but i checked this allready i have set it to 8084 and the other one left standard on 9090 as the binding states. I will post my config and settings maybe something i missed. In osmc all the settings are enabled as subscribed so also the remote control by other apps is on. I can send json commands to osmc as test with the webbrowser and i see the notification. Just the binding i ca'nt get to work. The xbmx action binding also did not work. I hope we find a solution.

Op 28-mei-2015 01:29 schreef "Ben Jones" <ben.j...@gmail.com>:
Check the web server port config in OSMC and compare to your binding config.

I just upgraded from Raspbmc to OSMC and previously Raspbmc was 8080 for the web server port (which is what openHAB was configured for) but OSMC installed with a default of port 80. As soon as I changed OSMC to 8080 everything started working as before.

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/JiXRGQncymA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/3f0850f9-045d-4357-8e5f-1c581f5af720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wolffromthenorth

unread,
May 28, 2015, 4:29:38 AM5/28/15
to ope...@googlegroups.com
As promised this is what is in my config from openhab: ( I had to add this as this was not standard in my config file )
 
######################## XBMC Binding ###########################
# Hostname / IP address of your XBMC host
xbmc:OSMC.host=192.168.45.2
# Port number for the json rpc service (optional, defaults to 8080)
xbmc:OSMC.rsPort=8084
# Port number for the web socket service (optional, defaults to 9090)
xbmc:OSMC.wsPort=9090
# Username to connect to XBMC. (optional, defaults to none)
xbmc:OSMC.username=osmc
# Password to connect to XBMC. (optional, defaults to none)
xbmc:OSMC.password=osmc
 
this is my item file :

//*XBMC*//
String    XbmcOSMC_State            "OSMC State [%s]"      { xbmc="<[#OSMC|Player.State]" }
String    XbmcOSMC_Title            "OSMC Title [%s]"      { xbmc="<[#OSMC|Player.Title]" }
String    XbmcOSMC_ShowTitle        "OSMC Show [%s]"       { xbmc="<[#OSMC|Player.ShowTitle]" }
String    XbmcOSMC_Notify           "OSMC Notify [%s]"     { xbmc="<[#OSMC|GUI.ShowNotification]", autoupdate="false" }

this is my rule file :
postUpdate(XbmclivingRoom_Notify, "Deurbel - Visitor at the Door")
 
config in OSMC:
 
webserver port :8084
remote apps my control osmc : all on
upnp : disabled
zeroconfig: ON
 
what am I doing wrong ?


 

Ben Jones

unread,
May 28, 2015, 6:23:16 AM5/28/15
to ope...@googlegroups.com
Can you try disabling authentication on OSMC and retesting (after updating your openHAB config)?

wolffromthenorth

unread,
May 28, 2015, 6:37:24 AM5/28/15
to ope...@googlegroups.com
I can test this this evening when i'm at home or if someone can tell me how to do it via command cause i'm at work but I do have acces on ssh.
btw this the log I got from Linux about the ports of osmc
 
osmc@osmc:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 DOMPI:8084              XPN1:42175              ESTABLISHED
tcp        0      0 DOMPI:8084              XPN1:42176              ESTABLISHED
tcp        0    304 DOMPI:ssh               193.53.137.232:23504    ESTABLISHED
tcp        0      0 DOMPI:8084              XPN1:42177              ESTABLISHED
tcp6       0      0 DOMPI:9090              XPN1:58867              ESTABLISHED
udp        0      0 DOMPI:46650             DD-WRT:domain           ESTABLISHED

wolffromthenorth

unread,
May 28, 2015, 6:41:43 AM5/28/15
to ope...@googlegroups.com
Here I can see that my xpenelogy ( sickbeard and couchpotato ) communicate fine for updating databases and sending notifications.
also openhab is installed on the xpenelogy so I do not see a direct reason for malfunctioning.
 thanks already for looking into this because i'm breaking a leg here  :-) 

wolffromthenorth

unread,
May 28, 2015, 8:01:38 AM5/28/15
to ope...@googlegroups.com
I Just checked my router config cause in the logs I saw Hostname DOMPI wich was previous for my openhab testmachine and is now a OSMC clean install so I did not understand where it came From.
I disabled IPV6 on OSMC also cause on other fora they seem to have issue's been reported about it.
I noticed changes in items being updated so I believe something is starting to work now.
 
2015-05-28 13:57:09.307 [INFO ] [penhab.io.rest.RESTApplication] - Stopped REST API
2015-05-28 13:57:13.319 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Stopped Classic UI
2015-05-28 13:57:13.321 [INFO ] [.o.io.habmin.HABminApplication] - Stopped HABmin REST API
2015-05-28 14:00:15.546 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.0).
2015-05-28 14:00:16.682 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2015-05-28 14:00:16.728 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2015-05-28 14:00:19.277 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2015-05-28 14:00:26.298 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'jarvis.sitemap'
2015-05-28 14:00:26.460 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'db4o.persist'
2015-05-28 14:00:26.502 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'Jarvis.items'
2015-05-28 14:00:27.247 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /openhab.app
2015-05-28 14:00:32.577 [INFO ] [.o.io.habmin.HABminApplication] - Started HABmin REST API at /services/habmin
2015-05-28 14:00:36.681 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'jarvis.rules'
2015-05-28 14:00:37.825 [INFO ] [.service.AbstractActiveService] - HTTP Refresh Service has been started
2015-05-28 14:00:37.872 [INFO ] [.service.AbstractActiveService] - XBMC Refresh Service has been started
2015-05-28 14:00:38.721 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2015-05-28 14:00:38.767 [INFO ] [o.o.b.w.i.common.WeatherConfig] - LocationConfig[providerName=YAHOO,language=en,updateInterval=40,latitude=51.0328973,longitude=4.4176682,locationId=home,name=Leest]
2015-05-28 14:00:38.774 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyUSB0
2015-05-28 14:00:38.780 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2015-05-28 14:00:38.794 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2015-05-28 14:00:38.794 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-05-28 14:00:38.794 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyUSB0
2015-05-28 14:00:38.917 [INFO ] [b.z.i.protocol.ZWaveController] - Serial port is initialized
2015-05-28 14:00:38.970 [INFO ] [.service.AbstractActiveService] - NetworkHealth Refresh Service has been started
2015-05-28 14:00:41.434 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'deurbel': The name 'XbmclivingRoom_Notify' cannot be resolved to an item or type.
2015-05-28 14:00:41.777 [INFO ] [.o.b.w.i.s.WeatherJobScheduler] - Starting and scheduling weatherJob-home with interval of 40 minutes
2015-05-28 14:00:42.039 [INFO ] [rialApiGetInitDataMessageClass] - NODE 1: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 2: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 3: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 4: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 5: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 6: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 7: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - NODE 8: Node found
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller using Controller API
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
2015-05-28 14:00:42.040 [INFO ] [rialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Controller------------
2015-05-28 14:00:42.041 [INFO ] [rialApiGetInitDataMessageClass] - # Nodes = 8
2015-05-28 14:00:42.041 [INFO ] [rialApiGetInitDataMessageClass] - ----------------------------------------------------------------------------
2015-05-28 14:00:42.636 [WARN ] [.o.b.z.i.p.c.ZWaveCommandClass] - NODE 3: Unsupported command class SWITCH_ALL
2015-05-28 14:00:42.644 [WARN ] [.o.b.z.i.p.c.ZWaveCommandClass] - NODE 4: Unsupported command class SWITCH_ALL
2015-05-28 14:00:42.666 [WARN ] [.o.b.z.i.p.c.ZWaveCommandClass] - NODE 7: Unsupported command class SWITCH_ALL

wolffromthenorth

unread,
May 28, 2015, 8:04:42 AM5/28/15
to ope...@googlegroups.com
my guess would be that its either ipv6 being enabled or the hostname
one can check this easely by loggin onto the mediacenter on ssh
 

osmc@osmc:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    304 OSMC:ssh                193.53.137.232:24358    ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42737              ESTABLISHED
tcp        0      0 OSMC:ssh                193.53.137.232:23014    TIME_WAIT
tcp        0      0 OSMC:ssh                193.53.137.232:24179    ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42738              ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42739              ESTABLISHED
tcp6       0      0 OSMC:9090               XPN1:59429              ESTABLISHED
udp        0      0 OSMC:58587              DD-WRT:domain           ESTABLISHED

why port9090 is still tcp6 I don't know 
but at least something working and the refresh service connects.
 
happy me :-) 

Marcel Erkel

unread,
May 28, 2015, 3:40:11 PM5/28/15
to ope...@googlegroups.com
Hi wolffromthenorth,

I noticed the following error in your log:

2015-05-28 14:00:41.434 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'deurbel': The name 'XbmclivingRoom_Notify' cannot be resolved to an item or type.


String    XbmcOSMC_Notify           "OSMC Notify [%s]"     { xbmc="<[#OSMC|GUI.ShowNotification]", autoupdate="false" }


And in your rule you have:

postUpdate(XbmclivingRoom_Notify, "Deurbel - Visitor at the Door")

So your rule needs to become:

postUpdate(XbmcOSMC_Notify, "Deurbel - Visitor at the Door")

This should fix the problem of not showing a notification when someone rings the doorbel.

Cheers,
Marcel


On Thursday, May 28, 2015 at 2:04:42 PM UTC+2, wolffromthenorth wrote:
my guess would be that its either ipv6 being enabled or the hostname
one can check this easely by loggin onto the mediacenter on ssh
 

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    304 OSMC:ssh                193.53.137.232:24358    ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42737              ESTABLISHED
tcp        0      0 OSMC:ssh                193.53.137.232:23014    TIME_WAIT
tcp        0      0 OSMC:ssh                193.53.137.232:24179    ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42738              ESTABLISHED
tcp        0      0 OSMC:8084               XPN1:42739              ESTABLISHED
tcp6       0      0 OSMC:9090               XPN1:59429              ESTABLISHED
udp        0      0 OSMC:58587              DD-WRT:domain           ESTABLISHED

why port9090 is still tcp6 I don't know 
but at least something working and the refresh service connects.
 
happy me :-) 

christophe xxx

unread,
May 28, 2015, 4:32:41 PM5/28/15
to ope...@googlegroups.com

Thnx mate

Saw that one afterwards its working now ;-)

Grtz

Op 28-mei-2015 21:40 schreef "Marcel Erkel" <marcel...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/JiXRGQncymA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Ben Jones

unread,
May 28, 2015, 4:39:59 PM5/28/15
to ope...@googlegroups.com
Sorry mate - went to bed last night just before your message - glad to see you got it working!

wolffromthenorth

unread,
May 29, 2015, 2:32:20 AM5/29/15
to ope...@googlegroups.com
No problem ;-)
 
i'm just glad its solved.
I found no info yet on the internet so I think this is a first to remember for all upcoming users of this binding who are looking for a solution.
i'm running the latest binding on xpenology 5.1 5022.
I think the problem realy lies in the hostname being set wrong in my router --> assigned IP by mac with ddwrt.
I have not tested yet on reenabling tcp 6 in OSMC but as I do not need it i'll leave it disabled.
 
kind regards
Reply all
Reply to author
Forward
0 new messages