From f026768725eeda8f812e0882f49a615590f83870 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Apr 2021 11:04:18 -1000 Subject: [PATCH] Add dhcp discovery to tuya (#49312) Newer tuya devices use their own OUI instead of espressif --- homeassistant/components/tuya/manifest.json | 10 ++++++++- homeassistant/generated/dhcp.py | 24 +++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/tuya/manifest.json b/homeassistant/components/tuya/manifest.json index 52b616a0e83..5dae8e6a101 100644 --- a/homeassistant/components/tuya/manifest.json +++ b/homeassistant/components/tuya/manifest.json @@ -5,5 +5,13 @@ "requirements": ["tuyaha==0.0.10"], "codeowners": ["@ollo69"], "config_flow": true, - "iot_class": "cloud_polling" + "iot_class": "cloud_polling", + "dhcp": [ + {"macaddress": "508A06*"}, + {"macaddress": "7CF666*"}, + {"macaddress": "10D561*"}, + {"macaddress": "D4A651*"}, + {"macaddress": "68572D*"}, + {"macaddress": "1869D8*"} + ] } diff --git a/homeassistant/generated/dhcp.py b/homeassistant/generated/dhcp.py index 4d4e3688c1b..fca0ce9fd69 100644 --- a/homeassistant/generated/dhcp.py +++ b/homeassistant/generated/dhcp.py @@ -195,6 +195,30 @@ DHCP = [ "hostname": "eneco-*", "macaddress": "74C63B*" }, + { + "domain": "tuya", + "macaddress": "508A06*" + }, + { + "domain": "tuya", + "macaddress": "7CF666*" + }, + { + "domain": "tuya", + "macaddress": "10D561*" + }, + { + "domain": "tuya", + "macaddress": "D4A651*" + }, + { + "domain": "tuya", + "macaddress": "68572D*" + }, + { + "domain": "tuya", + "macaddress": "1869D8*" + }, { "domain": "verisure", "macaddress": "0023C1*"