From ac7dd4bb984b113f4df0be3b8c4c16b47717ac43 Mon Sep 17 00:00:00 2001 From: cjkas Date: Sat, 31 Oct 2026 13:27:45 +0100 Subject: [PATCH] chore: name cjkas as the manufacturer in MQTT discovery and SSDP The MQTT discovery device's manufacturer and SSDP's manufacturer, model URL and manufacturer URL now name this fork, so a click from a UPnP browser lands on this repo. The SSDP device type stays: the Home Assistant integration discovers devices by it. Co-Authored-By: Claude Opus 5.5 --- src/ESPNetwork.cpp | 6 +++--- src/MqttDisco.cpp | 2 +- test/test_mqttdisco/test_mqttdisco.cpp | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ESPNetwork.cpp b/src/ESPNetwork.cpp index 43eb53f..c179f2c 100644 --- a/src/ESPNetwork.cpp +++ b/src/ESPNetwork.cpp @@ -294,9 +294,9 @@ void ESPNetwork::setConnected(conn_types_t connType) { snprintf(sModel, sizeof(sModel), "ESP32-%s", settings.chipModel); SSDP.setModelNumber(0, sModel); } - SSDP.setModelURL(0, "https://github.com/rstrouse/ESPSomfy-RTS"); - SSDP.setManufacturer(0, "rstrouse"); - SSDP.setManufacturerURL(0, "https://github.com/rstrouse"); + SSDP.setModelURL(0, "https://github.com/cjkas/ESPSomfy-RTS"); + SSDP.setManufacturer(0, "cjkas"); + SSDP.setManufacturerURL(0, "https://github.com/cjkas"); SSDP.setURL(0, "/"); SSDP.setActive(0, true); resetTaskWdt(); diff --git a/src/MqttDisco.cpp b/src/MqttDisco.cpp index 8243030..f9740ee 100644 --- a/src/MqttDisco.cpp +++ b/src/MqttDisco.cpp @@ -35,7 +35,7 @@ void shadeDisco(const shade_disco_t &shade, JsonObject obj, char *topic, size_t JsonObject dobj = obj["device"].to(); dobj["hw_version"] = shade.fwVersion; dobj["name"] = shade.hostname; - dobj["mf"] = "rstrouse"; + dobj["mf"] = "cjkas"; JsonArray arrids = dobj["identifiers"].to(); snprintf(topic, len, "mqtt_espsomfyrts_%s", shade.serverId); arrids.add(topic); diff --git a/test/test_mqttdisco/test_mqttdisco.cpp b/test/test_mqttdisco/test_mqttdisco.cpp index 095dcc3..9f532cd 100644 --- a/test/test_mqttdisco/test_mqttdisco.cpp +++ b/test/test_mqttdisco/test_mqttdisco.cpp @@ -48,6 +48,7 @@ static void test_the_device_is_the_esp() { TEST_ASSERT_EQUAL_STRING("ESPSomfyRTS", device["name"]); TEST_ASSERT_EQUAL_STRING("v4.0.0", device["hw_version"]); TEST_ASSERT_EQUAL_STRING("ESPSomfy-RTS MQTT", device["model"]); + TEST_ASSERT_EQUAL_STRING("cjkas", device["mf"]); TEST_ASSERT_EQUAL_STRING("somfy/status", d.doc["availability_topic"]); TEST_ASSERT_EQUAL_STRING("online", d.doc["payload_available"]); TEST_ASSERT_EQUAL_STRING("offline", d.doc["payload_not_available"]);