Domi04151309 / HomeApp

HomeApp is a small and easy to use smart home app with a simple framework.
https://f-droid.org/packages/io.github.domi04151309.home/
GNU General Public License v3.0
106 stars 24 forks source link

Add mDNS discovery for SimpleHome devices #39

Closed cweiske closed 2 years ago

cweiske commented 2 years ago

With that in place, devices can use avahi-daemon to get their SimpleHome API services automatically discovered by HomeApp.

Example avahi daemon service file:

<?xml version="1.0"?>
<service-group>
  <name>Lamps for HomeApp</name>
  <service protocol="ipv4">
    <type>_simplehome._tcp</type>
    <port>80</port>
    <txt-record>url=http://simpleapi-homeapp.example.org/</txt-record>
  </service>
</service-group>

The TXT record with "url" property is optional. If not specified, the IP address of the server will be used by HomeApp.

Specifying the url lets you announce multiple services on the same host.

Screenshot_20211202-213314_Home