mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add T315 fixture, tests for humidity&temperature modules (#802)
This commit is contained in:
1
kasa/tests/fixtures/smart/child/.gitkeep
vendored
1
kasa/tests/fixtures/smart/child/.gitkeep
vendored
@@ -1 +0,0 @@
|
||||
Can be deleted when first fixture is added
|
537
kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json
vendored
Normal file
537
kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json
vendored
Normal file
@@ -0,0 +1,537 @@
|
||||
{
|
||||
"component_nego" : {
|
||||
"component_list" : [
|
||||
{
|
||||
"id" : "device",
|
||||
"ver_code" : 2
|
||||
},
|
||||
{
|
||||
"id" : "quick_setup",
|
||||
"ver_code" : 3
|
||||
},
|
||||
{
|
||||
"id" : "trigger_log",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "time",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "device_local_time",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "account",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "synchronize",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "cloud_connect",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "iot_cloud",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "firmware",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "localSmart",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "battery_detect",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "temperature",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "humidity",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "temp_humidity_record",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "comfort_temperature",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "comfort_humidity",
|
||||
"ver_code" : 1
|
||||
},
|
||||
{
|
||||
"id" : "report_mode",
|
||||
"ver_code" : 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"get_connect_cloud_state" : {
|
||||
"status" : 0
|
||||
},
|
||||
"get_device_info" : {
|
||||
"at_low_battery" : false,
|
||||
"avatar" : "",
|
||||
"battery_percentage" : 100,
|
||||
"bind_count" : 1,
|
||||
"category" : "subg.trigger.temp-hmdt-sensor",
|
||||
"current_humidity" : 61,
|
||||
"current_humidity_exception" : 1,
|
||||
"current_temp" : 21.4,
|
||||
"current_temp_exception" : 0,
|
||||
"device_id" : "SCRUBBED_CHILD_DEVICE_ID_1",
|
||||
"fw_ver" : "1.7.0 Build 230424 Rel.170332",
|
||||
"hw_id" : "00000000000000000000000000000000",
|
||||
"hw_ver" : "1.0",
|
||||
"jamming_rssi" : -122,
|
||||
"jamming_signal_level" : 1,
|
||||
"lastOnboardingTimestamp" : 1706990901,
|
||||
"mac" : "F0A731000000",
|
||||
"model" : "T315",
|
||||
"nickname" : "I01BU0tFRF9OQU1FIw==",
|
||||
"oem_id" : "00000000000000000000000000000000",
|
||||
"parent_device_id" : "0000000000000000000000000000000000000000",
|
||||
"region" : "Europe/Berlin",
|
||||
"report_interval" : 16,
|
||||
"rssi" : -56,
|
||||
"signal_level" : 3,
|
||||
"specs" : "EU",
|
||||
"status" : "online",
|
||||
"status_follow_edge" : false,
|
||||
"temp_unit" : "celsius",
|
||||
"type" : "SMART.TAPOSENSOR"
|
||||
},
|
||||
"get_fw_download_state" : {
|
||||
"cloud_cache_seconds" : 1,
|
||||
"download_progress" : 0,
|
||||
"reboot_time" : 5,
|
||||
"status" : 0,
|
||||
"upgrade_time" : 5
|
||||
},
|
||||
"get_latest_fw" : {
|
||||
"fw_ver" : "1.8.0 Build 230921 Rel.091446",
|
||||
"hw_id" : "00000000000000000000000000000000",
|
||||
"need_to_upgrade" : true,
|
||||
"oem_id" : "00000000000000000000000000000000",
|
||||
"release_date" : "2023-12-01",
|
||||
"release_note" : "Modifications and Bug Fixes:\nEnhance the stability of the sensor.",
|
||||
"type" : 2
|
||||
},
|
||||
"get_temp_humidity_records" : {
|
||||
"local_time" : 1709061516,
|
||||
"past24h_humidity" : [
|
||||
60,
|
||||
60,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
58,
|
||||
59,
|
||||
59,
|
||||
58,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
60,
|
||||
60,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
59,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
60,
|
||||
64,
|
||||
56,
|
||||
53,
|
||||
55,
|
||||
56,
|
||||
57,
|
||||
57,
|
||||
58,
|
||||
59,
|
||||
63,
|
||||
63,
|
||||
62,
|
||||
62,
|
||||
62,
|
||||
62,
|
||||
61,
|
||||
62,
|
||||
62,
|
||||
61,
|
||||
61
|
||||
],
|
||||
"past24h_humidity_exception" : [
|
||||
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,
|
||||
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,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
3,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"past24h_temp" : [
|
||||
217,
|
||||
216,
|
||||
215,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
212,
|
||||
212,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
211,
|
||||
211,
|
||||
211,
|
||||
212,
|
||||
213,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
213,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
212,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
214,
|
||||
214,
|
||||
215,
|
||||
215,
|
||||
215,
|
||||
214,
|
||||
215,
|
||||
216,
|
||||
216,
|
||||
216,
|
||||
216,
|
||||
216,
|
||||
216,
|
||||
216,
|
||||
205,
|
||||
196,
|
||||
210,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
213,
|
||||
214,
|
||||
215,
|
||||
214,
|
||||
214,
|
||||
213,
|
||||
213,
|
||||
214,
|
||||
214,
|
||||
214,
|
||||
213,
|
||||
213
|
||||
],
|
||||
"past24h_temp_exception" : [
|
||||
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,
|
||||
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,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
-4,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"temp_unit" : "celsius"
|
||||
},
|
||||
"get_trigger_logs" : {
|
||||
"logs" : [
|
||||
{
|
||||
"event" : "tooDry",
|
||||
"eventId" : "118040a8-5422-1100-0804-0a8542211000",
|
||||
"id" : 1,
|
||||
"timestamp" : 1706996915
|
||||
}
|
||||
],
|
||||
"start_id" : 1,
|
||||
"sum" : 1
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user