Skip to content

Commit

Permalink
Merge pull request #121 from howdypierce/homeassistant
Browse files Browse the repository at this point in the history
Add support for fauxmo devices to be discovered by HomeAssistant
  • Loading branch information
n8henrie authored Jan 13, 2024
2 parents a53cec9 + 2f3023e commit 158a967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fauxmo/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def handle_setup(self) -> None:
"<manufacturer>Belkin International Inc.</manufacturer>"
"<modelName>Emulated Socket</modelName>"
"<modelNumber>3.1415</modelNumber>"
f"<serialNumber>{self.serial}</serialNumber>"
f"<UDN>uuid:Socket-1_0-{self.serial}</UDN>"
"<serviceList>"
"<service>"
Expand Down Expand Up @@ -362,6 +363,7 @@ def datagram_received(

discover_patterns = [
"ST: urn:Belkin:device:**",
"ST: urn:Belkin:service:basicevent:1",
"ST: upnp:rootdevice",
"ST: ssdp:all",
]
Expand Down

0 comments on commit 158a967

Please sign in to comment.