diff --git a/tdmgr/schemas/status.py b/tdmgr/schemas/status.py index 741dbe6..1f4d565 100644 --- a/tdmgr/schemas/status.py +++ b/tdmgr/schemas/status.py @@ -192,6 +192,7 @@ class StateSTSBaseSchema(StatusBaseModel): Berry: Optional[BerrySchema] = None Channel: Optional[List[int]] = None Color: Optional[str] = None + CT: Optional[int] = None Fade: Optional[str] = None HSBColor: Optional[str] = None Heap: Optional[int] = None diff --git a/tests/status_parsing/__init__.py b/tests/status_parsing/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS.json new file mode 100644 index 0000000..b87b3a6 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS.json @@ -0,0 +1,37 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "PorchTasmota", + "FriendlyName": [ + "PorchTasmota", + "Tasmota2", + "Tasmota3" + ], + "InfoRetain": 0, + "LedMask": "FFFF", + "LedState": 1, + "Module": 0, + "Power": 2, + "PowerOnState": 3, + "PowerRetain": 1, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "StateRetain": 0, + "StatusRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "porch" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS1.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS1.json new file mode 100644 index 0000000..180a305 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2021-10-02T20:04:51", + "Baudrate": 115200, + "BootCount": 728, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/tasmota.bin", + "RestartReason": "Software/System restart", + "SaveAddress": "F9000", + "SaveCount": 12664, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-07-24T15:06:41", + "Uptime": "51T01:54:34" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS10.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS10.json new file mode 100644 index 0000000..6af2d59 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS10.json @@ -0,0 +1,5 @@ +{ + "StatusSNS": { + "Time": "2024-09-13T19:01:15" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS11.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS11.json new file mode 100644 index 0000000..07b3349 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS11.json @@ -0,0 +1,26 @@ +{ + "StatusSTS": { + "Heap": 23, + "LoadAvg": 19, + "MqttCount": 3, + "POWER1": "OFF", + "POWER2": "ON", + "POWER3": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-13T19:01:15", + "Uptime": "51T01:54:34", + "UptimeSec": 4413274, + "Wifi": { + "AP": 1, + "BSSId": "28:D1:27:DB:35:26", + "Channel": 1, + "Downtime": "0T00:00:08", + "LinkCount": 2, + "Mode": "11n", + "RSSI": 52, + "SSId": "WifiNet1", + "Signal": -74 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS2.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS2.json new file mode 100644 index 0000000..9b4a7dd --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2022-10-12T15:20:06", + "CR": "442/699", + "Core": "2_7_4_9", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "12.1.1.5(tasmota)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS3.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS3.json new file mode 100644 index 0000000..ec6632f --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS3.json @@ -0,0 +1,24 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "WifiNet1", + "WifiNet1" + ], + "SerialLog": 2, + "SetOption": [ + "00008029", + "2805C80001000600003C5A0A002800000000", + "000000A1", + "00006000", + "00004000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS4.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS4.json new file mode 100644 index 0000000..6562c9b --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS4.json @@ -0,0 +1,26 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45,62", + "Features": [ + "00000809", + "8F9AC787", + "04368001", + "000000CF", + "010013C0", + "C000F981", + "00004004", + "00001000", + "54000020", + "00000000" + ], + "FlashChipId": "1540C8", + "FlashFrequency": 40, + "FlashMode": "DOUT", + "FlashSize": 2048, + "Free": 376, + "Heap": 21, + "ProgramFlashSize": 1024, + "ProgramSize": 626, + "Sensors": "1,2,3,4,5,6" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS5.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS5.json new file mode 100644 index 0000000..61a4310 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS5.json @@ -0,0 +1,15 @@ +{ + "StatusNET": { + "DNSServer1": "192.168.1.142", + "DNSServer2": "0.0.0.0", + "Gateway": "192.168.1.142", + "HTTP_API": 1, + "Hostname": "porch-1076", + "IPAddress": "192.168.1.187", + "Mac": "2C:F4:32:3F:44:34", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 2, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS6.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS6.json new file mode 100644 index 0000000..7407145 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS6.json @@ -0,0 +1,13 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_3F4434", + "MqttClientMask": "DVES_%06X", + "MqttCount": 3, + "MqttHost": "192.168.1.230", + "MqttPort": 1883, + "MqttUser": "DVES_USER", + "SOCKET_TIMEOUT": 4 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.1.1.5/STATUS7.json b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS7.json new file mode 100644 index 0000000..8646f41 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.1.1.5/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T02:00:00", + "Local": "2024-09-13T19:01:15", + "StartDST": "2024-03-24T02:00:00", + "Sunrise": "05:33", + "Sunset": "19:18", + "Timezone": 99, + "UTC": "2024-09-13T17:01:15" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS.json b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS.json index 4280368..f42e462 100644 --- a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS.json +++ b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS.json @@ -1,19 +1,23 @@ { "Status": { - "Module": 6, + "ButtonRetain": 0, + "ButtonTopic": "0", "DeviceName": "Tasmota", "FriendlyName": [ "Tasmota" ], - "Topic": "tasmota_1A704F", - "ButtonTopic": "0", + "InfoRetain": 0, + "LedMask": "FFFF", + "LedState": 1, + "Module": 6, "Power": 1, "PowerOnState": 3, - "LedState": 1, - "LedMask": "FFFF", + "PowerRetain": 0, "SaveData": 1, "SaveState": 1, - "SwitchTopic": "0", + "SensorRetain": 0, + "StateRetain": 0, + "StatusRetain": 0, "SwitchMode": [ 0, 0, @@ -24,12 +28,8 @@ 0, 0 ], - "ButtonRetain": 0, "SwitchRetain": 0, - "SensorRetain": 0, - "PowerRetain": 0, - "InfoRetain": 0, - "StateRetain": 0, - "StatusRetain": 0 + "SwitchTopic": "0", + "Topic": "tasmota_1A704F" } } \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS1.json b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS1.json index 062e9ee..c55f514 100644 --- a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS1.json +++ b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS1.json @@ -1,17 +1,17 @@ { "StatusPRM": { + "BCResetTime": "2022-11-05T18:47:52", "Baudrate": 115200, - "SerialConfig": "8N1", + "BootCount": 12, + "CfgHolder": 4617, "GroupTopic": "tasmotas", "OtaUrl": "http://ota.tasmota.com/tasmota/release/tasmota.bin.gz", "RestartReason": "Power On", - "Uptime": "94T04:19:39", - "StartupUTC": "2023-10-09T15:15:19", - "Sleep": 50, - "CfgHolder": 4617, - "BootCount": 12, - "BCResetTime": "2022-11-05T18:47:52", + "SaveAddress": "FB000", "SaveCount": 896, - "SaveAddress": "FB000" + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2023-10-09T15:15:19", + "Uptime": "94T04:19:39" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS2.json b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS2.json index 20c20d8..6da3069 100644 --- a/tests/status_parsing/jsonfiles/12.2.0.2/STATUS2.json +++ b/tests/status_parsing/jsonfiles/12.2.0.2/STATUS2.json @@ -1,12 +1,12 @@ { "StatusFWR": { - "Version": "12.2.0.2(tasmota)", - "BuildDateTime": "2022-11-03T16:54:39", "Boot": 31, + "BuildDateTime": "2022-11-03T16:54:39", + "CR": "369/699", "Core": "2_7_4_9", - "SDK": "2.2.2-dev(38a443e)", "CpuFrequency": 80, "Hardware": "ESP8266EX", - "CR": "369/699" + "SDK": "2.2.2-dev(38a443e)", + "Version": "12.2.0.2(tasmota)" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS.json new file mode 100644 index 0000000..675fd28 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS.json @@ -0,0 +1,55 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "TasmotaOutlet5", + "FriendlyName": [ + "TasmotaOutlet5" + ], + "InfoRetain": 0, + "LedMask": "FFFF", + "LedState": 1, + "Module": 0, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "StateRetain": 0, + "StatusRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "tasmota_outlet5" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS1.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS1.json new file mode 100644 index 0000000..5d4ea10 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2023-12-28T19:08:44", + "Baudrate": 4800, + "BootCount": 13, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release/tasmota-4M.bin.gz", + "RestartReason": "Power On", + "SaveAddress": "FB000", + "SaveCount": 559, + "SerialConfig": "8E1", + "Sleep": 50, + "StartupUTC": "2024-05-20T08:44:34", + "Uptime": "116T07:42:22" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS10.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS10.json new file mode 100644 index 0000000..3214fcf --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS10.json @@ -0,0 +1,21 @@ +{ + "StatusSNS": { + "ANALOG": { + "Temperature": 25.3 + }, + "ENERGY": { + "ApparentPower": 0, + "Current": 0.0, + "Factor": 0.0, + "Power": 0, + "ReactivePower": 0, + "Today": 0.0, + "Total": 141.051, + "TotalStartTime": "2023-12-28T19:08:44", + "Voltage": 0, + "Yesterday": 0.0 + }, + "TempUnit": "C", + "Time": "2024-09-13T17:26:56" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS11.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS11.json new file mode 100644 index 0000000..8d20da9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS11.json @@ -0,0 +1,24 @@ +{ + "StatusSTS": { + "Heap": 18, + "LoadAvg": 19, + "MqttCount": 8, + "POWER": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-13T17:26:56", + "Uptime": "116T07:42:22", + "UptimeSec": 10050142, + "Wifi": { + "AP": 1, + "BSSId": "5C:E9:31:18:49:D4", + "Channel": 7, + "Downtime": "73T07:13:32", + "LinkCount": 5, + "Mode": "11n", + "RSSI": 52, + "SSId": "WifiNet", + "Signal": -74 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS2.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS2.json new file mode 100644 index 0000000..80dc52b --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2023-05-12T14:52:14", + "CR": "414/699", + "Core": "2_7_4_9", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "12.4.0(tasmota)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS3.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS3.json new file mode 100644 index 0000000..0bc49e0 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS3.json @@ -0,0 +1,24 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "WifiNet", + "" + ], + "SerialLog": 0, + "SetOption": [ + "00008009", + "2805C80001000680003C5A0A192800000000", + "00000080", + "00006000", + "00004000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS4.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS4.json new file mode 100644 index 0000000..9991a30 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS4.json @@ -0,0 +1,26 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,38,45,50,62,126", + "Features": [ + "00000809", + "8F9AC78F", + "04368001", + "000000CF", + "010013C0", + "C000F981", + "00004084", + "00201000", + "54000020", + "00000080" + ], + "FlashChipId": "164068", + "FlashFrequency": 40, + "FlashMode": "DOUT", + "FlashSize": 4096, + "Free": 1340, + "Heap": 18, + "ProgramFlashSize": 4096, + "ProgramSize": 705, + "Sensors": "1,2,3,4,5,6" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS5.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS5.json new file mode 100644 index 0000000..7bd62ff --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS5.json @@ -0,0 +1,15 @@ +{ + "StatusNET": { + "DNSServer1": "192.168.1.142", + "DNSServer2": "0.0.0.0", + "Gateway": "192.168.1.142", + "HTTP_API": 1, + "Hostname": "tasmota-outlet5-4287", + "IPAddress": "192.168.1.213", + "Mac": "C8:C9:A3:14:D0:BF", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS6.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS6.json new file mode 100644 index 0000000..c214403 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS6.json @@ -0,0 +1,13 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_14D0BF", + "MqttClientMask": "DVES_%06X", + "MqttCount": 8, + "MqttHost": "192.168.1.230", + "MqttPort": 1883, + "MqttUser": "DVES_USER", + "SOCKET_TIMEOUT": 4 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS7.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS7.json new file mode 100644 index 0000000..64ef954 --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-13T17:26:56", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:24", + "Sunset": "19:06", + "Timezone": "+01:00", + "UTC": "2024-09-13T16:26:56" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/12.4.0/STATUS9.json b/tests/status_parsing/jsonfiles/12.4.0/STATUS9.json new file mode 100644 index 0000000..8f6b5dd --- /dev/null +++ b/tests/status_parsing/jsonfiles/12.4.0/STATUS9.json @@ -0,0 +1,15 @@ +{ + "StatusPTH": { + "CurrentHigh": 0, + "CurrentLow": 0, + "PowerDelta": [ + 0, + 0, + 0 + ], + "PowerHigh": 0, + "PowerLow": 0, + "VoltageHigh": 0, + "VoltageLow": 0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS.json new file mode 100644 index 0000000..fc5619f --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS.json @@ -0,0 +1,55 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "Wyj\u015bcie \u015bwiat\u0142o", + "FriendlyName": [ + "Tasmota" + ], + "InfoRetain": 0, + "LedMask": "FFFF", + "LedState": 1, + "Module": 0, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "StateRetain": 0, + "StatusRetain": 0, + "SwitchMode": [ + 5, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "wyjscie_swiatlo" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS1.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS1.json new file mode 100644 index 0000000..11320ca --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2023-11-16T20:53:46", + "Baudrate": 115200, + "BootCount": 13, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release/tasmota.bin.gz", + "RestartReason": "External System", + "SaveAddress": "F5000", + "SaveCount": 3191, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-03-15T11:40:13", + "Uptime": "184T01:12:45" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS10.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS10.json new file mode 100644 index 0000000..6be1b61 --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS10.json @@ -0,0 +1,6 @@ +{ + "StatusSNS": { + "Switch1": "ON", + "Time": "2024-09-15T13:52:58" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS11.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS11.json new file mode 100644 index 0000000..9f802b6 --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS11.json @@ -0,0 +1,24 @@ +{ + "StatusSTS": { + "Heap": 22, + "LoadAvg": 19, + "MqttCount": 23, + "POWER": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-15T13:52:58", + "Uptime": "184T01:12:45", + "UptimeSec": 15901965, + "Wifi": { + "AP": 1, + "BSSId": "E6:8D:8C:AE:84:A4", + "Channel": 6, + "Downtime": "0T00:22:16", + "LinkCount": 7, + "Mode": "11n", + "RSSI": 92, + "SSId": "NznCoDk3McKgMzgy", + "Signal": -54 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS2.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS2.json new file mode 100644 index 0000000..e9ea2fc --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2023-11-16T09:28:14", + "CR": "382/699", + "Core": "2_7_4_9", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "13.2.0.2(tasmota)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS3.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS3.json new file mode 100644 index 0000000..1e5f5b7 --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS3.json @@ -0,0 +1,24 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "NznCoDk3McKgMzgy", + "" + ], + "SerialLog": 2, + "SetOption": [ + "00008009", + "0F05C80001000600003C5A0A192800000000", + "02000080", + "00006000", + "00004000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS4.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS4.json new file mode 100644 index 0000000..7adc785 --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS4.json @@ -0,0 +1,28 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45,62,68", + "Features": [ + "0809", + "8F9AC787", + "04368001", + "000000CF", + "010013C0", + "C000F981", + "00004004", + "00001000", + "54000020", + "00000080", + "00000000" + ], + "FlashChipId": "1540C8", + "FlashFrequency": 40, + "FlashMode": "DOUT", + "FlashSize": 2048, + "Free": 368, + "Heap": 22, + "I2CDriver": "7", + "ProgramFlashSize": 1024, + "ProgramSize": 635, + "Sensors": "1,2,3,4,5,6" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS5.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS5.json new file mode 100644 index 0000000..4ce0fd9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS5.json @@ -0,0 +1,15 @@ +{ + "StatusNET": { + "DNSServer1": "10.2.30.254", + "DNSServer2": "0.0.0.0", + "Gateway": "10.2.30.254", + "HTTP_API": 1, + "Hostname": "wyjscie-swiatlo-2927", + "IPAddress": "10.2.30.60", + "Mac": "EC:FA:BC:4B:8B:6F", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS6.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS6.json new file mode 100644 index 0000000..c3a987c --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS6.json @@ -0,0 +1,13 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_4B8B6F", + "MqttClientMask": "DVES_%06X", + "MqttCount": 23, + "MqttHost": "mqtt.iot", + "MqttPort": 1883, + "MqttUser": "DVES_USER", + "SOCKET_TIMEOUT": 4 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/13.2.0.2/STATUS7.json b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS7.json new file mode 100644 index 0000000..c83841e --- /dev/null +++ b/tests/status_parsing/jsonfiles/13.2.0.2/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-15T13:52:58", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:27", + "Sunset": "19:02", + "Timezone": "+01:00", + "UTC": "2024-09-15T12:52:58" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.1.json b/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.1.json index 3a82b2a..bb765d1 100644 --- a/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.1.json +++ b/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.1.json @@ -1,27 +1,27 @@ { "StatusNET": { - "Hostname": "tasmota-68FF94-8084", - "IPAddress": "0.0.0.0", - "Gateway": "192.168.7.1", - "Subnetmask": "255.255.255.0", "DNSServer1": "192.168.7.1", "DNSServer2": "0.0.0.0", - "Mac": "34:98:7A:68:FF:94", - "IP6Global": "", - "IP6Local": "", "Ethernet": { - "Hostname": "tasmota-68FF94-8084eth", - "IPAddress": "192.168.7.187", - "Gateway": "192.168.7.1", - "Subnetmask": "255.255.255.0", "DNSServer1": "192.168.7.1", "DNSServer2": "0.0.0.0", - "Mac": "34:98:7A:68:FF:97", + "Gateway": "192.168.7.1", + "Hostname": "tasmota-68FF94-8084eth", "IP6Global": "", - "IP6Local": "fe80::3698:7aff:fe68:ff97%en1" + "IP6Local": "fe80::3698:7aff:fe68:ff97%en1", + "IPAddress": "192.168.7.187", + "Mac": "34:98:7A:68:FF:97", + "Subnetmask": "255.255.255.0" }, - "Webserver": 2, + "Gateway": "192.168.7.1", "HTTP_API": 1, + "Hostname": "tasmota-68FF94-8084", + "IP6Global": "", + "IP6Local": "", + "IPAddress": "0.0.0.0", + "Mac": "34:98:7A:68:FF:94", + "Subnetmask": "255.255.255.0", + "Webserver": 2, "WifiConfig": 0, "WifiPower": 17.0 } diff --git a/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.json b/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.json index 73c6a4e..fd6b062 100644 --- a/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.json +++ b/tests/status_parsing/jsonfiles/14.2.0.4/STATUS5.json @@ -1,27 +1,27 @@ { "StatusNET": { - "Hostname": "xxxxxxxx", - "IPAddress": "192.168.0.1", - "Gateway": "192.168.0.99", - "Subnetmask": "255.255.254.0", "DNSServer1": "192.168.0.99", "DNSServer2": "0.0.0.0", - "Mac": "xx:xx:xx:xx:xx:xx", - "IP6Global": "xxxx:::::::xxxx", - "IP6Local": "fe80::xxxx:xxxx:xxxx:xxxx%st3", "Ethernet": { - "Hostname": "xxxxxxxx-eth", - "IPAddress": "192.168.0.2", - "Gateway": "192.168.0.99", - "Subnetmask": "255.255.254.0", "DNSServer1": "192.168.0.99", "DNSServer2": "0.0.0.0", - "Mac": "xx:xx:xx:xx:xx:xx", + "Gateway": "192.168.0.99", + "Hostname": "xxxxxxxx-eth", "IP6Global": "xxxx:::::::xxxx", - "IP6Local": "fe80::xxxx:xxxx:xxxx:xxxx%en1" + "IP6Local": "fe80::xxxx:xxxx:xxxx:xxxx%en1", + "IPAddress": "192.168.0.2", + "Mac": "xx:xx:xx:xx:xx:xx", + "Subnetmask": "255.255.254.0" }, - "Webserver": 2, + "Gateway": "192.168.0.99", "HTTP_API": 1, + "Hostname": "xxxxxxxx", + "IP6Global": "xxxx:::::::xxxx", + "IP6Local": "fe80::xxxx:xxxx:xxxx:xxxx%st3", + "IPAddress": "192.168.0.1", + "Mac": "xx:xx:xx:xx:xx:xx", + "Subnetmask": "255.255.254.0", + "Webserver": 2, "WifiConfig": 4, "WifiPower": 0.0 } diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATE.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATE.json index 5daa964..407b977 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATE.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATE.json @@ -1,13 +1,13 @@ { + "POWER1": "OFF", "Time": "2024-01-12T06:29:01", "Uptime": "2T05:25:48", "Vcc": 3.258, - "POWER1": "OFF", "Wifi": { "AP": 1, - "SSId": "xxx", "BSSId": "F0:9F:C2:03:CD:73", "Channel": 6, - "RSSI": 100 + "RSSI": 100, + "SSId": "xxx" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS.json index 826b85a..00fcd6a 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS.json @@ -1,17 +1,18 @@ { "Status": { - "Module": 1, + "ButtonRetain": 0, + "ButtonTopic": "0", "FriendlyName": [ "Sonoff_1" ], - "Topic": "sonoff_1", - "ButtonTopic": "0", + "LedState": 1, + "Module": 1, "Power": 1, "PowerOnState": 3, - "LedState": 1, + "PowerRetain": 0, "SaveData": 1, "SaveState": 1, - "SwitchTopic": "0", + "SensorRetain": 0, "SwitchMode": [ 0, 0, @@ -22,9 +23,8 @@ 0, 0 ], - "ButtonRetain": 0, "SwitchRetain": 0, - "SensorRetain": 0, - "PowerRetain": 0 + "SwitchTopic": "0", + "Topic": "sonoff_1" } } \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS1.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS1.json index 4d865f2..8c9e798 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS1.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS1.json @@ -1,14 +1,14 @@ { "StatusPRM": { "Baudrate": 115200, + "BootCount": 420, "GroupTopic": "sonoffs", "OtaUrl": "http://sonoff.maddox.co.uk/tasmota/sonoff.ino.bin", "RestartReason": "Hardware Watchdog", - "Uptime": "1T19:36:45", - "StartupUTC": "2024-01-10T00:03:13", - "Sleep": 0, - "BootCount": 420, + "SaveAddress": "F6000", "SaveCount": 10693, - "SaveAddress": "F6000" + "Sleep": 0, + "StartupUTC": "2024-01-10T00:03:13", + "Uptime": "1T19:36:45" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS10.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS10.json index 3731aee..63246d0 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS10.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS10.json @@ -1,10 +1,10 @@ { "StatusSNS": { - "Time": "2024-01-11T20:39:58", "AM2301": { - "Temperature": 23.9, - "Humidity": 24.4 + "Humidity": 24.4, + "Temperature": 23.9 }, - "TempUnit": "C" + "TempUnit": "C", + "Time": "2024-01-11T20:39:58" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS11.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS11.json index a530494..a873dd6 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS11.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS11.json @@ -1,15 +1,15 @@ { "StatusSTS": { + "POWER1": "ON", "Time": "2024-01-11T20:39:58", "Uptime": "1T19:36:45", "Vcc": 3.231, - "POWER1": "ON", "Wifi": { "AP": 1, - "SSId": "xxx", "BSSId": "F0:9F:C2:03:CD:73", "Channel": 6, - "RSSI": 100 + "RSSI": 100, + "SSId": "xxx" } } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS2.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS2.json index 96a18cc..9c51b7e 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS2.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS2.json @@ -1,9 +1,9 @@ { "StatusFWR": { - "Version": "6.3.0.12(sonoff)", - "BuildDateTime": "2018-11-23T14:07:50", "Boot": 4, + "BuildDateTime": "2018-11-23T14:07:50", "Core": "2_3_0", - "SDK": "1.5.3(aec24ac9)" + "SDK": "1.5.3(aec24ac9)", + "Version": "6.3.0.12(sonoff)" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS3.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS3.json index d14ac9d..4c52cf3 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS3.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS3.json @@ -1,19 +1,19 @@ { "StatusLOG": { - "SerialLog": 2, - "WebLog": 2, - "SysLog": 0, "LogHost": "192.168.0.130", "LogPort": 514, "SSId": [ "xxx", "xxx-2" ], - "TelePeriod": 300, + "SerialLog": 2, "SetOption": [ "54000009", "55818000", "00000001" - ] + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS4.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS4.json index 62b4b48..009d6e3 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS4.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS4.json @@ -1,18 +1,18 @@ { "StatusMEM": { - "ProgramSize": 498, - "Free": 504, - "Heap": 18, - "ProgramFlashSize": 1024, - "FlashSize": 1024, - "FlashChipId": "1440E0", - "FlashMode": 3, "Features": [ "00000809", "0FDAE794", "240383A0", "23B617CE", "00003BC0" - ] + ], + "FlashChipId": "1440E0", + "FlashMode": 3, + "FlashSize": 1024, + "Free": 504, + "Heap": 18, + "ProgramFlashSize": 1024, + "ProgramSize": 498 } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS5.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS5.json index 46b6ff7..f38013d 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS5.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS5.json @@ -1,12 +1,12 @@ { "StatusNET": { + "DNSServer": "192.168.1.130", + "Gateway": "192.168.1.1", "Hostname": "sonoff_1-3937", "IPAddress": "192.168.1.200", - "Gateway": "192.168.1.1", - "Subnetmask": "255.255.255.0", - "DNSServer": "192.168.1.130", "Mac": "5C:CF:7F:E7:4F:61", + "Subnetmask": "255.255.255.0", "Webserver": 2, "WifiConfig": 3 } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS6.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS6.json index 57f4930..9433d71 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS6.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS6.json @@ -1,12 +1,12 @@ { "StatusMQT": { + "KEEPALIVE": 15, + "MAX_PACKET_SIZE": 1000, + "MqttClient": "DVES_E74F61", + "MqttClientMask": "DVES_%06X", "MqttHost": "192.168.1.130", "MqttPort": 1883, - "MqttClientMask": "DVES_%06X", - "MqttClient": "DVES_E74F61", - "MqttUser": "DVES_USER", "MqttType": 1, - "MAX_PACKET_SIZE": 1000, - "KEEPALIVE": 15 + "MqttUser": "DVES_USER" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS7.json b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS7.json index c4d0be8..5b514df 100644 --- a/tests/status_parsing/jsonfiles/6.3.0.12/STATUS7.json +++ b/tests/status_parsing/jsonfiles/6.3.0.12/STATUS7.json @@ -1,11 +1,11 @@ { "StatusTIM": { - "UTC": "Thu Jan 11 19:39:58 2024", + "EndDST": "Sun Oct 27 03:00:00 2024", "Local": "Thu Jan 11 20:39:58 2024", "StartDST": "Sun Mar 31 02:00:00 2024", - "EndDST": "Sun Oct 27 03:00:00 2024", - "Timezone": "+01:00", "Sunrise": "08:41", - "Sunset": "17:14" + "Sunset": "17:14", + "Timezone": "+01:00", + "UTC": "Thu Jan 11 19:39:58 2024" } -} +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/7.0.0.4/STATE.json b/tests/status_parsing/jsonfiles/7.0.0.4/STATE.json index b2fecef..437919c 100644 --- a/tests/status_parsing/jsonfiles/7.0.0.4/STATE.json +++ b/tests/status_parsing/jsonfiles/7.0.0.4/STATE.json @@ -1,19 +1,19 @@ { - "Time": "2024-01-11T11:42:21", - "Uptime": "44T15:13:31", - "UptimeSec": 3856411, "Heap": 26, - "SleepMode": "Dynamic", - "Sleep": 50, "LoadAvg": 19, "MqttCount": 12, + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-01-11T11:42:21", + "Uptime": "44T15:13:31", + "UptimeSec": 3856411, "Wifi": { "AP": 1, - "SSId": "asdqwe", "BSSId": "AA:BB:CC:DD:EE:FF", "Channel": 6, - "RSSI": 66, + "Downtime": "0T02:15:08", "LinkCount": 19, - "Downtime": "0T02:15:08" + "RSSI": 66, + "SSId": "asdqwe" } } \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS.json new file mode 100644 index 0000000..52cc2ec --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS.json @@ -0,0 +1,33 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "", + "FriendlyName": [ + "Ch\u0139\u201aopcy \u0139\u0161wiat\u0139\u201ao", + "Sonoff2", + "Sonoff3" + ], + "LedMask": "0000", + "LedState": 1, + "Module": 0, + "Power": 1, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "SwitchMode": [ + 5, + 5, + 5, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "ds102_chlopcy" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS1.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS1.json new file mode 100644 index 0000000..b1e5fed --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS1.json @@ -0,0 +1,16 @@ +{ + "StatusPRM": { + "Baudrate": 115200, + "BootCount": 1793, + "CfgHolder": 4617, + "GroupTopic": "swiatlo", + "OtaUrl": "http://ota.tasmota.com/tasmota/release-8.5.1/tasmota-lite.bin", + "RestartReason": "Software/System restart", + "SaveAddress": "FB000", + "SaveCount": 16456, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-08-28T23:18:44", + "Uptime": "17T12:56:51" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS10.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS10.json new file mode 100644 index 0000000..cf9bfbf --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS10.json @@ -0,0 +1,8 @@ +{ + "StatusSNS": { + "Switch1": "ON", + "Switch2": "ON", + "Switch3": "ON", + "Time": "2024-09-15T13:15:35" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS11.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS11.json new file mode 100644 index 0000000..ac24549 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS11.json @@ -0,0 +1,25 @@ +{ + "StatusSTS": { + "Heap": 25, + "LoadAvg": 19, + "MqttCount": 2, + "POWER1": "ON", + "POWER2": "OFF", + "POWER3": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-15T13:15:35", + "Uptime": "17T12:56:51", + "UptimeSec": 1515411, + "Wifi": { + "AP": 1, + "BSSId": "0A:55:31:5F:EB:B5", + "Channel": 6, + "Downtime": "0T00:00:09", + "LinkCount": 2, + "RSSI": 72, + "SSId": "NznCoDk3McKgMzgy", + "Signal": -64 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS2.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS2.json new file mode 100644 index 0000000..322c89d --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS2.json @@ -0,0 +1,11 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2020-01-11T17:00:11", + "CR": "351/699", + "Core": "2_6_1", + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "8.1.0.3(e7b061c-tasmota)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS3.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS3.json new file mode 100644 index 0000000..f13fdfc --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS3.json @@ -0,0 +1,22 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "NznCoDk3McKgMzgy", + "" + ], + "SerialLog": 2, + "SetOption": [ + "0000A009", + "0505C8000100060000005AFF000000000000", + "02808001", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 60, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS4.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS4.json new file mode 100644 index 0000000..6f718c8 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS4.json @@ -0,0 +1,21 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,29", + "Features": [ + "00000809", + "8FDAE397", + "043683A0", + "22B617CD", + "01001BC0", + "00007881" + ], + "FlashChipId": "1440C8", + "FlashMode": 3, + "FlashSize": 1024, + "Free": 432, + "Heap": 25, + "ProgramFlashSize": 1024, + "ProgramSize": 568, + "Sensors": "1,2,3,4,5,6,7,8,9,10,14,15,17,18,20,22,26,34" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS5.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS5.json new file mode 100644 index 0000000..a5c4ba8 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS5.json @@ -0,0 +1,13 @@ +{ + "StatusNET": { + "DNSServer": "10.2.30.254", + "Gateway": "10.2.30.254", + "Hostname": "ds102_chlopcy-4858", + "IPAddress": "10.2.30.40", + "Mac": "80:7D:3A:60:92:FA", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 2, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS6.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS6.json new file mode 100644 index 0000000..217a975 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS6.json @@ -0,0 +1,12 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1000, + "MqttClient": "DVES_6092FA", + "MqttClientMask": "DVES_%06X", + "MqttCount": 2, + "MqttHost": "mqtt.iot", + "MqttPort": 1883, + "MqttUser": "DVES_USER" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.1.0.3/STATUS7.json b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS7.json new file mode 100644 index 0000000..7eebe63 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.1.0.3/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "Sun Oct 27 03:00:00 2024", + "Local": "Sun Sep 15 13:15:35 2024", + "StartDST": "Sun Mar 31 02:00:00 2024", + "Sunrise": "06:27", + "Sunset": "19:02", + "Timezone": "+01:00", + "UTC": "Sun Sep 15 12:15:35 2024" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS.1.json new file mode 100644 index 0000000..e4c7e44 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS.1.json @@ -0,0 +1,33 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "Kuchnia \u015awiat\u0142o", + "FriendlyName": [ + "Kuchnia \u015awiat\u0142o", + "Sonoff2" + ], + "LedMask": "FFFF", + "LedState": 0, + "Module": 0, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "SwitchMode": [ + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "", + "Topic": "ds102_kuchnia" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS.2.json new file mode 100644 index 0000000..0aaf5f5 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS.2.json @@ -0,0 +1,32 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "\u0141azienka H801", + "FriendlyName": [ + "\u0141azienka H801" + ], + "LedMask": "FFFF", + "LedState": 1, + "Module": 0, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "h801_lazienka" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS.json new file mode 100644 index 0000000..5172e0d --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS.json @@ -0,0 +1,32 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "Kuchnia Okap", + "FriendlyName": [ + "Kuchnia Okap" + ], + "LedMask": "FFFF", + "LedState": 1, + "Module": 49, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "neo_okap" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS1.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.1.json new file mode 100644 index 0000000..fe2e9f9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2022-12-06T17:06:47", + "Baudrate": 115200, + "BootCount": 40, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release-8.5.1/tasmota-lite.bin", + "RestartReason": "External System", + "SaveAddress": "FA000", + "SaveCount": 31879, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-03-15T11:40:13", + "Uptime": "184T01:08:28" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS1.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.2.json new file mode 100644 index 0000000..40e859b --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.2.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2020-06-05T21:45:02", + "Baudrate": 115200, + "BootCount": 38, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release-8.5.1/tasmota-lite.bin", + "RestartReason": "Hardware Watchdog", + "SaveAddress": "F4000", + "SaveCount": 2998, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-06-25T22:33:36", + "Uptime": "81T14:18:09" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.json new file mode 100644 index 0000000..966193e --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2020-06-18T22:07:13", + "Baudrate": 115200, + "BootCount": 47, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release-8.5.1/tasmota-lite.bin", + "RestartReason": "Software/System restart", + "SaveAddress": "F9000", + "SaveCount": 8010, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-01-03T23:47:29", + "Uptime": "255T12:38:28" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS10.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.1.json new file mode 100644 index 0000000..be07df9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.1.json @@ -0,0 +1,7 @@ +{ + "StatusSNS": { + "Switch1": "ON", + "Switch2": "ON", + "Time": "2024-09-15T13:48:41" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS10.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.2.json new file mode 100644 index 0000000..1b9279a --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.2.json @@ -0,0 +1,5 @@ +{ + "StatusSNS": { + "Time": "2024-09-15T13:51:45" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS10.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.json new file mode 100644 index 0000000..3b74169 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS10.json @@ -0,0 +1,5 @@ +{ + "StatusSNS": { + "Time": "2024-09-15T13:25:57" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS11.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.1.json new file mode 100644 index 0000000..27dfa88 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.1.json @@ -0,0 +1,25 @@ +{ + "StatusSTS": { + "Heap": 27, + "LoadAvg": 19, + "MqttCount": 21, + "POWER1": "OFF", + "POWER2": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-15T13:48:41", + "Uptime": "184T01:08:28", + "UptimeSec": 15901708, + "Vcc": 3.438, + "Wifi": { + "AP": 1, + "BSSId": "E6:8D:8C:AE:84:A4", + "Channel": 6, + "Downtime": "0T00:22:20", + "LinkCount": 5, + "RSSI": 92, + "SSId": "NznCoDk3McKgMzgy", + "Signal": -54 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS11.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.2.json new file mode 100644 index 0000000..4e60df8 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.2.json @@ -0,0 +1,36 @@ +{ + "StatusSTS": { + "Channel": [ + 40, + 100, + 0 + ], + "Color": "66FF00", + "Dimmer": 100, + "Fade": "ON", + "HSBColor": "96,100,100", + "Heap": 27, + "LedTable": "ON", + "LoadAvg": 19, + "MqttCount": 77, + "POWER": "OFF", + "Scheme": 4, + "Sleep": 50, + "SleepMode": "Dynamic", + "Speed": 3, + "Time": "2024-09-15T13:51:45", + "Uptime": "81T14:18:09", + "UptimeSec": 7049889, + "Vcc": 3.538, + "Wifi": { + "AP": 1, + "BSSId": "0A:55:31:5F:EB:B5", + "Channel": 6, + "Downtime": "0T00:12:08", + "LinkCount": 68, + "RSSI": 54, + "SSId": "NznCoDk3McKgMzgy", + "Signal": -73 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS11.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.json new file mode 100644 index 0000000..eb39ba9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS11.json @@ -0,0 +1,24 @@ +{ + "StatusSTS": { + "Heap": 25, + "LoadAvg": 19, + "MqttCount": 920, + "POWER": "OFF", + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-15T13:25:57", + "Uptime": "255T12:38:28", + "UptimeSec": 22077508, + "Vcc": 3.526, + "Wifi": { + "AP": 1, + "BSSId": "E6:8D:8C:AE:84:A4", + "Channel": 6, + "Downtime": "0T10:33:49", + "LinkCount": 911, + "RSSI": 80, + "SSId": "NznCoDk3McKgMzgy", + "Signal": -60 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS2.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.1.json new file mode 100644 index 0000000..d1fa8e4 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.1.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2020-10-02T10:10:35", + "CR": "396/699", + "Core": "2_7_4_1", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "8.5.1(lite)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS2.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.2.json new file mode 100644 index 0000000..529956f --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2020-10-02T10:10:35", + "CR": "425/699", + "Core": "2_7_4_1", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "8.5.1(lite)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.json new file mode 100644 index 0000000..3c2f7fa --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2020-10-02T10:10:35", + "CR": "382/699", + "Core": "2_7_4_1", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "8.5.1(lite)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS3.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.1.json new file mode 100644 index 0000000..a2ce1e7 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.1.json @@ -0,0 +1,23 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "NznCoDk3McKgMzgy", + "" + ], + "SerialLog": 2, + "SetOption": [ + "00008009", + "0505C8000100060000005AFF000000000000", + "02000001", + "00006000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 60, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS3.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.2.json new file mode 100644 index 0000000..cfa7158 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.2.json @@ -0,0 +1,23 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "NznCoDk3McKgMzgy", + "" + ], + "SerialLog": 2, + "SetOption": [ + "00008009", + "2805C8000100060000005A00000000000000", + "02000001", + "00006200", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS3.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.json new file mode 100644 index 0000000..bfd6a42 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS3.json @@ -0,0 +1,23 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "NznCoDk3McKgMzgy", + "" + ], + "SerialLog": 2, + "SetOption": [ + "00008009", + "2805C8000100060000005A00000000000000", + "02008001", + "00006000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS4.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.1.json new file mode 100644 index 0000000..0d561f9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.1.json @@ -0,0 +1,24 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,9,10,16,20,21,37", + "Features": [ + "00000809", + "8F000783", + "04108001", + "00000006", + "010001C0", + "00000000", + "00004004", + "00000000" + ], + "FlashChipId": "1440C8", + "FlashFrequency": 40, + "FlashMode": 3, + "FlashSize": 1024, + "Free": 528, + "Heap": 27, + "ProgramFlashSize": 1024, + "ProgramSize": 473, + "Sensors": "3" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS4.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.2.json new file mode 100644 index 0000000..0d561f9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.2.json @@ -0,0 +1,24 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,9,10,16,20,21,37", + "Features": [ + "00000809", + "8F000783", + "04108001", + "00000006", + "010001C0", + "00000000", + "00004004", + "00000000" + ], + "FlashChipId": "1440C8", + "FlashFrequency": 40, + "FlashMode": 3, + "FlashSize": 1024, + "Free": 528, + "Heap": 27, + "ProgramFlashSize": 1024, + "ProgramSize": 473, + "Sensors": "3" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS4.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.json new file mode 100644 index 0000000..04d8a92 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS4.json @@ -0,0 +1,24 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,9,10,16,20,21,37", + "Features": [ + "00000809", + "8F000783", + "04108001", + "00000006", + "010001C0", + "00000000", + "00004004", + "00000000" + ], + "FlashChipId": "146085", + "FlashFrequency": 40, + "FlashMode": 3, + "FlashSize": 1024, + "Free": 528, + "Heap": 25, + "ProgramFlashSize": 1024, + "ProgramSize": 473, + "Sensors": "3" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS5.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.1.json new file mode 100644 index 0000000..95e4b95 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.1.json @@ -0,0 +1,13 @@ +{ + "StatusNET": { + "DNSServer": "10.2.30.254", + "Gateway": "10.2.30.254", + "Hostname": "ds102_kuchnia-8070", + "IPAddress": "10.2.30.20", + "Mac": "A4:CF:12:A3:5F:86", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS5.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.2.json new file mode 100644 index 0000000..5dc898e --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.2.json @@ -0,0 +1,13 @@ +{ + "StatusNET": { + "DNSServer": "10.2.30.254", + "Gateway": "10.2.30.254", + "Hostname": "h801_lazienka-7004", + "IPAddress": "10.2.30.31", + "Mac": "80:7D:3A:33:BB:5C", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS5.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.json new file mode 100644 index 0000000..0c22100 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS5.json @@ -0,0 +1,13 @@ +{ + "StatusNET": { + "DNSServer": "10.2.30.254", + "Gateway": "10.2.30.254", + "Hostname": "neo_okap-6502", + "IPAddress": "10.2.30.21", + "Mac": "CC:50:E3:C8:F9:66", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS6.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.1.json new file mode 100644 index 0000000..6301bd6 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.1.json @@ -0,0 +1,12 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_A35F86", + "MqttClientMask": "DVES_%06X", + "MqttCount": 21, + "MqttHost": "mqtt.iot", + "MqttPort": 1883, + "MqttUser": "DVES_USER" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS6.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.2.json new file mode 100644 index 0000000..eedf6d9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.2.json @@ -0,0 +1,12 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_33BB5C", + "MqttClientMask": "DVES_%06X", + "MqttCount": 77, + "MqttHost": "mqtt.iot", + "MqttPort": 1883, + "MqttUser": "DVES_USER" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS6.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.json new file mode 100644 index 0000000..a2069f6 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS6.json @@ -0,0 +1,12 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_C8F966", + "MqttClientMask": "DVES_%06X", + "MqttCount": 920, + "MqttHost": "mqtt.iot", + "MqttPort": 1883, + "MqttUser": "DVES_USER" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS7.1.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.1.json new file mode 100644 index 0000000..e22bbe9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.1.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-15T13:48:41", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:27", + "Sunset": "19:02", + "Timezone": "+01:00", + "UTC": "2024-09-15T12:48:41" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS7.2.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.2.json new file mode 100644 index 0000000..d8e66b5 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.2.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-15T13:51:45", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:27", + "Sunset": "19:02", + "Timezone": "+01:00", + "UTC": "2024-09-15T12:51:45" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/8.5.1/STATUS7.json b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.json new file mode 100644 index 0000000..b6ad759 --- /dev/null +++ b/tests/status_parsing/jsonfiles/8.5.1/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-15T13:25:57", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:27", + "Sunset": "19:02", + "Timezone": "+01:00", + "UTC": "2024-09-15T12:25:57" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS.json new file mode 100644 index 0000000..55cdf61 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS.json @@ -0,0 +1,32 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "RedRoomBulb1", + "FriendlyName": [ + "RedRoomBulb1" + ], + "LedMask": "FFFF", + "LedState": 1, + "Module": 0, + "Power": 1, + "PowerOnState": 3, + "PowerRetain": 1, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "redroombulb1" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS1.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS1.json new file mode 100644 index 0000000..3fb7a95 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2022-02-14T17:24:23", + "Baudrate": 115200, + "BootCount": 1121, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://ota.tasmota.com/tasmota/release/tasmota.bin.gz", + "RestartReason": "External System", + "SaveAddress": "F9000", + "SaveCount": 3179, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2024-09-13T17:02:23", + "Uptime": "0T00:00:36" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS10.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS10.json new file mode 100644 index 0000000..11d3e0b --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS10.json @@ -0,0 +1,5 @@ +{ + "StatusSNS": { + "Time": "2024-09-13T18:02:59" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS11.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS11.json new file mode 100644 index 0000000..e0d331e --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS11.json @@ -0,0 +1,39 @@ +{ + "StatusSTS": { + "CT": 500, + "Channel": [ + 0, + 0, + 0, + 0, + 100 + ], + "Color": "00000000FF", + "Dimmer": 100, + "Fade": "ON", + "HSBColor": "0,0,0", + "Heap": 23, + "LedTable": "ON", + "LoadAvg": 94, + "MqttCount": 1, + "POWER": "ON", + "Scheme": 0, + "Sleep": 10, + "SleepMode": "Dynamic", + "Speed": 5, + "Time": "2024-09-13T18:02:59", + "Uptime": "0T00:00:36", + "UptimeSec": 36, + "White": 100, + "Wifi": { + "AP": 1, + "BSSId": "5C:E9:31:18:49:D4", + "Channel": 7, + "Downtime": "0T00:00:03", + "LinkCount": 1, + "RSSI": 66, + "SSId": "WifiNet", + "Signal": -67 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS2.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS2.json new file mode 100644 index 0000000..fbe9648 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2021-03-04T17:56:42", + "CR": "429/699", + "Core": "2_7_4_5", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "9.1.0(tasmota)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS3.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS3.json new file mode 100644 index 0000000..b8c655f --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS3.json @@ -0,0 +1,23 @@ +{ + "StatusLOG": { + "LogHost": "", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "WifiNet", + "" + ], + "SerialLog": 2, + "SetOption": [ + "00208029", + "0405C8000100060000005A00000000000000", + "08000000", + "00006000", + "00000000" + ], + "SysLog": 0, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS4.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS4.json new file mode 100644 index 0000000..9a6cd63 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS4.json @@ -0,0 +1,24 @@ +{ + "StatusMEM": { + "Drivers": "1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37", + "Features": [ + "00000809", + "8FDAE797", + "04368001", + "000000CF", + "010013C0", + "C000F981", + "00004004", + "00000000" + ], + "FlashChipId": "1540A1", + "FlashFrequency": 40, + "FlashMode": 3, + "FlashSize": 2048, + "Free": 400, + "Heap": 23, + "ProgramFlashSize": 1024, + "ProgramSize": 601, + "Sensors": "1,2,3,4,5,6" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS5.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS5.json new file mode 100644 index 0000000..58b69db --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS5.json @@ -0,0 +1,13 @@ +{ + "StatusNET": { + "DNSServer": "192.168.1.142", + "Gateway": "192.168.1.142", + "Hostname": "RedRoomBulb1", + "IPAddress": "192.168.1.154", + "Mac": "4C:EB:D6:02:41:E0", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS6.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS6.json new file mode 100644 index 0000000..1d07624 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS6.json @@ -0,0 +1,12 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "RedRoomBulb1", + "MqttClientMask": "RedRoomBulb1", + "MqttCount": 1, + "MqttHost": "192.168.1.230", + "MqttPort": 1883, + "MqttUser": "DVES_USER" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.1.0/STATUS7.json b/tests/status_parsing/jsonfiles/9.1.0/STATUS7.json new file mode 100644 index 0000000..b72c3ef --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.1.0/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-13T18:02:59", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "06:24", + "Sunset": "19:06", + "Timezone": "+01:00", + "UTC": "2024-09-13T17:02:59" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS.json new file mode 100644 index 0000000..d56176f --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS.json @@ -0,0 +1,34 @@ +{ + "Status": { + "ButtonRetain": 0, + "ButtonTopic": "0", + "DeviceName": "Woonkamer zigbee", + "FriendlyName": [ + "Woonkamer zigbee" + ], + "InfoRetain": 0, + "LedMask": "FFFF", + "LedState": 1, + "Module": 18, + "Power": 0, + "PowerOnState": 3, + "PowerRetain": 0, + "SaveData": 1, + "SaveState": 1, + "SensorRetain": 0, + "StateRetain": 0, + "SwitchMode": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "SwitchRetain": 0, + "SwitchTopic": "0", + "Topic": "zigbee" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS1.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS1.json new file mode 100644 index 0000000..1fcd704 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS1.json @@ -0,0 +1,17 @@ +{ + "StatusPRM": { + "BCResetTime": "2021-07-30T15:31:28", + "Baudrate": 115200, + "BootCount": 17, + "CfgHolder": 4617, + "GroupTopic": "tasmotas", + "OtaUrl": "http://otaserver/ota/tasmota/tasmota.bin.gz", + "RestartReason": "Power On", + "SaveAddress": "F5000", + "SaveCount": 4439, + "SerialConfig": "8N1", + "Sleep": 50, + "StartupUTC": "2023-10-30T08:26:27", + "Uptime": "321T06:15:00" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS11.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS11.json new file mode 100644 index 0000000..8c9c467 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS11.json @@ -0,0 +1,23 @@ +{ + "StatusSTS": { + "Heap": 24, + "LoadAvg": 22, + "MqttCount": 117, + "Sleep": 50, + "SleepMode": "Dynamic", + "Time": "2024-09-15T16:41:27", + "Uptime": "321T06:15:00", + "UptimeSec": 27756900, + "Wifi": { + "AP": 1, + "BSSId": "74:83:C2:2A:F1:AC", + "Channel": 1, + "Downtime": "0T00:14:26", + "LinkCount": 106, + "Mode": "11n", + "RSSI": 76, + "SSId": "indebuurt_IoT", + "Signal": -62 + } + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS2.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS2.json new file mode 100644 index 0000000..8e47e2f --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS2.json @@ -0,0 +1,12 @@ +{ + "StatusFWR": { + "Boot": 31, + "BuildDateTime": "2021-07-30T16:05:47", + "CR": "358/699", + "Core": "2_7_4_9", + "CpuFrequency": 80, + "Hardware": "ESP8266EX", + "SDK": "2.2.2-dev(38a443e)", + "Version": "9.5.0.4(tzigbee)" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS3.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS3.json new file mode 100644 index 0000000..42be1f1 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS3.json @@ -0,0 +1,23 @@ +{ + "StatusLOG": { + "LogHost": "loghost", + "LogPort": 514, + "MqttLog": 0, + "Resolution": "558180C0", + "SSId": [ + "indebuurt_IoT", + "indebuurt" + ], + "SerialLog": 3, + "SetOption": [ + "00008009", + "2805C8000100060000005A0A000000000000", + "00000080", + "00046002", + "00000000" + ], + "SysLog": 2, + "TelePeriod": 300, + "WebLog": 2 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS4.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS4.json new file mode 100644 index 0000000..41d6ab9 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS4.json @@ -0,0 +1,25 @@ +{ + "StatusMEM": { + "Drivers": "1,2,7,9,10,12,23,24,38", + "Features": [ + "00000809", + "0F100580", + "04400001", + "00000002", + "00000000", + "00000001", + "00000080", + "00000000", + "00000000" + ], + "FlashChipId": "1640E0", + "FlashFrequency": 40, + "FlashMode": 3, + "FlashSize": 4096, + "Free": 476, + "Heap": 25, + "ProgramFlashSize": 1024, + "ProgramSize": 527, + "Sensors": "2" + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS5.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS5.json new file mode 100644 index 0000000..2512700 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS5.json @@ -0,0 +1,14 @@ +{ + "StatusNET": { + "DNSServer1": "192.168.2.27", + "DNSServer2": "192.168.2.24", + "Gateway": "192.168.2.254", + "Hostname": "zigbee", + "IPAddress": "192.168.2.175", + "Mac": "5C:CF:7F:13:9F:D8", + "Subnetmask": "255.255.255.0", + "Webserver": 2, + "WifiConfig": 4, + "WifiPower": 17.0 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS6.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS6.json new file mode 100644 index 0000000..77abd89 --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS6.json @@ -0,0 +1,13 @@ +{ + "StatusMQT": { + "KEEPALIVE": 30, + "MAX_PACKET_SIZE": 1200, + "MqttClient": "DVES_139FD8", + "MqttClientMask": "DVES_%06X", + "MqttCount": 117, + "MqttHost": "mqttbroker", + "MqttPort": 1883, + "MqttUser": "DVES_USER", + "SOCKET_TIMEOUT": 4 + } +} \ No newline at end of file diff --git a/tests/status_parsing/jsonfiles/9.5.0.4/STATUS7.json b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS7.json new file mode 100644 index 0000000..91cdfde --- /dev/null +++ b/tests/status_parsing/jsonfiles/9.5.0.4/STATUS7.json @@ -0,0 +1,11 @@ +{ + "StatusTIM": { + "EndDST": "2024-10-27T03:00:00", + "Local": "2024-09-15T16:41:27", + "StartDST": "2024-03-31T02:00:00", + "Sunrise": "07:06", + "Sunset": "19:46", + "Timezone": 99, + "UTC": "2024-09-15T14:41:27" + } +} \ No newline at end of file