HomeKit Controller - how to discover new entitines been added to Aqara hub.

Auto Discovery is where it scans your network and finds devices and adds them to HA.

discovery by mdns

discovery by SSdP

discovery by mdns

https://iotespresso.com/a-beginners-guide-to-mdns-and-dns-sd/

 

Zeroconf

SSDP

HomeKit

MQTT

DHCP

USB

https://zhuanlan.zhihu.com/p/586183356

 

About discovery for Home Assistant developer  Creating  first integration

https://developers.home-assistant.io/docs/creating_integration_manifest

 

About SSdP 

Simple Service Discovery Protocol/1.0     Operating without an Arbiter

  <draft-cai-ssdp-v1-03.txt>

https://datatracker.ietf.org/doc/html/draft-cai-ssdp-v1-03

 

 

 

Xiaomi Miio devices auto discovered

Xiaomi Miio can be auto-discovered by Home Assistant.

https://www.home-assistant.io/integrations/xiaomi_miio

 

[Discovery]This miio devices will execute two types of discovery

discovery by handshake  - miio.miioprotocol:Discovery
discovery by mDNS. - miio.discovery:Discovering devices with mDNS

https://www.msly.cn/boards/topic/2151/1/page/1#2319

54321/udp is used by miIO protocol

 

# miiocli discover

root@raspberrypi:/home/homeassistant20221103/.homeassistant# miiocli discover
INFO:miio.miioprotocol:Sending discovery to <broadcast> with timeout of 5s..
INFO:miio.miioprotocol:  IP 192.168.2.101 (ID: 3dc69984) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.110 (ID: 21c66e62) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.100 (ID: 1c598a45) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.108 (ID: 18a6ce8d) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.111 (ID: 1c5c4959) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.113 (ID: 22e4be42) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.109 (ID: 21283c86) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:  IP 192.168.2.112 (ID: 1c69b97e) - token: b'ffffffffffffffffffffffffffffffff'
INFO:miio.miioprotocol:Discovery done
INFO:miio.discovery:Discovering devices with mDNS for 5 seconds...

 

miIO-discovery获取token与控制  port 54321

https://www.msly.cn/boards/topic/2186#10260

 

https://www.msly.cn/boards/topic/2186

 

Yeelight device discover

Yeelight-Integrations-Ceil26 0x1c5c4959

https://www.msly.cn/boards/topic/2151/1/page/2#17684

 

 

HomeKit Controller Wi-Fi  device   discover

HomeKit Controller Wi-Fi  device support

HomeKit IP accessories for these device types may work with some caveats:

If the device is Wi-Fi based and has no physical controls or screen then you may need an Apple HomeKit device like an iPhone or iPad to get the accessory onto your Wi-Fi network.

For example, for a Koogeek LS1 you must add the accessory to HomeKit on your iOS device, then remove it from the iOS device. This leaves the LS1 in an unpaired state but still on your Wi-Fi. Home Assistant can then find it and pair with it.

You need to know the HomeKit PIN. There is no way to recover this if you do not have it. In this case, you will need to contact the manufacturer to see what options you have.

detail

https://blog.matterxiaomi.com/blog/force-Home-Assistant-rediscover-part2/

 

 

 

Mqtt Discovery

http://localhost:4999/boards/topic/2186/discoveryhome-assistant-new-devices-discovered-series#2449

https://mpolinowski.github.io/docs/Automation_and_Robotics/Home_Automation/2022-07-10-home-assistant-mqtt-autodiscovery-part-i/2022-07-10/

 

Matter Server mDNS Discovery

https://blog.matterxiaomi.com/blog/force-home-assistant-rediscover-part5/

 

 

Docker container Discovery

http://localhost:4999/boards/topic/20881/discovery-not-possible-because-the-docker-container#28424

http://localhost:4999/boards/topic/15671/docker-cli/page/2#28426

Comments


Comments are closed