From 7f0166cb4e1c06085aa86493e734dcf2d999d6e2 Mon Sep 17 00:00:00 2001 From: cayossarian <23534755+cayossarian@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:28:41 -0700 Subject: [PATCH] fix: use flat property names in the flat REST schema The REST schema served at /api/v2/homie/schema declared firmware-version and cloud-connection, which are the v1.0 names. This file describes the flat schema, where the migration guide records those as software-version and vendor-cloud; the rename happens at v1.0, not before. The MQTT wire profile already published the flat names, so the two halves of the simulator disagreed: consumers that build field metadata from the REST types concluded the fields did not exist while their values were arriving on MQTT. Also corrects pv and evse, which had the same leak. --- src/span_panel_simulator/data/homie_schema.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/span_panel_simulator/data/homie_schema.json b/src/span_panel_simulator/data/homie_schema.json index f55a928..c3b1442 100644 --- a/src/span_panel_simulator/data/homie_schema.json +++ b/src/span_panel_simulator/data/homie_schema.json @@ -16,7 +16,7 @@ "name": "Hardware version", "datatype": "string" }, - "firmware-version": { + "software-version": { "name": "Firmware version", "datatype": "string" }, @@ -67,7 +67,7 @@ "name": "SSID to which Wi-Fi network interface is connected", "datatype": "string" }, - "cloud-connection": { + "vendor-cloud": { "name": "Device connected to vendor cloud?", "datatype": "enum", "format": "UNKNOWN,UNCONNECTED,CONNECTED" @@ -211,7 +211,7 @@ "name": "Serial number", "datatype": "string" }, - "firmware-version": { + "software-version": { "name": "Firmware version", "datatype": "string" }, @@ -262,7 +262,7 @@ "name": "Serial number", "datatype": "string" }, - "firmware-version": { + "software-version": { "name": "Firmware version", "datatype": "string" }, @@ -298,7 +298,7 @@ "name": "Serial number", "datatype": "string" }, - "firmware-version": { + "software-version": { "name": "Firmware version", "datatype": "string" },