FHEM - Anwendungen > Multimedia

Neuentw. Modulpaket zu UPnP: Controller, Device, DLNA(Renderer-Ersatz)

<< < (3/24) > >>

Newbie:
Meinst du eventuell das hier:

beim physischen Device:


--- Code: ---<root>
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<friendlyName>Speaker Kueche #2</friendlyName>
<modelDescription>Digital Media Player</modelDescription>
<UDN>uuid:f9e8fd48-3e69-4b28-b388-d92cbcef7d80</UDN>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/icons/teufel-48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>32</width>
<height>32</height>
<depth>24</depth>
<url>/icons/teufel-32.png</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/rendercontrol.xml</SCPDURL>
<controlURL>/RenderingControl/ctrl</controlURL>
<eventSubURL>/RenderingControl/evt</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>/connectmanager.xml</SCPDURL>
<controlURL>/ConnectionManager/ctrl</controlURL>
<eventSubURL>/ConnectionManager/evt</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>/avtransport.xml</SCPDURL>
<controlURL>/AVTransport/ctrl</controlURL>
<eventSubURL>/AVTransport/evt</eventSubURL>
</service>
<service>
<serviceType>
urn:schemas-raumfeld-com:service:RaumfeldGenerator:1
</serviceType>
<serviceId>urn:raumfeld-com:serviceId:RaumfeldGenerator</serviceId>
<SCPDURL>/feldgenerator.xml</SCPDURL>
<controlURL>/RaumfeldGenerator/ctrl</controlURL>
<eventSubURL>/RaumfeldGenerator/evt</eventSubURL>
</service>
</serviceList>
<manufacturer>Lautsprecher Teufel GmbH</manufacturer>
<manufacturerURL>https://www.teufel.de/</manufacturerURL>
<modelName>Teufel One M</modelName>
<modelNumber>1</modelNumber>
<serialNumber>x:y:z</serialNumber>
<raumfeld:protocolVersion>16351</raumfeld:protocolVersion>
<raumfeld:hardwareType>21</raumfeld:hardwareType>
</device>
</root>
--- Ende Code ---

beim virtuellen Device:


--- Code: ---<root>
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<X_DLNACAP>playcontainer-0-1</X_DLNACAP>
<friendlyName>Kueche</friendlyName>
<modelDescription>Virtual Media Player</modelDescription>
<modelName>Teufel One M</modelName>
<UDN>uuid:f97f36f9-abcf-4987-9727-c15eda14def4</UDN>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/icons/teufel-48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>32</width>
<height>32</height>
<depth>24</depth>
<url>/icons/teufel-32.png</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/RenderingService.xml</SCPDURL>
<controlURL>/RenderingService/Control</controlURL>
<eventSubURL>/RenderingService/Event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>TransportService.xml</SCPDURL>
<controlURL>/TransportService/Control</controlURL>
<eventSubURL>/TransportService/Event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>ConnectionManager.xml</SCPDURL>
<controlURL>/ConnectionManager/Control</controlURL>
<eventSubURL>/ConnectionManager/Event</eventSubURL>
</service>
</serviceList>
<manufacturer>Lautsprecher Teufel GmbH</manufacturer>
<manufacturerURL>https://www.teufel.de/</manufacturerURL>
<modelNumber>1</modelNumber>
<serialNumber>x:y:z</serialNumber>
<raumfeld:protocolVersion>16351</raumfeld:protocolVersion>
<raumfeld:hardwareType>21</raumfeld:hardwareType>
</device>
</root>
--- Ende Code ---

KölnSolar:

--- Zitat ---Kopf kratz, was meinst du damit? Kann ich die irgendwie abfragen?
--- Ende Zitat ---

--- Zitat ---Die gefundenen devices werden als readings angelegt. Dabei wird jedes device durch den readingname IP_Port repräsentiert. Attribute des devices werden 1:1 übernommen u. als readings mit entsprechender Bezeichnung angelegt. Die Services eines devices werden mit devicereadingname-zs-service angelegt.
--- Ende Zitat ---
Aber die xml-Datei beantwortet es mir auch  :D
Der
--- Code: ---urn:raumfeld-com:serviceId:RaumfeldRaumfeldGenerator:1
--- Ende Code ---
ist herstellerspezifisch. Guck mal, was die entsprechende SCPDURL ausspuckt, ob es interessante actions oder events gibt.

Newbie:
Hallo Markus,

die
--- Code: ---<SCPDURL>/feldgenerator.xml</SCPDURL>
--- Ende Code ---
spuckt das aus:


--- Code: ---<scpd>
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<serviceStateTable>
<stateVariable sendEvents="yes">
<name>TransportControlButtons</name>
<dataType>string</dataType>
</stateVariable>
</serviceStateTable>
</scpd>
--- Ende Code ---

vg Jens

Newbie:
Anbei mal eine Übersicht was der UPNP-Controller an Readings auflistet:


--- Code: ---    xx.x.x.xx_51626-UDN uuid:f97f36f9-abcf-4987-9727-c15eda14def4
    xx.x.x.xx_51626-friendlyName Kueche,Schlafzimmer
    xx.x.x.xx_51626-location http://xx.x.x.xx:51626/f97f36f9-abcf-4987-9727-c15eda14def4.xml
    xx.x.x.xx_51626-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_51626-modelDescription Virtual Media Player
    xx.x.x.xx_51626-modelName Teufel One M
    xx.x.x.xx_51626-modelNumber 1
    xx.x.x.xx_51626-presence online
    xx.x.x.xx_51626-zs-AVTransport SID: uuid:44b110d0-e7a3-4a0a-8197-e36001eae8c0 timeout: 300 property: LastChange
    xx.x.x.xx_51626-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    xx.x.x.xx_51626-zs-RenderingControl SID: uuid:97a1845d-f708-4e77-be52-2a4efe60ac31 timeout: 300 property: LastChange
   
    xx.x.x.xx_52207-UDN uuid:f9e8fd48-3e69-4b28-b388-d92cbcef7d80
    xx.x.x.xx_52207-friendlyName Speaker Kueche #2
    xx.x.x.xx_52207-location http://xx.x.x.xx:52207/f9e8fd48-3e69-4b28-b388-d92cbcef7d80.xml
    xx.x.x.xx_52207-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_52207-modelDescription Digital Media Player
    xx.x.x.xx_52207-modelName Teufel One M
    xx.x.x.xx_52207-modelNumber 1
    xx.x.x.xx_52207-presence online
    xx.x.x.xx_52207-zs-AVTransport SID: uuid:55ba7b01-16cf-45b2-aaf6-3794a9567eb7 timeout: 300 property: BufferFilled
    xx.x.x.xx_52207-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    xx.x.x.xx_52207-zs-RaumfeldGenerator urn:schemas-raumfeld-com:service:RaumfeldGenerator:1
    xx.x.x.xx_52207-zs-RenderingControl SID: uuid:5c0de44c-7b14-48e2-bdc7-fa8a586a9d0d timeout: 300 property: LastChange
   
    xx.x.x.xx_52778-UDN uuid:eb57db8a-b475-4e3f-879b-1f8d314e1401
    xx.x.x.xx_52778-friendlyName Raumfeld MediaServer
    xx.x.x.xx_52778-location http://xx.x.x.xx:52778/eb57db8a-b475-4e3f-879b-1f8d314e1401.xml
    xx.x.x.xx_52778-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_52778-modelName Teufel One M
    xx.x.x.xx_52778-modelNumber 1
    xx.x.x.xx_52778-presence online
    xx.x.x.xx_52778-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    xx.x.x.xx_52778-zs-ContentDirectory urn:schemas-upnp-org:service:ContentDirectory:1
   
    xx.x.x.xx_54841-UDN uuid:5470b1a7-c6c7-48a0-bc86-8a48cac5dbdc
    xx.x.x.xx_54841-friendlyName Raumfeld ConfigDevice
    xx.x.x.xx_54841-location http://xx.x.x.xx:54841/5470b1a7-c6c7-48a0-bc86-8a48cac5dbdc.xml
    xx.x.x.xx_54841-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_54841-modelName Teufel One M
    xx.x.x.xx_54841-modelNumber 1
    xx.x.x.xx_54841-presence online
    xx.x.x.xx_54841-zs-ConfigService urn:schemas-raumfeld-com:service:ConfigService:1
   
    xx.x.x.xx_55354-UDN uuid:85c93a10-d169-42c2-8e93-ecdd0724707e
    xx.x.x.xx_55354-friendlyName Schlafzimmer
    xx.x.x.xx_55354-location http://xx.x.x.xx:55354/85c93a10-d169-42c2-8e93-ecdd0724707e.xml
    xx.x.x.xx_55354-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_55354-modelDescription Virtual Media Player
    xx.x.x.xx_55354-modelName Teufel One M
    xx.x.x.xx_55354-modelNumber 1
    xx.x.x.xx_55354-presence offline
    xx.x.x.xx_55354-zs-AVTransport subscribed but offline
    xx.x.x.xx_55354-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    xx.x.x.xx_55354-zs-RenderingControl subscribed but offline
   
    xx.x.x.xx_58281-UDN uuid:063f7a0f-b90e-4754-824a-9eb5d62c163d
    xx.x.x.xx_58281-friendlyName Teufel Raumfeld Device
    xx.x.x.xx_58281-location http://xx.x.x.xx:58281/063f7a0f-b90e-4754-824a-9eb5d62c163d.xml
    xx.x.x.xx_58281-manufacturer Lautsprecher Teufel GmbH
    xx.x.x.xx_58281-modelName Teufel One M
    xx.x.x.xx_58281-modelNumber 1
    xx.x.x.xx_58281-presence online
    xx.x.x.xx_58281-zs-SetupService urn:schemas-raumfeld-com:service:SetupService:1
   
    aa.a.a.aa_37134-UDN uuid:faa2efcd-f7b3-48f6-a075-82ef5800789d
    aa.a.a.aa_37134-friendlyName UGW4
    aa.a.a.aa_37134-location http://aa.a.a.aa:37134/rootDesc.xml
    aa.a.a.aa_37134-manufacturer Ubiquiti, Inc.
    aa.a.a.aa_37134-modelDescription Debian router
    aa.a.a.aa_37134-modelName Debian router
    aa.a.a.aa_37134-modelNumber e221
    aa.a.a.aa_37134-presence online
    aa.a.a.aa_37134-zs-L3Forwarding1 urn:schemas-upnp-org:service:Layer3Forwarding:1
    aa.a.a.aa_37134-zz uuid:faa2efcd-f7b3-48f6-a075-82ef5800789e
    aa.a.a.aa_37134-zz-UDN uuid:faa2efcd-f7b3-48f6-a075-82ef5800789e
    aa.a.a.aa_37134-zz-friendlyName WANDevice
    aa.a.a.aa_37134-zz-location http://aa.a.a.aa:37134/rootDesc.xml
    aa.a.a.aa_37134-zz-manufacturer MiniUPnP
    aa.a.a.aa_37134-zz-modelDescription WAN Device
    aa.a.a.aa_37134-zz-modelName WAN Device
    aa.a.a.aa_37134-zz-modelNumber 20210129
    aa.a.a.aa_37134-zz-presence online
    aa.a.a.aa_37134-zz-zs-WANCommonIFC1 urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
    aa.a.a.aa_37134-zz-zz uuid:faa2efcd-f7b3-48f6-a075-82ef5800789f
    aa.a.a.aa_37134-zz-zz-UDN uuid:faa2efcd-f7b3-48f6-a075-82ef5800789f
    aa.a.a.aa_37134-zz-zz-friendlyName WANConnectionDevice
    aa.a.a.aa_37134-zz-zz-location http://aa.a.a.aa:37134/rootDesc.xml
    aa.a.a.aa_37134-zz-zz-manufacturer MiniUPnP
    aa.a.a.aa_37134-zz-zz-modelDescription MiniUPnP daemon
    aa.a.a.aa_37134-zz-zz-modelName MiniUPnPd
    aa.a.a.aa_37134-zz-zz-modelNumber 20210129
    aa.a.a.aa_37134-zz-zz-presence online
    aa.a.a.aa_37134-zz-zz-zs-WANIPConn1 urn:schemas-upnp-org:service:WANIPConnection:1
   
    yy.y.y.yy_49692-UDN uuid:70d5b346-9b22-4e75-965b-3cedf880e531
    yy.y.y.yy_49692-friendlyName Teufel Raumfeld Device
    yy.y.y.yy_49692-location http://yy.y.y.yy:49692/70d5b346-9b22-4e75-965b-3cedf880e531.xml
    yy.y.y.yy_49692-manufacturer Lautsprecher Teufel GmbH
    yy.y.y.yy_49692-modelName Teufel One S
    yy.y.y.yy_49692-modelNumber 1
    yy.y.y.yy_49692-presence online
    yy.y.y.yy_49692-zs-SetupService urn:schemas-raumfeld-com:service:SetupService:1
   
    yy.y.y.yy_59448-UDN uuid:df6f32d1-1569-465b-8329-a14b6c788fa5
    yy.y.y.yy_59448-friendlyName Speaker Schlafzimmer
    yy.y.y.yy_59448-location http://yy.y.y.yy:59448/df6f32d1-1569-465b-8329-a14b6c788fa5.xml
    yy.y.y.yy_59448-manufacturer Lautsprecher Teufel GmbH
    yy.y.y.yy_59448-modelDescription Digital Media Player
    yy.y.y.yy_59448-modelName Teufel One S
    yy.y.y.yy_59448-modelNumber 1
    yy.y.y.yy_59448-presence online
    yy.y.y.yy_59448-zs-AVTransport SID: uuid:8629a29c-89c0-42c0-9e0a-8584df170c70 timeout: 300 property: BufferFilled
    yy.y.y.yy_59448-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    yy.y.y.yy_59448-zs-RaumfeldGenerator urn:schemas-raumfeld-com:service:RaumfeldGenerator:1
    yy.y.y.yy_59448-zs-RenderingControl SID: uuid:9c372e41-99fe-4569-887f-572ac12cddeb timeout: 300 property: LastChange
   
    zz.z.z.zz_54066-UDN uuid:0fee29da-3ea9-49bb-9902-a736a18ffd15
    zz.z.z.zz_54066-friendlyName Teufel Raumfeld Device
    zz.z.z.zz_54066-location http://zz.z.z.zz:54066/0fee29da-3ea9-49bb-9902-a736a18ffd15.xml
    zz.z.z.zz_54066-manufacturer Lautsprecher Teufel GmbH
    zz.z.z.zz_54066-modelName Teufel One S
    zz.z.z.zz_54066-modelNumber 1
    zz.z.z.zz_54066-presence online
    zz.z.z.zz_54066-zs-SetupService urn:schemas-raumfeld-com:service:SetupService:1
   
    zz.z.z.zz_55693-UDN uuid:fedf2043-eac0-49e1-82ed-6ac78b34f79d
    zz.z.z.zz_55693-friendlyName Speaker Schlafzimmer  #3
    zz.z.z.zz_55693-location http://zz.z.z.zz:55693/fedf2043-eac0-49e1-82ed-6ac78b34f79d.xml
    zz.z.z.zz_55693-manufacturer Lautsprecher Teufel GmbH
    zz.z.z.zz_55693-modelDescription Digital Media Player
    zz.z.z.zz_55693-modelName Teufel One S
    zz.z.z.zz_55693-modelNumber 1
    zz.z.z.zz_55693-presence online
    zz.z.z.zz_55693-zs-AVTransport SID: uuid:7ebd3594-b649-4549-8d4d-977eeed1d02e timeout: 300 property: LastChange
    zz.z.z.zz_55693-zs-ConnectionManager urn:schemas-upnp-org:service:ConnectionManager:1
    zz.z.z.zz_55693-zs-RaumfeldGenerator urn:schemas-raumfeld-com:service:RaumfeldGenerator:1
    zz.z.z.zz_55693-zs-RenderingControl SID: uuid:1fa6884b-08fa-4699-90d4-c621ef9a25c0 timeout: 300 property: LastChange


--- Ende Code ---

KölnSolar:
Hi Jens, erst mal danke fürs Testen u. die Mühe beim Info liefern.

--- Zitat ---spuckt das aus:
--- Ende Zitat ---
Ist arg dünn. Keine actions, 1 event. Ich spekuliere bei einem Tastendruck. :-\ Nicht so wirklich spannend für ein Modul.

Bist Du Teufelhändler ?  :o ;D Ich bin wohl Hinterweltler, da mir TVs, ein dot u. ne alte B&O mit Lautsprechern genügen.  ;D
hier http://xx.x.x.xx:58281/063f7a0f-b90e-4754-824a-9eb5d62c163d.xml könnte es was interessantes für ein Modul geben.

Wechseln die Ports bei den Teufeln ? Und hast Du evtl. dadurch doppelte Einträge ?(Das ist auch noch sone Baustelle. Selbst die IPs könnten sich ja ändern)

Grüße Markus

Edit: Der timeout von 300 ist interessant kurz. Müsste eigentlich beim subscription renewal zu Fehlern(412 - precondition failed) im Log führen(verbose=4).

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln