Skip to content

Commit

Permalink
add status json files (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski authored Sep 15, 2024
1 parent 7cb99c5 commit 7e3af07
Show file tree
Hide file tree
Showing 109 changed files with 1,815 additions and 123 deletions.
1 change: 1 addition & 0 deletions tdmgr/schemas/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file removed tests/status_parsing/__init__.py
Empty file.
37 changes: 37 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
17 changes: 17 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
5 changes: 5 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"StatusSNS": {
"Time": "2024-09-13T19:01:15"
}
}
26 changes: 26 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS11.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
12 changes: 12 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS2.json
Original file line number Diff line number Diff line change
@@ -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)"
}
}
24 changes: 24 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS3.json
Original file line number Diff line number Diff line change
@@ -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
}
}
26 changes: 26 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS4.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
15 changes: 15 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS5.json
Original file line number Diff line number Diff line change
@@ -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
}
}
13 changes: 13 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS6.json
Original file line number Diff line number Diff line change
@@ -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
}
}
11 changes: 11 additions & 0 deletions tests/status_parsing/jsonfiles/12.1.1.5/STATUS7.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
24 changes: 12 additions & 12 deletions tests/status_parsing/jsonfiles/12.2.0.2/STATUS.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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"
}
}
18 changes: 9 additions & 9 deletions tests/status_parsing/jsonfiles/12.2.0.2/STATUS1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
10 changes: 5 additions & 5 deletions tests/status_parsing/jsonfiles/12.2.0.2/STATUS2.json
Original file line number Diff line number Diff line change
@@ -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)"
}
}
}
55 changes: 55 additions & 0 deletions tests/status_parsing/jsonfiles/12.4.0/STATUS.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
17 changes: 17 additions & 0 deletions tests/status_parsing/jsonfiles/12.4.0/STATUS1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Loading

0 comments on commit 7e3af07

Please sign in to comment.