MagentaTV / EntertainTV Binding for Deutsche Telekom MR 3xx and 4xx

binding
Tags: #<Tag:0x00007f1e5cc9a5a0>
(Sebastian Kastner) #142

Hello, tobias
I have the script. But i dont know where I have to enter my user and password. I do not have a FritzBox.

0 Likes

(Markus Michels) #143

Hi @Sebastian_Kastner what’s you environment you are running OH.
If it’s a RPi or Lunix you could run the script with your Telekom credentials. User Id (xxx@t-online.de) is parameter 1 and t-online password is parameter 2 on the command line.

getEntertainTVUserID.sh <user@t-online.de> <password>

On other platforms you need to run tcpdump and extract the user id from the packet dump.

0 Likes

(Markus Michels) #144

There is no event fromthe MR when you power it on and off. So far I didn’t found a way to detect the online/suspend status of the MR.

0 Likes

(Markus Michels) #145

@ibot1989 what’s abot the MR400?

0 Likes

(Tobias) #146

Hi Markus,

the MR400 have the Error in the post on top.
The same Errors with Binding V2.4-Snapshot.

0 Likes

(Markus Michels) #147

Go to the thing config and expand [Show properties] and copy here.

0 Likes

(Tobias) #148

Hi,

i have remove the Thing MR400 and have reboot the OpenHAB server.
Now i have adding the Thing again, the binding not found the MR type automatically:

I can`t select Receiver Model MR400, when i selected paper UI say “Error” without error message.
The Model type ist not save.

in the log file, there are no errors:

EntertainTV: Pairing complete for ‘Telekom Schlafzimmer’
and i can adding items, but i can`t control the MR400 and i become no informations to the items “Progam”, “Description” and the other items.

by the way, i have an MR201 available soon, probably on Sunday evening, for further tests.

0 Likes

(Markus Michels) #149

first we need to find out the status of rhe initialization. Go to the binding properties, but close the edit mode by clicking on the check mark. There should be a button [Show Properties]

In addition you could set the debugging mode to TRACE (log:set TRAC org.openhab.binding.entertaintv in the OH console)

0 Likes

(Tobias) #150

Status: ONLINE

HIDE PROPERTIES

manFilter HUAWEI
serialNumber
modelId dmr_tpb
ipAddress 192.168.9.147
terminalID 26A5F0FD7A02C93E07CFC428C499D182
userId 9315609461EBXXXXXXXXXXXXXX99
verificationCode F5600B299780840622C3B2C7FE83DA03
localMAC B8:27:EB:AD:1D:22
macAddress AC:6F:BB:2F:1E:C4
wakeOnLAN 0
port 49152
vendor Deutsche Telekom(Huawei Technologies Co.,Ltd)
descriptionUrl /description.xml
modelFilter manFilter
localIP 192.168.9.20
hardwareVersion 1.1
pairingCode 8EAD18BC
udn BB5E21CE-2222-11B2-F918-AC6FBB2F1EC4
friendlyName Telekom Schlafzimmer

I activated

0 Likes

(Markus Michels) #151

it looks like pairing was completed successful
what’s about the TRACE log?

0 Likes

(Tobias) #152

what do I have to do to see the trace?
after I activated it?

in the /var/log/openhab2/openhab.log and events.log is nothing.

0 Likes

(Markus Michels) #153

go to the OH console and enter the command above. output is written to openhab.log

0 Likes

(Tobias) #154
Logger                                             │ Level
───────────────────────────────────────────────────┼──────
org.openhab.binding.entertaintv                    │ TRACE

i make item “channel up” to ON, log:

==> /var/log/openhab2/events.log <==
2018-10-19 20:54:50.143 [ome.event.ItemCommandEvent] - Item ‘TelekomSchlafzimmer_ChannelUp’ received command ON
2018-10-19 20:54:50.156 [vent.ItemStateChangedEvent] - TelekomSchlafzimmer_ChannelUp changed from OFF to ON

there is no trace output

0 Likes

(Tobias) #155

Maybe it will help you

The xml from the MR401B description URL in the Thing (/xml/xctc.xml):

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<UDN>uuid:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01</UDN>
<friendlyName>Telekom Wohnzimmer</friendlyName>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<manufacturer>Huawei Technologies Co.,Ltd</manufacturer>
<modelName>MR401B</modelName>
<modelNumber>R01A3</modelNumber>
<productVersionNumber>" 391 "</productVersionNumber>
<productType>stb</productType>
<serialNumber/>
<X_wakeOnLan>0</X_wakeOnLan>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<dlna:X_DLNACAP xmlns:dlna="urn:schemas-dlna-org:device-1-0"/>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<controlURL>/upnp/service/ConnectionManager/Control</controlURL>
<eventSubURL>/upnp/service/ConnectionManager/Event</eventSubURL>
<SCPDURL>/upnp/service/des/cms.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<controlURL>/upnp/service/AVTransport/Control</controlURL>
<eventSubURL>/upnp/service/AVTransport/Event</eventSubURL>
<SCPDURL>/upnp/service/des/avt.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<controlURL>/upnp/service/RenderingControl/Control</controlURL>
<eventSubURL>/upnp/service/RenderingControl/Event</eventSubURL>
<SCPDURL>/upnp/service/des/rcs.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:X-CTC_RemotePairing:1</serviceType>
<serviceId>urn:upnp-org:serviceId:X-CTC_RemotePairing</serviceId>
<controlURL>/upnp/service/X-CTC_RemotePairing/Control</controlURL>
<eventSubURL>/upnp/service/X-CTC_RemotePairing/Event</eventSubURL>
<SCPDURL>/upnp/service/des/X-CTC_RemotePairing.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:X-CTC_RemoteControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:X-CTC_RemoteControl</serviceId>
<controlURL>/upnp/service/X-CTC_RemoteControl/Control</controlURL>
<eventSubURL>/upnp/service/X-CTC_RemoteControl/Event</eventSubURL>
<SCPDURL>/upnp/service/des/X-CTC_RemoteControl.xml</SCPDURL>
</service>
</serviceList>
</device>
</root>

And this is xml from the MR400 description URL in the Thing (/description.xml):

<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<UDN>uuid:bb5e21ce-1111-11b2-f918-AC6FBB2F1EC4</UDN>
<friendlyName>Telekom Schlafzimmer</friendlyName>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<manufacturer>Huawei Technologies Co.,Ltd</manufacturer>
<manufacturerURL>http://www.huawei.com</manufacturerURL>
<modelName>dmr_tpb</modelName>
<modelNumber>1.1</modelNumber>
<productVersionNumber>100</productVersionNumber>
<modelURL>http://www.huawei.com</modelURL>
<productType>stb</productType>
<serialNumber/>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<dlna:X_DLNACAP xmlns:dlna="urn:schemas-dlna-org:device-1-0"/>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<controlURL>/upnp/service/ConnectionManager/Control</controlURL>
<eventSubURL>/upnp/service/ConnectionManager/Event</eventSubURL>
<SCPDURL>/upnp/service/des/cms.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<controlURL>/upnp/service/AVTransport/Control</controlURL>
<eventSubURL>/upnp/service/AVTransport/Event</eventSubURL>
<SCPDURL>/upnp/service/des/avt.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<controlURL>/upnp/service/RenderingControl/Control</controlURL>
<eventSubURL>/upnp/service/RenderingControl/Event</eventSubURL>
<SCPDURL>/upnp/service/des/rcs.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:X-CTC_RemotePairing:1</serviceType>
<serviceId>urn:upnp-org:serviceId:X-CTC_RemotePairing</serviceId>
<controlURL>/upnp/service/X-CTC_RemotePairing/Control</controlURL>
<eventSubURL>/upnp/service/X-CTC_RemotePairing/Event</eventSubURL>
<SCPDURL>/upnp/service/des/X-CTC_RemotePairing.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:X-CTC_RemoteControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:X-CTC_RemoteControl</serviceId>
<controlURL>/upnp/service/X-CTC_RemoteControl/Control</controlURL>
<eventSubURL>/upnp/service/X-CTC_RemoteControl/Event</eventSubURL>
<SCPDURL>/upnp/service/des/X-CTC_RemoteControl.xml</SCPDURL>
</service>
</serviceList>
</device>
</root>
0 Likes

(Markus Michels) #156

we need the trace log
go to the openhab console and enter
log:set TRACE org.openhab.binding.entertaintv
reatart OH, wait until initialization is completed
press a button
the output is written to openhab.log as usual

0 Likes

(Tobias) #157

Hello,
i have a error on the MR401, after the Binding running more than ~30 minutes:

2018-10-21 12:34:14.845 [ome.event.ItemCommandEvent] - Item 'TelekomWohnzimmer_ChannelUp' received command ON

==> /var/log/openhab2/openhab.log <==
2018-10-21 12:34:14.851 [INFO ] [ertaintv.internal.EntertainTVControl] - EntertainTVControl: Send Key 'CHUP' (keyCode='0x0101')
2018-10-21 12:34:14.855 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: sendKey keyCode='0x0101', terminalid='26A5F0FD7A02C93E07CFC428C499D182', pairingCode='8EAD18BC', verificationCode='F5600B299780840622C3B2C7FE83DA03', userId=9315XXXXXXXXXXXXXF99'

==> /var/log/openhab2/events.log <==
2018-10-21 12:34:14.861 [vent.ItemStateChangedEvent] - TelekomWohnzimmer_ChannelUp changed from OFF to ON

==> /var/log/openhab2/openhab.log <==
2018-10-21 12:34:14.864 [TRACE] [ertaintv.internal.EntertainTVNetwork] - EntertainTVNetwork: POST 'http://192.168.9.147:49152/upnp/service/X-CTC_RemoteControl/Control' - SoapAction='<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_CTC_RemoteKey xmlns:u="urn:schemas-upnp-org:service:X-CTC_RemoteControl:1"><InstanceID>0</InstanceID><KeyCode>keyCode=0x0101^26A5F0FD7A02C93E07CFC428C499D182:F5600B299780840622C3B2C7FE83DA03^userID:9315XXXXXXXF99</KeyCode></u:X_CTC_RemoteKey></s:Body></s:Envelope>', Data = '"urn:schemas-upnp-org:service:X-CTC_RemoteControl:1#X_CTC_RemoteKey"'
2018-10-21 12:34:16.871 [ERROR] [.internal.handler.EntertainTVHandler] - EntertainTV: Channel operation failed: Command=ON, value=channelUp, error=java.util.concurrent.TimeoutException

Commands to the MR401 are not working and information from the MR401 is not in openHAB.

After restarting the bundle via console, it will run for ~ 30 minutes,

I think we should fix the connection problems with the MR401 before we proceed with the complete connection problem with the MR400, right?

Here is the Bundle Init Log Trace for MR401 (I can not attach the log as a file to the post, message new users are not allowed to upload attachments. Therefore here directly in the post, unfortunately confusing):

2018-10-21 12:40:34.830 [DEBUG] [org.openhab.binding.entertaintv     ] - BundleEvent STOPPING - org.openhab.binding.entertaintv
2018-10-21 12:40:34.845 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory, org.openhab.binding.entertaintv.internal.EntertainTVHandlerFactory}={service.id=376, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.EntertainTVHandlerFactory, component.id=240} - org.openhab.binding.entertaintv

==> /var/log/openhab2/events.log <==
2018-10-21 12:40:34.878 [hingStatusInfoChangedEvent] - 'entertaintv:receiver:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01' changed from ONLINE to UNINITIALIZED
2018-10-21 12:40:34.888 [hingStatusInfoChangedEvent] - 'entertaintv:receiver:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

==> /var/log/openhab2/openhab.log <==
2018-10-21 12:40:34.946 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent UNREGISTERING - {javax.servlet.http.HttpServlet}={service.id=377, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.EntertainTVNotifyServlet, component.id=241} - org.openhab.binding.entertaintv
2018-10-21 12:40:34.976 [INFO ] [tv.internal.EntertainTVNotifyServlet] - EntertainTV: Servlet stopped
2018-10-21 12:40:34.986 [INFO ] [vice.internal.HttpServiceFactoryImpl] - Unbinding bundle: [org.openhab.binding.entertaintv_2.4.0.201810161802 [227]]
2018-10-21 12:40:34.994 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent UNREGISTERING - {javax.servlet.ServletContext}={osgi.web.version=2.4.0.201810161802, osgi.web.contextpath=/, service.id=378, osgi.web.symbolicname=org.openhab.binding.entertaintv, service.bundleid=227, service.scope=singleton, osgi.web.contextname=default} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.006 [INFO ] [.jetty.server.handler.ContextHandler] - Stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.binding.entertaintv_2.4.0.201810161802 [227], contextID=default]}
2018-10-21 12:40:35.029 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.discovery.upnp.UpnpDiscoveryParticipant}={service.id=379, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.discovery.EntertainTVDiscoveryParticipant, component.id=242} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.107 [DEBUG] [org.openhab.binding.entertaintv     ] - BundleEvent STOPPED - org.openhab.binding.entertaintv
2018-10-21 12:40:35.115 [DEBUG] [org.openhab.binding.entertaintv     ] - BundleEvent STARTING - org.openhab.binding.entertaintv
2018-10-21 12:40:35.193 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory, org.openhab.binding.entertaintv.internal.EntertainTVHandlerFactory}={service.id=380, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.EntertainTVHandlerFactory, component.id=243} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.202 [TRACE] [v.internal.EntertainTVHandlerFactory] - EntertainTV.Factory: Activate HandlerFactory
2018-10-21 12:40:35.245 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent REGISTERED - {javax.servlet.http.HttpServlet}={service.id=381, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.EntertainTVNotifyServlet, component.id=244} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.253 [INFO ] [vice.internal.HttpServiceFactoryImpl] - Binding bundle: [org.openhab.binding.entertaintv_2.4.0.201810161802 [227]] to http service
2018-10-21 12:40:35.270 [DEBUG] [tv.internal.EntertainTVNotifyServlet] - EntertainTV: HandlerFactory bound to servlet
2018-10-21 12:40:35.293 [INFO ] [rg.ops4j.pax.web.utils.ClassPathUtil] - Ignoring bundle scan for /META-INF/services javax.servlet.ServletContainerInitializer.
2018-10-21 12:40:35.298 [INFO ] [ce.jetty.internal.HttpServiceContext] - registering context DefaultHttpContext [bundle=org.openhab.binding.entertaintv_2.4.0.201810161802 [227], contextID=default], with context-name:
2018-10-21 12:40:35.312 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent REGISTERED - {javax.servlet.ServletContext}={osgi.web.version=2.4.0.201810161802, osgi.web.contextpath=/, service.id=382, osgi.web.symbolicname=org.openhab.binding.entertaintv, service.bundleid=227, service.scope=singleton, osgi.web.contextname=default} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.322 [INFO ] [.jetty.server.handler.ContextHandler] - Started HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.binding.entertaintv_2.4.0.201810161802 [227], contextID=default]}
2018-10-21 12:40:35.330 [INFO ] [tv.internal.EntertainTVNotifyServlet] - EntertainTV servlet started at '/entertaintv/notify'
2018-10-21 12:40:35.351 [DEBUG] [org.openhab.binding.entertaintv     ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.upnp.UpnpDiscoveryParticipant}={service.id=383, service.bundleid=227, service.scope=bundle, component.name=org.openhab.binding.entertaintv.internal.discovery.EntertainTVDiscoveryParticipant, component.id=245} - org.openhab.binding.entertaintv
2018-10-21 12:40:35.357 [DEBUG] [very.EntertainTVDiscoveryParticipant] - EntertainTV: HandlerFactory bound to EntertainTVDiscoveryParticipant
2018-10-21 12:40:35.362 [TRACE] [very.EntertainTVDiscoveryParticipant] - EntertainTV: Activate UpnpDiscovery, configurarion (servicesentertaintv.cfg):
2018-10-21 12:40:35.370 [TRACE] [very.EntertainTVDiscoveryParticipant] - EntertainTV: Device discovered: Huawei Technologies Co.,Ltd - MR401B
2018-10-21 12:40:35.375 [DEBUG] [very.EntertainTVDiscoveryParticipant] - EntertainTV: Discovered an EntertainTV Receiver 'Telekom Wohnzimmer', UDN: 'c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01', Model MR401B.R01A3
2018-10-21 12:40:35.379 [DEBUG] [very.EntertainTVDiscoveryParticipant] - EntertainTV: Create Thing for device 'Telekom Wohnzimmer' with UDN 'c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01, Model'MR401B'
2018-10-21 12:40:35.383 [DEBUG] [v.internal.EntertainTVHandlerFactory] - EntertainTV: Discovery results saved for UDN 'C1026E4C-E7FD-5393-A2F3-AC6FBB5C6A01'
2018-10-21 12:40:35.408 [DEBUG] [org.openhab.binding.entertaintv     ] - BundleEvent STARTED - org.openhab.binding.entertaintv
2018-10-21 12:40:35.606 [DEBUG] [v.internal.EntertainTVHandlerFactory] - EntertainTV.Factory: Create thing type 'org.eclipse.smarthome.core.thing.internal.ThingImpl@209680fe'
2018-10-21 12:40:35.611 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 1
2018-10-21 12:40:35.614 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 2
2018-10-21 12:40:35.617 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 3
2018-10-21 12:40:35.720 [TRACE] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: initLocalNet(): local OH port = 8080
2018-10-21 12:40:35.725 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: interface 'eth0': ip='192.168.9.20'

==> /var/log/openhab2/events.log <==
2018-10-21 12:40:35.726 [hingStatusInfoChangedEvent] - 'entertaintv:receiver:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

==> /var/log/openhab2/openhab.log <==
2018-10-21 12:40:35.729 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: site-local address: '192.168.9.20'
2018-10-21 12:40:35.733 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTV:  skipping interface 'lo'
2018-10-21 12:40:35.738 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: Local IP address='192.168.9.20', Local MAC address = 'B8:27:EB:AD:1D:22'
2018-10-21 12:40:35.744 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: Check device 192.168.9.139:8081
2018-10-21 12:40:35.749 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: Wake-on-LAN packet sent to 192.168.9.139 / AC:6F:BB:5C:6A:01
2018-10-21 12:40:35.760 [TRACE] [ertaintv.internal.EntertainTVNetwork] - HttpGet: GET http://192.168.9.139:8081/xml/xctc.xml - Response='<?xml version="1.0"?><root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><device><UDN>uuid:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01</UDN><friendlyName>Telekom Wohnzimmer</friendlyName><deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType><manufacturer>Huawei Technologies Co.,Ltd</manufacturer><modelName>MR401B</modelName><modelNumber>R01A3</modelNumber><productVersionNumber>&quot; 391 &quot;</productVersionNumber><productType>stb</productType><serialNumber></serialNumber><X_wakeOnLan>0</X_wakeOnLan><dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC><dlna:X_DLNACAP xmlns:dlna="urn:schemas-dlna-org:device-1-0"></dlna:X_DLNACAP><serviceList><service><serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType><serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId><controlURL>/upnp/service/ConnectionManager/Control</controlURL><eventSubURL>/upnp/service/ConnectionManager/Event</eventSubURL><SCPDURL>/upnp/service/des/cms.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType><serviceId>urn:upnp-org:serviceId:AVTransport</serviceId><controlURL>/upnp/service/AVTransport/Control</controlURL><eventSubURL>/upnp/service/AVTransport/Event</eventSubURL><SCPDURL>/upnp/service/des/avt.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType><serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId><controlURL>/upnp/service/RenderingControl/Control</controlURL><eventSubURL>/upnp/service/RenderingControl/Event</eventSubURL><SCPDURL>/upnp/service/des/rcs.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:X-CTC_RemotePairing:1</serviceType><serviceId>urn:upnp-org:serviceId:X-CTC_RemotePairing</serviceId><controlURL>/upnp/service/X-CTC_RemotePairing/Control</controlURL><eventSubURL>/upnp/service/X-CTC_RemotePairing/Event</eventSubURL><SCPDURL>/upnp/service/des/X-CTC_RemotePairing.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:X-CTC_RemoteControl:1</serviceType><serviceId>urn:upnp-org:serviceId:X-CTC_RemoteControl</serviceId><controlURL>/upnp/service/X-CTC_RemoteControl/Control</controlURL><eventSubURL>/upnp/service/X-CTC_RemoteControl/Event</eventSubURL><SCPDURL>/upnp/service/des/X-CTC_RemoteControl.xml</SCPDURL></service></serviceList></device></root>'
2018-10-21 12:40:35.763 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: Wake-on-LAN is disabled
2018-10-21 12:40:35.766 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: Online status verified for device 'Telekom Wohnzimmer' (192.168.9.139:8081, UDN=C1026E4C-E7FD-5393-A2F3-AC6FBB5C6A01)
2018-10-21 12:40:35.771 [DEBUG] [v.internal.EntertainTVHandlerFactory] - EntertainTV: Notification for device registered: udn='C1026E4C-E7FD-5393-A2F3-AC6FBB5C6A01', deviceID='26A5F0FD7A02C93E07CFC428C499D182'
2018-10-21 12:40:35.775 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: Subscribe Paring Channel (192.168.9.139:8081)
2018-10-21 12:40:35.779 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - EntertainTVNetwork: Sending data to '192.168.9.139:8081': 'SUBSCRIBE /upnp/service/X-CTC_RemotePairing/Event HTTP/1.1
HOST: 192.168.9.139:8081
CALLBACK: <http://192.168.9.20:8080/entertaintv/notify>
NT: upnp:event
TIMEOUT: Second-300
CONNECTION: close

'
2018-10-21 12:40:36.284 [DEBUG] [ertaintv.internal.EntertainTVNetwork] - receiver response='HTTP/1.1 200 OK
DATE: Sun, 21 Oct 2018 10:40:35 UTC
Content-Length:0
SID: uuid:8170ed53-0d50-507b-b1f6-f6cde0702c14
TIMEOUT: Second-300
Connection: close

'
2018-10-21 12:40:36.288 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: SUBSCRIBE returned SID '8170ed53-0d50-507b-b1f6-f6cde0702c14'
2018-10-21 12:40:36.292 [DEBUG] [.internal.handler.EntertainTVHandler] - EntertainTV: Thing successfully initialized, pairing...
2018-10-21 12:40:36.295 [INFO ] [ertaintv.internal.EntertainTVControl] - EntertainTVControl: Send Pairing Request (firendlyName='PAD:openHAB', deviceID='26A5F0FD7A02C93E07CFC428C499D182', userID='9315XXXXXXXXXXXXXXXXXXXXXXXXF99')
2018-10-21 12:40:36.299 [TRACE] [ertaintv.internal.EntertainTVNetwork] - EntertainTVNetwork: POST 'http://192.168.9.139:8081/upnp/service/X-CTC_RemotePairing/Control' - SoapAction='<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X-pairingRequest xmlns:u="urn:schemas-upnp-org:service:X-CTC_RemotePairing:1"><pairingDeviceID>26A5F0FD7A02C93E07CFC428C499D182</pairingDeviceID><friendlyName>PAD:openHAB</friendlyName><userID>9315XXXXXXXXXXXXXXXXXXXXXxF99</userID></u:X-pairingRequest></s:Body></s:Envelope>', Data = '"urn:schemas-upnp-org:service:X-CTC_RemotePairing:1#X-pairingRequest"'
2018-10-21 12:40:36.334 [TRACE] [ertaintv.internal.EntertainTVNetwork] - EntertainTVNetwork: POST 'http://192.168.9.139:8081/upnp/service/X-CTC_RemotePairing/Control' - Response = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X-pairingRequestResponse xmlns:u="urn:schemas-upnp-org:service:X-CTC_RemotePairing:1">
<result>0</result>
</u:X-pairingRequestResponse>
</s:Body> </s:Envelope>'
2018-10-21 12:40:36.337 [DEBUG] [ertaintv.internal.EntertainTVControl] - EntertainTV: Pairing initiated successful.
2018-10-21 12:40:36.336 [TRACE] [tv.internal.EntertainTVNotifyServlet] - EntertainTVServlet: Reqeust from 192.168.9.139:58859/entertaintv/notify (192.168.9.139, HTTP/1.1)
2018-10-21 12:40:36.341 [DEBUG] [tv.internal.EntertainTVNotifyServlet] - EntertainTV.Notify: Pairing code '8EAD18BC' received for deviceID '26A5F0FD7A02C93E07CFC428C499D182'

==> /var/log/openhab2/events.log <==
2018-10-21 12:40:36.346 [hingStatusInfoChangedEvent] - 'entertaintv:receiver:c1026e4c-e7fd-5393-a2f3-AC6FBB5C6A01' changed from INITIALIZING to ONLINE

==> /var/log/openhab2/openhab.log <==
2018-10-21 12:40:36.350 [DEBUG] [.internal.handler.EntertainTVHandler] - OK, errorMessage=
2018-10-21 12:40:36.354 [DEBUG] [v.internal.EntertainTVHandlerFactory] - EntertainTV.Factory: Create thing type 'org.eclipse.smarthome.core.thing.internal.ThingImpl@cb6c5fec'
2018-10-21 12:40:36.359 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 1
2018-10-21 12:40:36.362 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 2
2018-10-21 12:40:36.365 [DEBUG] [.internal.handler.EntertainTVHandler] - DEBUG 3
2018-10-21 12:40:36.351 [DEBUG] [ertaintv.internal.EntertainTVControl] - verificationCode: Input='8EAD18BC26A5F0FD7A02C93E07CFC428C499D1829315609461EBA31EB238EAEA26860F99', code='F5600B299780840622C3B2C7FE83DA03'
2018-10-21 12:40:36.371 [INFO ] [.internal.handler.EntertainTVHandler] - EntertainTV: Power ON
2018-10-21 12:40:36.375 [INFO ] [.internal.handler.EntertainTVHandler] - EntertainTV: Pairing complete for 'Telekom Wohnzimmer' (UDN 'C1026E4C-E7FD-5393-A2F3-AC6FBB5C6A01', terminalID '26A5F0FD7A02C93E07CFC428C499D182', pairingCode='8EAD18BC', verificationCode='F5600B299780840622C3B2C7FE83DA03', userID='9315XXXXXXXXXXXXXXXXXXXXXXXXXXXXF99')
2018-10-21 12:40:36.389 [TRACE] [ertaintv.internal.EntertainTVNetwork] - EntertainTV: initLocalNet(): local OH port = 8080
0 Likes

(Markus Michels) #158

I suppose the stb requires a re-pairing ever 30min. I’m already working on a periodic connection check, event re-subscripton and re-pairing.

0 Likes

(Sebastian Kastner) #159

Hey Guys,
Unfortunately, I always get an error. My user and password are correct. At least I can log in with the user and password in the EntertainApp and website.
What could that be?

Thank you

0 Likes

(Tobias) #160

Hello Sebastian,

i don’t know why the script don’t work at your installation.

You have an Fritzbox and can use Wireshark?

0 Likes

(Markus Michels) #161

the VOLUP/VOLDOWN probolem is fixed. working on the next build to include health check and recovery

0 Likes