jason0x43 / hubitatmaker

A Python library for interfacing with a Hubitat hub via its Maker API
MIT License
9 stars 6 forks source link

Load hub metadata from UPNP endpoint #9

Open jason0x43 opened 3 years ago

jason0x43 commented 3 years ago

http://<hub_address>/api/hubitat.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://<hub_address>:8080/</URLBase>
    <device>
        <deviceType>urn:Hubitat:device:Hub:1</deviceType>
        <friendlyName>Hubitat Hub [Home] (<hub_address>)</friendlyName>
        <manufacturer>Hubitat Inc.</manufacturer>
        <manufacturerURL>http://hubitat.com</manufacturerURL>
        <modelDescription>Hubitat Elevation Hub</modelDescription>
        <modelName>Rev C-7</modelName>
        <modelNumber>2.2.4.158</modelNumber>
        <modelURL>http://hubitat.com</modelURL>
        <serialNumber>...</serialNumber>
        <UDN>...</UDN>
        <presentationURL>index.html</presentationURL>
        <iconList>
            <icon>
                <mimetype>image/png</mimetype>
                <height>50</height>
                <width>50</width>
                <depth>8</depth>
                <url>/ui2/images/hub.png</url>
            </icon>
        </iconList>
    </device>
</root>