Skip to content

Announce HTTPS port if active (Discovery and UPnP) - #8397

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:master
Nov 13, 2025
Merged

manup merged 1 commit into
dresden-elektronik:masterfrom
manup:master

Conversation

@manup

@manup manup commented Nov 12, 2025

Copy link
Copy Markdown
Member

The description.xml got and extra element deconz:info and within there if HTTPS is active a sub element httpsPort.

Example description.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://192.168.178.4:8090/</URLBase>
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    <friendlyName>Skull (192.168.178.4)</friendlyName>
    <manufacturer>Royal Philips Electronics</manufacturer>
    <manufacturerURL>http://www.dresden-elektronik.de</manufacturerURL>
    <modelDescription>Philips hue compatible Personal Wireless Lighting</modelDescription>
    <modelName>Philips hue bridge 2015</modelName>
    <modelNumber>BSB002</modelNumber>
    <modelURL>http://www.dresden-elektronik.de</modelURL>
    <serialNumber>00212E00C5FB</serialNumber>
    <UDN>uuid:4238efb5-566d-481b-a0db-a9e972c9f4c3</UDN>
    <presentationURL>index.html</presentationURL>
    <iconList>
      <icon>
        <mimetype>image/png</mimetype>
        <height>48</height>
        <width>48</width>
        <depth>24</depth>
        <url>hue_logo_0.png</url>
      </icon>
    </iconList>
    <deconz:info>
      <httpsPort>8443</httpsPort>
    </deconz:info>
  </device>
</root>

The UPnP UDP broadcast got the extra field HTTPS.phoscon.de: <https-port>.

Example NOTIFY message:

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=100
LOCATION: http://192.168.178.4:8090/description.xml
SERVER: Linux/3.14.0 UPnP/1.0 IpBridge/1.26.0
GWID.phoscon.de: 00212EFFFF00C5FB
hue-bridgeid: 00212EFFFF00C5FB
NTS: ssdp:alive
HTTPS.phoscon.de: 8443
NT: upnp:rootdevice
USN: uuid:4238efb5-566d-481b-a0db-a9e972c9f4c3::upnp:rootdevice

The HTTPS port gets also announced to the discovery server. Note this currently not visible as processing needs to be added on server side (soon).

Note this is a ad hoc solution, MDNS is better suited to expose extra services like HTTPS and will be added later on.

The description.xml got and extra element `deconz:info` and within there if HTTPS is active a sub element `httpsPort`.

The UPnP UDP broadcast got the extra field "HTTPS.phoscon.de: <https-port>".

The HTTPS port gets also announced to the discovery server. Note currently not visible as processing needs to be added server side there soon.
@manup manup added this to the v2.32.1-beta milestone Nov 12, 2025
@manup
manup merged commit f324ab4 into dresden-elektronik:master Nov 13, 2025
@wvuyk

wvuyk commented Nov 26, 2025

Copy link
Copy Markdown

The description.xml is throwing errors with the new version.
image

@ebaauw ebaauw mentioned this pull request Feb 17, 2026
2 tasks done
@mc7547

mc7547 commented Mar 25, 2026

Copy link
Copy Markdown

Good morning,
I have a Conbee II Gateway version 2.31.2 on Linux Mint, and everything was fine. Since I upgraded to 2.32.5, the websocket no longer responds on port 433, but on port 80. Is this correct? And most importantly, is it permanent? It took me a while to figure out that the port had changed, and if it changes again in the future, I'll be in trouble.
Thanks.
Roberto Mandelli

@mc7547

mc7547 commented Mar 25, 2026

Copy link
Copy Markdown

Update.
In the new version's JSON, the "websocketport_wss" entry has appeared, assigned port 433, and the "websocketport" entry has been assigned port 80, while in the previous version, the "websocketport" entry was correctly assigned port 433.
Thanks
Roberto Mandelli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants