diff --git a/tests/components/tuya/__init__.py b/tests/components/tuya/__init__.py index 57da7cf0b915..d46171488861 100644 --- a/tests/components/tuya/__init__.py +++ b/tests/components/tuya/__init__.py @@ -24,6 +24,8 @@ DEVICE_MOCKS = [ "cl_qqdxfdht", # https://github.com/orgs/home-assistant/discussions/539 "cl_zah67ekd", # https://github.com/home-assistant/core/issues/71242 "clkg_nhyj64w2", # https://github.com/home-assistant/core/issues/136055 + "clkg_wltqkykhni0papzj", # https://github.com/home-assistant/core/issues/151635 + "co2bj_yakol79dibtswovc", # https://github.com/home-assistant/core/issues/151784 "co2bj_yrr3eiyiacm31ski", # https://github.com/home-assistant/core/issues/133173 "cobj_hcdy5zrq3ikzthws", # https://github.com/orgs/home-assistant/discussions/482 "cs_ipmyy4nigpqcnd8q", # https://github.com/home-assistant/core/pull/148726 @@ -32,6 +34,7 @@ DEVICE_MOCKS = [ "cs_vmxuxszzjwp5smli", # https://github.com/home-assistant/core/issues/119865 "cs_zibqa9dutqyaxym2", # https://github.com/home-assistant/core/pull/125098 "cwjwq_agwu93lr", # https://github.com/orgs/home-assistant/discussions/79 + "cwwsq_lxfvx41gqdotrkgi", # https://github.com/orgs/home-assistant/discussions/730 "cwwsq_wfkzyy0evslzsmoi", # https://github.com/home-assistant/core/issues/144745 "cwysj_akln8rb04cav403q", # https://github.com/home-assistant/core/pull/146599 "cwysj_z3rpyvznfcch99aa", # https://github.com/home-assistant/core/pull/146599 @@ -41,12 +44,14 @@ DEVICE_MOCKS = [ "cz_37mnhia3pojleqfh", # https://github.com/home-assistant/core/issues/146164 "cz_39sy2g68gsjwo2xv", # https://github.com/home-assistant/core/issues/141278 "cz_6fa7odsufen374x2", # https://github.com/home-assistant/core/issues/150029 + "cz_79a7z01v3n35kytb", # https://github.com/orgs/home-assistant/discussions/221 "cz_9ivirni8wemum6cw", # https://github.com/home-assistant/core/issues/139735 "cz_AiHXxAyyn7eAkLQY", # https://github.com/home-assistant/core/issues/150662 "cz_CHLZe9HQ6QIXujVN", # https://github.com/home-assistant/core/issues/149233 "cz_HBRBzv1UVBVfF6SL", # https://github.com/tuya/tuya-home-assistant/issues/754 "cz_anwgf2xugjxpkfxb", # https://github.com/orgs/home-assistant/discussions/539 "cz_cuhokdii7ojyw8k2", # https://github.com/home-assistant/core/issues/149704 + "cz_dhto3y4uachr1wll", # https://github.com/orgs/home-assistant/discussions/169 "cz_dntgh2ngvshfxpsz", # https://github.com/home-assistant/core/issues/149704 "cz_fencxse0bnut96ig", # https://github.com/home-assistant/core/issues/63978 "cz_gbtxrqfy9xcsakyp", # https://github.com/home-assistant/core/issues/141278 @@ -149,6 +154,7 @@ DEVICE_MOCKS = [ "mcs_8yhypbo7", # https://github.com/orgs/home-assistant/discussions/482 "mcs_hx5ztlztij4yxxvg", # https://github.com/home-assistant/core/issues/148347 "mcs_qxu3flpqjsc1kqu3", # https://github.com/home-assistant/core/issues/141278 + "msp_3ddulzljdjjwkhoy", # https://github.com/orgs/home-assistant/discussions/262 "mzj_jlapoy5liocmtdvd", # https://github.com/home-assistant/core/issues/150662 "mzj_qavcakohisj5adyh", # https://github.com/home-assistant/core/issues/141278 "ntq_9mqdhwklpvnnvb7t", # https://github.com/orgs/home-assistant/discussions/517 @@ -158,11 +164,13 @@ DEVICE_MOCKS = [ "pc_yku9wsimasckdt15", # https://github.com/orgs/home-assistant/discussions/482 "pir_3amxzozho9xp4mkh", # https://github.com/home-assistant/core/issues/149704 "pir_fcdjzz3s", # https://github.com/home-assistant/core/issues/149704 + "pir_j5jgnjvdaczeb6dc", # https://github.com/orgs/home-assistant/discussions/582 "pir_wqz93nrdomectyoz", # https://github.com/home-assistant/core/issues/149704 "qccdz_7bvgooyjhiua1yyq", # https://github.com/home-assistant/core/issues/136207 "qn_5ls2jw49hpczwqng", # https://github.com/home-assistant/core/issues/149233 "qxj_fsea1lat3vuktbt6", # https://github.com/orgs/home-assistant/discussions/318 "qxj_is2indt9nlth6esa", # https://github.com/home-assistant/core/issues/136472 + "qxj_xbwbniyt6bgws9ia", # https://github.com/orgs/home-assistant/discussions/823 "rqbj_4iqe2hsfyd86kwwc", # https://github.com/orgs/home-assistant/discussions/100 "sd_i6hyjg3af7doaswm", # https://github.com/orgs/home-assistant/discussions/539 "sd_lr33znaodtyarrrz", # https://github.com/home-assistant/core/issues/141278 @@ -172,22 +180,27 @@ DEVICE_MOCKS = [ "sfkzq_nxquc5lb", # https://github.com/home-assistant/core/issues/150662 "sfkzq_o6dagifntoafakst", # https://github.com/home-assistant/core/issues/148116 "sfkzq_rzklytdei8i8vo37", # https://github.com/home-assistant/core/issues/146164 + "sgbj_DYgId0sz6zWlmmYu", # https://github.com/orgs/home-assistant/discussions/583 "sgbj_im2eqqhj72suwwko", # https://github.com/home-assistant/core/issues/151082 "sgbj_ulv4nnue7gqp0rjk", # https://github.com/home-assistant/core/issues/149704 "sj_rzeSU2h9uoklxEwq", # https://github.com/home-assistant/core/issues/150683 "sj_tgvtvdoc", # https://github.com/orgs/home-assistant/discussions/482 + "sp_6bmk1remyscwyx6i", # https://github.com/orgs/home-assistant/discussions/842 "sp_drezasavompxpcgm", # https://github.com/home-assistant/core/issues/149704 "sp_nzauwyj3mcnjnf35", # https://github.com/home-assistant/core/issues/141278 "sp_rjKXWRohlvOTyLBu", # https://github.com/home-assistant/core/issues/149704 "sp_rudejjigkywujjvs", # https://github.com/home-assistant/core/issues/146164 "sp_sdd5f5f2dl5wydjf", # https://github.com/home-assistant/core/issues/144087 "swtz_3rzngbyy", # https://github.com/orgs/home-assistant/discussions/688 + "szjcy_u5xgcpcngk3pfxb4", # https://github.com/orgs/home-assistant/discussions/934 "tdq_1aegphq4yfd50e6b", # https://github.com/home-assistant/core/issues/143209 "tdq_9htyiowaf5rtdhrv", # https://github.com/home-assistant/core/issues/143209 "tdq_cq1p0nt0a4rixnex", # https://github.com/home-assistant/core/issues/146845 "tdq_nockvv2k39vbrxxk", # https://github.com/home-assistant/core/issues/145849 + "tdq_p6sqiuesvhmhvv4f", # https://github.com/orgs/home-assistant/discussions/430 "tdq_pu8uhxhwcp3tgoz7", # https://github.com/home-assistant/core/issues/141278 "tdq_uoa3mayicscacseb", # https://github.com/home-assistant/core/issues/128911 + "tdq_x3o8epevyeo3z3oa", # https://github.com/orgs/home-assistant/discussions/430 "tyndj_pyakuuoc", # https://github.com/home-assistant/core/issues/149704 "wfcon_b25mh8sxawsgndck", # https://github.com/home-assistant/core/issues/149704 "wfcon_lieerjyy6l4ykjor", # https://github.com/home-assistant/core/issues/136055 @@ -200,6 +213,7 @@ DEVICE_MOCKS = [ "wk_6kijc7nd", # https://github.com/home-assistant/core/issues/136513 "wk_aqoouq7x", # https://github.com/home-assistant/core/issues/146263 "wk_ccpwojhalfxryigz", # https://github.com/home-assistant/core/issues/145551 + "wk_cpmgn2cf", # https://github.com/orgs/home-assistant/discussions/684 "wk_fi6dne5tu4t1nm6j", # https://github.com/orgs/home-assistant/discussions/243 "wk_gc1bxoq2hafxpa35", # https://github.com/home-assistant/core/issues/145551 "wk_gogb05wrtredz3bs", # https://github.com/home-assistant/core/issues/136337 @@ -218,6 +232,7 @@ DEVICE_MOCKS = [ "wsdcg_yqiqbaldtr0i7mru", # https://github.com/home-assistant/core/issues/136223 "wxkg_ja5osu5g", # https://github.com/orgs/home-assistant/discussions/482 "wxkg_l8yaz4um5b3pwyvf", # https://github.com/home-assistant/core/issues/93975 + "wxnbq_5l1ht8jygsyr1wn1", # https://github.com/orgs/home-assistant/discussions/685 "xdd_shx9mmadyyeaq88t", # https://github.com/home-assistant/core/issues/151141 "xnyjcn_pb0tc75khaik8qbg", # https://github.com/home-assistant/core/pull/149237 "ydkt_jevroj5aguwdbs2e", # https://github.com/orgs/home-assistant/discussions/288 @@ -234,8 +249,10 @@ DEVICE_MOCKS = [ "zndb_4ggkyflayu1h1ho9", # https://github.com/home-assistant/core/pull/149317 "zndb_v5jlnn5hwyffkhp3", # https://github.com/home-assistant/core/issues/143209 "zndb_ze8faryrxr0glqnn", # https://github.com/home-assistant/core/issues/138372 + "znnbq_0kllybtbzftaee7y", # https://github.com/orgs/home-assistant/discussions/685 "znnbq_6b3pbbuqbfabhfiq", # https://github.com/orgs/home-assistant/discussions/707 "znrb_db81ge24jctwx8lo", # https://github.com/home-assistant/core/issues/136513 + "zwjcy_gvygg3m8", # https://github.com/orgs/home-assistant/discussions/949 "zwjcy_myd45weu", # https://github.com/orgs/home-assistant/discussions/482 ] diff --git a/tests/components/tuya/fixtures/clkg_wltqkykhni0papzj.json b/tests/components/tuya/fixtures/clkg_wltqkykhni0papzj.json new file mode 100644 index 000000000000..7e04bb3663a9 --- /dev/null +++ b/tests/components/tuya/fixtures/clkg_wltqkykhni0papzj.json @@ -0,0 +1,114 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Roller shutter Living Room", + "category": "clkg", + "product_id": "wltqkykhni0papzj", + "product_name": "Curtain switch", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-08-06T17:12:56+00:00", + "create_time": "2025-08-06T17:12:56+00:00", + "update_time": "2025-08-06T17:12:56+00:00", + "function": { + "control": { + "type": "Enum", + "value": { + "range": ["open", "stop", "close"] + } + }, + "percent_control": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + }, + "cur_calibration": { + "type": "Enum", + "value": { + "range": ["start", "end"] + } + }, + "switch_backlight": { + "type": "Boolean", + "value": {} + }, + "control_back_mode": { + "type": "Enum", + "value": { + "range": ["forward", "back"] + } + }, + "tr_timecon": { + "type": "Integer", + "value": { + "unit": "s", + "min": 5, + "max": 180, + "scale": 0, + "step": 1 + } + } + }, + "status_range": { + "control": { + "type": "Enum", + "value": { + "range": ["open", "stop", "close"] + } + }, + "percent_control": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + }, + "cur_calibration": { + "type": "Enum", + "value": { + "range": ["start", "end"] + } + }, + "switch_backlight": { + "type": "Boolean", + "value": {} + }, + "control_back_mode": { + "type": "Enum", + "value": { + "range": ["forward", "back"] + } + }, + "tr_timecon": { + "type": "Integer", + "value": { + "unit": "s", + "min": 5, + "max": 180, + "scale": 0, + "step": 1 + } + } + }, + "status": { + "control": "stop", + "percent_control": 75, + "cur_calibration": "start", + "switch_backlight": false, + "control_back_mode": "back", + "tr_timecon": 25 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/co2bj_yakol79dibtswovc.json b/tests/components/tuya/fixtures/co2bj_yakol79dibtswovc.json new file mode 100644 index 000000000000..316ad9b6955f --- /dev/null +++ b/tests/components/tuya/fixtures/co2bj_yakol79dibtswovc.json @@ -0,0 +1,56 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "PTH-9CW 32", + "category": "co2bj", + "product_id": "yakol79dibtswovc", + "product_name": "PTH-9CW(QC)", + "online": true, + "sub": false, + "time_zone": "+03:00", + "active_time": "2025-09-05T16:29:08+00:00", + "create_time": "2025-09-05T16:29:08+00:00", + "update_time": "2025-09-05T16:29:08+00:00", + "function": {}, + "status_range": { + "co2_value": { + "type": "Integer", + "value": { + "unit": "ppm", + "min": 0, + "max": 5000, + "scale": 0, + "step": 1 + } + }, + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -40, + "max": 125, + "scale": 0, + "step": 1 + } + }, + "humidity_value": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + } + }, + "status": { + "co2_value": 450, + "temp_current": 25, + "humidity_value": 43 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/cwwsq_lxfvx41gqdotrkgi.json b/tests/components/tuya/fixtures/cwwsq_lxfvx41gqdotrkgi.json new file mode 100644 index 000000000000..c323b2be9934 --- /dev/null +++ b/tests/components/tuya/fixtures/cwwsq_lxfvx41gqdotrkgi.json @@ -0,0 +1,111 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Cat Feeder", + "category": "cwwsq", + "product_id": "lxfvx41gqdotrkgi", + "product_name": "Wi-Fi Pet Feeder", + "online": true, + "sub": false, + "time_zone": "+10:00", + "active_time": "2025-08-19T23:39:22+00:00", + "create_time": "2025-08-19T23:39:22+00:00", + "update_time": "2025-08-19T23:39:22+00:00", + "function": { + "meal_plan": { + "type": "Raw", + "value": {} + }, + "manual_feed": { + "type": "Integer", + "value": { + "unit": "", + "min": 1, + "max": 50, + "scale": 0, + "step": 1 + } + }, + "factory_reset": { + "type": "Boolean", + "value": {} + }, + "voice_times": { + "type": "Integer", + "value": { + "unit": "", + "min": 0, + "max": 5, + "scale": 0, + "step": 1 + } + }, + "light": { + "type": "Boolean", + "value": {} + } + }, + "status_range": { + "meal_plan": { + "type": "Raw", + "value": {} + }, + "manual_feed": { + "type": "Integer", + "value": { + "unit": "", + "min": 1, + "max": 50, + "scale": 0, + "step": 1 + } + }, + "feed_state": { + "type": "Enum", + "value": { + "range": ["standby", "feeding"] + } + }, + "factory_reset": { + "type": "Boolean", + "value": {} + }, + "feed_report": { + "type": "Integer", + "value": { + "unit": "", + "min": 0, + "max": 255, + "scale": 0, + "step": 1 + } + }, + "voice_times": { + "type": "Integer", + "value": { + "unit": "", + "min": 0, + "max": 5, + "scale": 0, + "step": 1 + } + }, + "light": { + "type": "Boolean", + "value": {} + } + }, + "status": { + "meal_plan": "fwceBQF/DgACAX8UAAQB", + "manual_feed": 5, + "feed_state": "standby", + "factory_reset": false, + "feed_report": 1, + "voice_times": 0, + "light": true + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/cz_79a7z01v3n35kytb.json b/tests/components/tuya/fixtures/cz_79a7z01v3n35kytb.json new file mode 100644 index 000000000000..efd232bd66d3 --- /dev/null +++ b/tests/components/tuya/fixtures/cz_79a7z01v3n35kytb.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Double Digital Meter", + "category": "cz", + "product_id": "79a7z01v3n35kytb", + "product_name": "Double Digital Meter", + "online": false, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-07-05T16:04:41+00:00", + "create_time": "2025-07-05T16:04:41+00:00", + "update_time": "2025-07-05T16:04:41+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/cz_dhto3y4uachr1wll.json b/tests/components/tuya/fixtures/cz_dhto3y4uachr1wll.json new file mode 100644 index 000000000000..2846efc6f1b9 --- /dev/null +++ b/tests/components/tuya/fixtures/cz_dhto3y4uachr1wll.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Meter", + "category": "cz", + "product_id": "dhto3y4uachr1wll", + "product_name": "Double Digital Meter", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-07-02T18:53:11+00:00", + "create_time": "2025-07-02T18:53:11+00:00", + "update_time": "2025-07-02T18:53:11+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/msp_3ddulzljdjjwkhoy.json b/tests/components/tuya/fixtures/msp_3ddulzljdjjwkhoy.json new file mode 100644 index 000000000000..7bde995a2a3b --- /dev/null +++ b/tests/components/tuya/fixtures/msp_3ddulzljdjjwkhoy.json @@ -0,0 +1,149 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Kattenbak", + "category": "msp", + "product_id": "3ddulzljdjjwkhoy", + "product_name": "ZEDAR K1200", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-07-08T18:02:16+00:00", + "create_time": "2025-07-08T18:02:16+00:00", + "update_time": "2025-07-08T18:02:16+00:00", + "function": { + "switch": { + "type": "Boolean", + "value": {} + }, + "auto_clean": { + "type": "Boolean", + "value": {} + }, + "delay_clean_time": { + "type": "Integer", + "value": { + "unit": "s", + "min": 0, + "max": 600, + "scale": 0, + "step": 1 + } + }, + "manual_clean": { + "type": "Boolean", + "value": {} + }, + "light": { + "type": "Boolean", + "value": {} + }, + "factory_reset": { + "type": "Boolean", + "value": {} + }, + "status": { + "type": "Enum", + "value": { + "range": ["standby", "sleep", "uv"] + } + } + }, + "status_range": { + "switch": { + "type": "Boolean", + "value": {} + }, + "auto_clean": { + "type": "Boolean", + "value": {} + }, + "delay_clean_time": { + "type": "Integer", + "value": { + "unit": "s", + "min": 0, + "max": 600, + "scale": 0, + "step": 1 + } + }, + "cat_weight": { + "type": "Integer", + "value": { + "unit": "g", + "min": 0, + "max": 10000, + "scale": 0, + "step": 1 + } + }, + "excretion_times_day": { + "type": "Integer", + "value": { + "unit": "times", + "min": 0, + "max": 2, + "scale": 0, + "step": 1 + } + }, + "excretion_time_day": { + "type": "Integer", + "value": { + "unit": "s", + "min": 0, + "max": 600, + "scale": 0, + "step": 1 + } + }, + "manual_clean": { + "type": "Boolean", + "value": {} + }, + "light": { + "type": "Boolean", + "value": {} + }, + "fault": { + "type": "Bitmap", + "value": { + "label": [ + "motor_fault", + "g_sensor_fault", + "full_fault", + "box_out", + "filter_fault" + ] + } + }, + "factory_reset": { + "type": "Boolean", + "value": {} + }, + "status": { + "type": "Enum", + "value": { + "range": ["standby", "sleep", "uv"] + } + } + }, + "status": { + "switch": false, + "auto_clean": true, + "delay_clean_time": 90, + "cat_weight": 0, + "excretion_times_day": 1, + "excretion_time_day": 35, + "manual_clean": false, + "light": false, + "fault": 0, + "factory_reset": false, + "status": "standby" + }, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/pir_j5jgnjvdaczeb6dc.json b/tests/components/tuya/fixtures/pir_j5jgnjvdaczeb6dc.json new file mode 100644 index 000000000000..338a9b524c51 --- /dev/null +++ b/tests/components/tuya/fixtures/pir_j5jgnjvdaczeb6dc.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "QNECT WI-FI PIR SENSOR", + "category": "pir", + "product_id": "j5jgnjvdaczeb6dc", + "product_name": "QNECT WI-FI PIR SENSOR", + "online": true, + "sub": false, + "time_zone": "+01:00", + "active_time": "2024-06-21T07:10:11+00:00", + "create_time": "2024-06-21T07:10:11+00:00", + "update_time": "2024-06-21T07:10:11+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/qxj_xbwbniyt6bgws9ia.json b/tests/components/tuya/fixtures/qxj_xbwbniyt6bgws9ia.json new file mode 100644 index 000000000000..bce405a75587 --- /dev/null +++ b/tests/components/tuya/fixtures/qxj_xbwbniyt6bgws9ia.json @@ -0,0 +1,265 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "SWS 16600 WiFi SH", + "category": "qxj", + "product_id": "xbwbniyt6bgws9ia", + "product_name": "SWS 16600 WiFi SH", + "online": true, + "sub": false, + "time_zone": "+01:00", + "active_time": "2025-03-17T14:39:27+00:00", + "create_time": "2025-03-17T14:39:27+00:00", + "update_time": "2025-03-17T14:39:27+00:00", + "function": {}, + "status_range": { + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 601, + "scale": 1, + "step": 1 + } + }, + "humidity_value": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 101, + "scale": 0, + "step": 1 + } + }, + "temp_current_external": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 601, + "scale": 1, + "step": 1 + } + }, + "humidity_outdoor": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 101, + "scale": 0, + "step": 1 + } + }, + "temp_current_external_1": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 601, + "scale": 1, + "step": 1 + } + }, + "humidity_outdoor_1": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 101, + "scale": 0, + "step": 1 + } + }, + "temp_current_external_2": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 601, + "scale": 1, + "step": 1 + } + }, + "humidity_outdoor_2": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 101, + "scale": 0, + "step": 1 + } + }, + "temp_current_external_3": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 601, + "scale": 1, + "step": 1 + } + }, + "humidity_outdoor_3": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 101, + "scale": 0, + "step": 1 + } + }, + "atmospheric_pressture": { + "type": "Integer", + "value": { + "unit": "", + "min": 3000, + "max": 12001, + "scale": 1, + "step": 1 + } + }, + "pressure_drop": { + "type": "Integer", + "value": { + "unit": "hPa", + "min": 0, + "max": 16, + "scale": 0, + "step": 1 + } + }, + "windspeed_avg": { + "type": "Integer", + "value": { + "unit": "km/h", + "min": 0, + "max": 701, + "scale": 1, + "step": 1 + } + }, + "windspeed_gust": { + "type": "Integer", + "value": { + "unit": "km/h", + "min": 0, + "max": 701, + "scale": 1, + "step": 1 + } + }, + "rain_24h": { + "type": "Integer", + "value": { + "unit": "mm", + "min": 0, + "max": 1000001, + "scale": 3, + "step": 1 + } + }, + "rain_rate": { + "type": "Integer", + "value": { + "unit": "mm", + "min": 0, + "max": 1000001, + "scale": 3, + "step": 1 + } + }, + "uv_index": { + "type": "Integer", + "value": { + "unit": "", + "min": 0, + "max": 181, + "scale": 1, + "step": 1 + } + }, + "bright_value": { + "type": "Integer", + "value": { + "unit": "lux", + "min": 0, + "max": 238001, + "scale": 0, + "step": 100 + } + }, + "dew_point_temp": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -400, + "max": 801, + "scale": 1, + "step": 1 + } + }, + "feellike_temp": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -650, + "max": 501, + "scale": 1, + "step": 1 + } + }, + "heat_index": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": 260, + "max": 501, + "scale": 1, + "step": 1 + } + }, + "windchill_index": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -650, + "max": 601, + "scale": 1, + "step": 1 + } + } + }, + "status": { + "temp_current": 245, + "humidity_value": 47, + "temp_current_external": 207, + "humidity_outdoor": 68, + "temp_current_external_1": 601, + "humidity_outdoor_1": 101, + "temp_current_external_2": 601, + "humidity_outdoor_2": 101, + "temp_current_external_3": 601, + "humidity_outdoor_3": 101, + "atmospheric_pressture": 10078, + "pressure_drop": 0, + "windspeed_avg": 0, + "windspeed_gust": 0, + "rain_24h": 0, + "rain_rate": 0, + "uv_index": 0, + "bright_value": 7480, + "dew_point_temp": 145, + "feellike_temp": 207, + "heat_index": 501, + "windchill_index": 205 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/sgbj_DYgId0sz6zWlmmYu.json b/tests/components/tuya/fixtures/sgbj_DYgId0sz6zWlmmYu.json new file mode 100644 index 000000000000..7f84e0b7c8e1 --- /dev/null +++ b/tests/components/tuya/fixtures/sgbj_DYgId0sz6zWlmmYu.json @@ -0,0 +1,74 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Siren", + "category": "sgbj", + "product_id": "DYgId0sz6zWlmmYu", + "product_name": "Siren", + "online": false, + "sub": false, + "time_zone": "+01:00", + "active_time": "2025-03-08T20:44:34+00:00", + "create_time": "2025-03-08T20:44:34+00:00", + "update_time": "2025-03-08T20:44:34+00:00", + "function": { + "Alarmtype": { + "type": "Enum", + "value": { + "range": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] + } + }, + "AlarmPeriod": { + "type": "Integer", + "value": { + "unit": "s", + "min": 0, + "max": 60, + "scale": 0, + "step": 1 + } + }, + "AlarmSwitch": { + "type": "Boolean", + "value": {} + } + }, + "status_range": { + "Alarmtype": { + "type": "Enum", + "value": { + "range": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] + } + }, + "BatteryStatus": { + "type": "Enum", + "value": { + "range": ["0", "1", "2", "3", "4"] + } + }, + "AlarmSwitch": { + "type": "Boolean", + "value": {} + }, + "AlarmPeriod": { + "type": "Integer", + "value": { + "unit": "s", + "min": 0, + "max": 60, + "scale": 0, + "step": 1 + } + } + }, + "status": { + "BatteryStatus": 4, + "Alarmtype": 9, + "AlarmPeriod": 10, + "AlarmSwitch": false + }, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/sp_6bmk1remyscwyx6i.json b/tests/components/tuya/fixtures/sp_6bmk1remyscwyx6i.json new file mode 100644 index 000000000000..ca5a8dff998d --- /dev/null +++ b/tests/components/tuya/fixtures/sp_6bmk1remyscwyx6i.json @@ -0,0 +1,229 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Mirilla puerta", + "category": "sp", + "product_id": "6bmk1remyscwyx6i", + "product_name": "Smart DoorBell \uff08WiFi\uff09", + "online": true, + "sub": false, + "time_zone": "+01:00", + "active_time": "2024-03-05T12:13:24+00:00", + "create_time": "2024-03-05T12:13:24+00:00", + "update_time": "2025-09-06T07:21:05+00:00", + "function": { + "basic_flip": { + "type": "Boolean", + "value": {} + }, + "basic_osd": { + "type": "Boolean", + "value": {} + }, + "sd_format": { + "type": "Boolean", + "value": {} + }, + "nightvision_mode": { + "type": "Enum", + "value": { + "range": ["ir_mode", "color_mode"] + } + }, + "wireless_lowpower": { + "type": "Integer", + "value": { + "unit": "", + "min": 10, + "max": 50, + "scale": 1, + "step": 1 + } + }, + "wireless_awake": { + "type": "Boolean", + "value": {} + }, + "pir_switch": { + "type": "Enum", + "value": { + "range": ["0", "1", "2", "3"] + } + }, + "basic_device_volume": { + "type": "Integer", + "value": { + "unit": "%", + "min": 1, + "max": 100, + "scale": 0, + "step": 1 + } + }, + "humanoid_filter": { + "type": "Boolean", + "value": {} + }, + "basic_anti_flicker": { + "type": "Enum", + "value": { + "range": ["0", "1", "2"] + } + }, + "ipc_work_mode": { + "type": "Enum", + "value": { + "range": ["0", "1"] + } + } + }, + "status_range": { + "basic_flip": { + "type": "Boolean", + "value": {} + }, + "basic_osd": { + "type": "Boolean", + "value": {} + }, + "sd_storge": { + "type": "String", + "value": { + "maxlen": 255 + } + }, + "sd_status": { + "type": "Integer", + "value": { + "unit": "", + "min": 1, + "max": 5, + "scale": 1, + "step": 1 + } + }, + "sd_format": { + "type": "Boolean", + "value": {} + }, + "movement_detect_pic": { + "type": "Raw", + "value": { + "maxlen": 128 + } + }, + "sd_format_state": { + "type": "Integer", + "value": { + "unit": "", + "min": -20000, + "max": 20000, + "scale": 1, + "step": 1 + } + }, + "nightvision_mode": { + "type": "Enum", + "value": { + "range": ["ir_mode", "color_mode"] + } + }, + "wireless_electricity": { + "type": "Integer", + "value": { + "unit": "", + "min": 0, + "max": 100, + "scale": 1, + "step": 1 + } + }, + "wireless_powermode": { + "type": "Enum", + "value": { + "range": ["0", "1"] + } + }, + "wireless_lowpower": { + "type": "Integer", + "value": { + "unit": "", + "min": 10, + "max": 50, + "scale": 1, + "step": 1 + } + }, + "wireless_awake": { + "type": "Boolean", + "value": {} + }, + "pir_switch": { + "type": "Enum", + "value": { + "range": ["0", "1", "2", "3"] + } + }, + "doorbell_pic": { + "type": "Raw", + "value": { + "maxlen": 128 + } + }, + "basic_device_volume": { + "type": "Integer", + "value": { + "unit": "%", + "min": 1, + "max": 100, + "scale": 0, + "step": 1 + } + }, + "humanoid_filter": { + "type": "Boolean", + "value": {} + }, + "alarm_message": { + "type": "String", + "value": {} + }, + "basic_anti_flicker": { + "type": "Enum", + "value": { + "range": ["0", "1", "2"] + } + }, + "ipc_work_mode": { + "type": "Enum", + "value": { + "range": ["0", "1"] + } + } + }, + "status": { + "basic_flip": false, + "basic_osd": true, + "sd_storge": "31147664|31043136|104528", + "sd_status": 1, + "sd_format": true, + "movement_detect_pic": "**REDACTED**", + "sd_format_state": 0, + "nightvision_mode": "color_mode", + "wireless_electricity": 100, + "wireless_powermode": 1, + "wireless_lowpower": 10, + "wireless_awake": false, + "pir_switch": 3, + "doorbell_pic": "", + "basic_device_volume": 51, + "humanoid_filter": false, + "alarm_message": "**REDACTED**", + "basic_anti_flicker": 0, + "ipc_work_mode": 0 + }, + "set_up": true, + "support_local": false +} diff --git a/tests/components/tuya/fixtures/szjcy_u5xgcpcngk3pfxb4.json b/tests/components/tuya/fixtures/szjcy_u5xgcpcngk3pfxb4.json new file mode 100644 index 000000000000..b2bba20686ec --- /dev/null +++ b/tests/components/tuya/fixtures/szjcy_u5xgcpcngk3pfxb4.json @@ -0,0 +1,56 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "YINMIK Water Quality Tester", + "category": "szjcy", + "product_id": "u5xgcpcngk3pfxb4", + "product_name": "YINMIK Water Quality Tester", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-09-02T06:27:22+00:00", + "create_time": "2025-09-02T06:27:22+00:00", + "update_time": "2025-09-02T06:27:22+00:00", + "function": {}, + "status_range": { + "tds_in": { + "type": "Integer", + "value": { + "unit": "ppt", + "min": 0, + "max": 100000, + "scale": 3, + "step": 1 + } + }, + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": 0, + "max": 800, + "scale": 1, + "step": 1 + } + }, + "battery_percentage": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + } + }, + "status": { + "tds_in": 476, + "temp_current": 412, + "battery_percentage": 0 + }, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/tdq_p6sqiuesvhmhvv4f.json b/tests/components/tuya/fixtures/tdq_p6sqiuesvhmhvv4f.json new file mode 100644 index 000000000000..ccaad4d5a4a4 --- /dev/null +++ b/tests/components/tuya/fixtures/tdq_p6sqiuesvhmhvv4f.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Entrance Door", + "category": "tdq", + "product_id": "p6sqiuesvhmhvv4f", + "product_name": "Contact Sensor", + "online": true, + "sub": false, + "time_zone": "+01:00", + "active_time": "2025-03-27T15:14:26+00:00", + "create_time": "2025-03-27T15:14:26+00:00", + "update_time": "2025-03-27T15:14:26+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/tdq_x3o8epevyeo3z3oa.json b/tests/components/tuya/fixtures/tdq_x3o8epevyeo3z3oa.json new file mode 100644 index 000000000000..4d6831e16ad2 --- /dev/null +++ b/tests/components/tuya/fixtures/tdq_x3o8epevyeo3z3oa.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Interior Bedroom Sensor", + "category": "tdq", + "product_id": "x3o8epevyeo3z3oa", + "product_name": "T & H Sensor", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-06-28T12:38:48+00:00", + "create_time": "2025-06-28T12:38:48+00:00", + "update_time": "2025-06-28T12:38:48+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/wk_cpmgn2cf.json b/tests/components/tuya/fixtures/wk_cpmgn2cf.json new file mode 100644 index 000000000000..4448a2b7d5d2 --- /dev/null +++ b/tests/components/tuya/fixtures/wk_cpmgn2cf.json @@ -0,0 +1,85 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Bathroom radiator", + "category": "wk", + "product_id": "cpmgn2cf", + "product_name": "SmartTRV", + "online": true, + "sub": true, + "time_zone": "+00:00", + "active_time": "2025-07-20T12:12:03+00:00", + "create_time": "2025-07-20T12:12:03+00:00", + "update_time": "2025-07-20T12:12:03+00:00", + "function": { + "temp_set": { + "type": "Integer", + "value": { + "unit": "\u00b0C", + "min": 10, + "max": 700, + "scale": 1, + "step": 5 + } + }, + "mode": { + "type": "Enum", + "value": { + "range": ["holiday", "auto", "manual", "eco"] + } + }, + "child_lock": { + "type": "Boolean", + "value": {} + } + }, + "status_range": { + "temp_set": { + "type": "Integer", + "value": { + "unit": "\u00b0C", + "min": 10, + "max": 700, + "scale": 1, + "step": 5 + } + }, + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u00b0C", + "min": 0, + "max": 700, + "scale": 1, + "step": 5 + } + }, + "mode": { + "type": "Enum", + "value": { + "range": ["holiday", "auto", "manual", "eco"] + } + }, + "child_lock": { + "type": "Boolean", + "value": {} + }, + "fault": { + "type": "Bitmap", + "value": { + "label": ["1", "2", "3", "4", "5"] + } + } + }, + "status": { + "temp_set": 120, + "temp_current": 195, + "mode": "manual", + "child_lock": false, + "fault": 0 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/wxnbq_5l1ht8jygsyr1wn1.json b/tests/components/tuya/fixtures/wxnbq_5l1ht8jygsyr1wn1.json new file mode 100644 index 000000000000..9b001a62e19e --- /dev/null +++ b/tests/components/tuya/fixtures/wxnbq_5l1ht8jygsyr1wn1.json @@ -0,0 +1,21 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Panneaux solaires 2", + "category": "wxnbq", + "product_id": "5l1ht8jygsyr1wn1", + "product_name": "SORIA", + "online": false, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-08-12T17:57:40+00:00", + "create_time": "2025-08-12T17:57:40+00:00", + "update_time": "2025-08-12T17:57:40+00:00", + "function": {}, + "status_range": {}, + "status": {}, + "set_up": false, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/znnbq_0kllybtbzftaee7y.json b/tests/components/tuya/fixtures/znnbq_0kllybtbzftaee7y.json new file mode 100644 index 000000000000..3f5bba6e4e6f --- /dev/null +++ b/tests/components/tuya/fixtures/znnbq_0kllybtbzftaee7y.json @@ -0,0 +1,70 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "Soria", + "category": "znnbq", + "product_id": "0kllybtbzftaee7y", + "product_name": "Soria", + "online": true, + "sub": false, + "time_zone": "+02:00", + "active_time": "2025-07-12T07:19:59+00:00", + "create_time": "2025-07-12T07:19:59+00:00", + "update_time": "2025-07-12T07:19:59+00:00", + "function": { + "work_mode": { + "type": "Enum", + "value": { + "range": ["power_off", "inverter_power", "grid_power", "battery_power"] + } + } + }, + "status_range": { + "reverse_energy_total": { + "type": "Integer", + "value": { + "unit": "kW\u00b7h", + "min": 0, + "max": 99999999, + "scale": 2, + "step": 1 + } + }, + "power_total": { + "type": "Integer", + "value": { + "unit": "kW", + "min": 0, + "max": 900000, + "scale": 3, + "step": 1 + } + }, + "work_mode": { + "type": "Enum", + "value": { + "range": ["power_off", "inverter_power", "grid_power", "battery_power"] + } + }, + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -40, + "max": 150, + "scale": 1, + "step": 1 + } + } + }, + "status": { + "reverse_energy_total": 10821, + "power_total": 19060, + "work_mode": "power_off", + "temp_current": 28 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/fixtures/zwjcy_gvygg3m8.json b/tests/components/tuya/fixtures/zwjcy_gvygg3m8.json new file mode 100644 index 000000000000..0841e991b298 --- /dev/null +++ b/tests/components/tuya/fixtures/zwjcy_gvygg3m8.json @@ -0,0 +1,77 @@ +{ + "endpoint": "https://apigw.tuyaeu.com", + "mqtt_connected": true, + "disabled_by": null, + "disabled_polling": false, + "name": "humid pelargonia", + "category": "zwjcy", + "product_id": "gvygg3m8", + "product_name": "SGS01", + "online": false, + "sub": true, + "time_zone": "+02:00", + "active_time": "2025-06-08T09:13:18+00:00", + "create_time": "2025-06-08T09:13:18+00:00", + "update_time": "2025-06-08T09:13:18+00:00", + "function": { + "temp_unit_convert": { + "type": "Enum", + "value": { + "range": ["c", "f"] + } + } + }, + "status_range": { + "humidity": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + }, + "temp_current": { + "type": "Integer", + "value": { + "unit": "\u2103", + "min": -200, + "max": 1400, + "scale": 1, + "step": 1 + } + }, + "temp_unit_convert": { + "type": "Enum", + "value": { + "range": ["c", "f"] + } + }, + "battery_state": { + "type": "Enum", + "value": { + "range": ["low", "middle", "high"] + } + }, + "battery_percentage": { + "type": "Integer", + "value": { + "unit": "%", + "min": 0, + "max": 100, + "scale": 0, + "step": 1 + } + } + }, + "status": { + "humidity": 100, + "temp_current": 175, + "temp_unit_convert": "c", + "battery_state": "middle", + "battery_percentage": 37 + }, + "set_up": true, + "support_local": true +} diff --git a/tests/components/tuya/snapshots/test_binary_sensor.ambr b/tests/components/tuya/snapshots/test_binary_sensor.ambr index 2a032b1577c8..b83acb9904d5 100644 --- a/tests/components/tuya/snapshots/test_binary_sensor.ambr +++ b/tests/components/tuya/snapshots/test_binary_sensor.ambr @@ -97,6 +97,54 @@ 'state': 'off', }) # --- +# name: test_platform_setup_and_discovery[binary_sensor.cat_feeder_feeding-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'binary_sensor', + 'entity_category': None, + 'entity_id': 'binary_sensor.cat_feeder_feeding', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Feeding', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'feeding', + 'unique_id': 'tuya.igkrtodqg14xvfxlqswwcfeed_state', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[binary_sensor.cat_feeder_feeding-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Cat Feeder Feeding', + }), + 'context': , + 'entity_id': 'binary_sensor.cat_feeder_feeding', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- # name: test_platform_setup_and_discovery[binary_sensor.dehumidifer_defrost-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_camera.ambr b/tests/components/tuya/snapshots/test_camera.ambr index df6ea532d832..08312702a6d0 100644 --- a/tests/components/tuya/snapshots/test_camera.ambr +++ b/tests/components/tuya/snapshots/test_camera.ambr @@ -267,3 +267,56 @@ 'state': 'recording', }) # --- +# name: test_platform_setup_and_discovery[camera.mirilla_puerta-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'camera', + 'entity_category': None, + 'entity_id': 'camera.mirilla_puerta', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': None, + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': , + 'translation_key': None, + 'unique_id': 'tuya.i6xywcsymer1kmb6ps', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[camera.mirilla_puerta-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'access_token': '1', + 'brand': 'Tuya', + 'entity_picture': '/api/camera_proxy/camera.mirilla_puerta?token=1', + 'friendly_name': 'Mirilla puerta', + 'model_name': 'Smart DoorBell (WiFi)', + 'supported_features': , + }), + 'context': , + 'entity_id': 'camera.mirilla_puerta', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'idle', + }) +# --- diff --git a/tests/components/tuya/snapshots/test_climate.ambr b/tests/components/tuya/snapshots/test_climate.ambr index 7687c68ad31f..7431d8c792e3 100644 --- a/tests/components/tuya/snapshots/test_climate.ambr +++ b/tests/components/tuya/snapshots/test_climate.ambr @@ -74,6 +74,85 @@ 'state': 'off', }) # --- +# name: test_platform_setup_and_discovery[climate.bathroom_radiator-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'hvac_modes': list([ + , + , + , + , + ]), + 'max_temp': 70.0, + 'min_temp': 1.0, + 'preset_modes': list([ + 'holiday', + 'eco', + ]), + 'target_temp_step': 0.5, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'climate', + 'entity_category': None, + 'entity_id': 'climate.bathroom_radiator', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': None, + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': , + 'translation_key': None, + 'unique_id': 'tuya.fc2ngmpckw', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[climate.bathroom_radiator-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'current_temperature': 19.5, + 'friendly_name': 'Bathroom radiator', + 'hvac_modes': list([ + , + , + , + , + ]), + 'max_temp': 70.0, + 'min_temp': 1.0, + 'preset_mode': None, + 'preset_modes': list([ + 'holiday', + 'eco', + ]), + 'supported_features': , + 'target_temp_step': 0.5, + 'temperature': 12.0, + }), + 'context': , + 'entity_id': 'climate.bathroom_radiator', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'heat_cool', + }) +# --- # name: test_platform_setup_and_discovery[climate.boiler_temperature_controller-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_cover.ambr b/tests/components/tuya/snapshots/test_cover.ambr index f18c96596b18..1852a16f4646 100644 --- a/tests/components/tuya/snapshots/test_cover.ambr +++ b/tests/components/tuya/snapshots/test_cover.ambr @@ -355,6 +355,57 @@ 'state': 'open', }) # --- +# name: test_platform_setup_and_discovery[cover.roller_shutter_living_room_curtain-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'cover', + 'entity_category': None, + 'entity_id': 'cover.roller_shutter_living_room_curtain', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Curtain', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': , + 'translation_key': 'curtain', + 'unique_id': 'tuya.jzpap0inhkykqtlwgklccontrol', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[cover.roller_shutter_living_room_curtain-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'current_position': 25, + 'device_class': 'curtain', + 'friendly_name': 'Roller shutter Living Room Curtain', + 'supported_features': , + }), + 'context': , + 'entity_id': 'cover.roller_shutter_living_room_curtain', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'open', + }) +# --- # name: test_platform_setup_and_discovery[cover.tapparelle_studio_curtain-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_init.ambr b/tests/components/tuya/snapshots/test_init.ambr index 9d3bc4165e86..9454a064c3fd 100644 --- a/tests/components/tuya/snapshots/test_init.ambr +++ b/tests/components/tuya/snapshots/test_init.ambr @@ -1,4 +1,35 @@ # serializer version: 1 +# name: test_device_registry[1nw1rysgyj8th1l5qbnxw] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + '1nw1rysgyj8th1l5qbnxw', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'SORIA (unsupported)', + 'model_id': '5l1ht8jygsyr1wn1', + 'name': 'Panneaux solaires 2', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[2k8wyjo7iidkohuczc] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -278,6 +309,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[4bxfp3kgncpcgx5uycjzs] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + '4bxfp3kgncpcgx5uycjzs', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'YINMIK Water Quality Tester (unsupported)', + 'model_id': 'u5xgcpcngk3pfxb4', + 'name': 'YINMIK Water Quality Tester', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[4fO1qIzYbcdMUHqAjd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -1022,6 +1084,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[8m3ggyvgycjwz] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + '8m3ggyvgycjwz', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'SGS01', + 'model_id': 'gvygg3m8', + 'name': 'humid pelargonia', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[97k3pwirjd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -1518,6 +1611,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[ai9swgb6tyinbwbxjxq] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'ai9swgb6tyinbwbxjxq', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'SWS 16600 WiFi SH', + 'model_id': 'xbwbniyt6bgws9ia', + 'name': 'SWS 16600 WiFi SH', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[aje5kxgmhhxdihqizc] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -1580,6 +1704,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[ao3z3oeyvepe8o3xqdt] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'ao3z3oeyvepe8o3xqdt', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'T & H Sensor (unsupported)', + 'model_id': 'x3o8epevyeo3z3oa', + 'name': 'Interior Bedroom Sensor', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[aoyweq8xbx7qfndijd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -1921,6 +2076,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[btyk53n3v10z7a97zc] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'btyk53n3v10z7a97zc', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Double Digital Meter (unsupported)', + 'model_id': '79a7z01v3n35kytb', + 'name': 'Double Digital Meter', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[buzituffc13pgb1jjd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -2014,6 +2200,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[cd6bezcadvjngj5jrip] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'cd6bezcadvjngj5jrip', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'QNECT WI-FI PIR SENSOR (unsupported)', + 'model_id': 'j5jgnjvdaczeb6dc', + 'name': 'QNECT WI-FI PIR SENSOR', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[cijerqyssiwrf7deqzkfs] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -2169,6 +2386,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[cvowstbid97lokayjb2oc] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'cvowstbid97lokayjb2oc', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'PTH-9CW(QC)', + 'model_id': 'yakol79dibtswovc', + 'name': 'PTH-9CW 32', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[cwwk68dyfsh2eqi4jbqr] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -2386,6 +2634,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[f4vvhmhvseuiqs6pqdt] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'f4vvhmhvseuiqs6pqdt', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Contact Sensor (unsupported)', + 'model_id': 'p6sqiuesvhmhvv4f', + 'name': 'Entrance Door', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[fasvixqysw1lxvjprd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -2448,6 +2727,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[fc2ngmpckw] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'fc2ngmpckw', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'SmartTRV', + 'model_id': 'cpmgn2cf', + 'name': 'Bathroom radiator', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[fcdadqsiax2gvnt0qld] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -3192,6 +3502,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[i6xywcsymer1kmb6ps] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'i6xywcsymer1kmb6ps', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Smart DoorBell (WiFi)', + 'model_id': '6bmk1remyscwyx6i', + 'name': 'Mirilla puerta', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[iaagy4qigcdsw] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -3285,6 +3626,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[igkrtodqg14xvfxlqswwc] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'igkrtodqg14xvfxlqswwc', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Wi-Fi Pet Feeder', + 'model_id': 'lxfvx41gqdotrkgi', + 'name': 'Cat Feeder', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[ijne16zv8vpqmubnjd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -3688,6 +4060,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[jzpap0inhkykqtlwgklc] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'jzpap0inhkykqtlwgklc', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Curtain switch', + 'model_id': 'wltqkykhni0papzj', + 'name': 'Roller shutter Living Room', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[kcdngswaxs8hm52bnocfw] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -4091,6 +4494,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[llw1rhcau4y3othdzc] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'llw1rhcau4y3othdzc', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Double Digital Meter (unsupported)', + 'model_id': 'dhto3y4uachr1wll', + 'name': 'Meter', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[mgcpxpmovasazerdps] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -5982,6 +6416,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[uYmmlWz6zs0dIgYDjbgs] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'uYmmlWz6zs0dIgYDjbgs', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Siren (unsupported)', + 'model_id': 'DYgId0sz6zWlmmYu', + 'name': 'Siren', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[uew54dymycjwz] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -6447,6 +6912,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[y7eeatfzbtbyllk0qbnnz] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'y7eeatfzbtbyllk0qbnnz', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Soria', + 'model_id': '0kllybtbzftaee7y', + 'name': 'Soria', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[yky6kunazmaitupzjd] DeviceRegistryEntrySnapshot({ 'area_id': None, @@ -6509,6 +7005,37 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[yohkwjjdjlzludd3psm] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entries': , + 'config_entries_subentries': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'yohkwjjdjlzludd3psm', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'ZEDAR K1200 (unsupported)', + 'model_id': '3ddulzljdjjwkhoy', + 'name': 'Kattenbak', + 'name_by_user': None, + 'primary_config_entry': , + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[yuanswy6scm] DeviceRegistryEntrySnapshot({ 'area_id': None, diff --git a/tests/components/tuya/snapshots/test_light.ambr b/tests/components/tuya/snapshots/test_light.ambr index c84d14d2de3c..54c4b8784d6e 100644 --- a/tests/components/tuya/snapshots/test_light.ambr +++ b/tests/components/tuya/snapshots/test_light.ambr @@ -2692,6 +2692,63 @@ 'state': 'on', }) # --- +# name: test_platform_setup_and_discovery[light.roller_shutter_living_room_backlight-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'supported_color_modes': list([ + , + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'light', + 'entity_category': , + 'entity_id': 'light.roller_shutter_living_room_backlight', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Backlight', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'backlight', + 'unique_id': 'tuya.jzpap0inhkykqtlwgklcswitch_backlight', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[light.roller_shutter_living_room_backlight-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'color_mode': None, + 'friendly_name': 'Roller shutter Living Room Backlight', + 'supported_color_modes': list([ + , + ]), + 'supported_features': , + }), + 'context': , + 'entity_id': 'light.roller_shutter_living_room_backlight', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- # name: test_platform_setup_and_discovery[light.sjiethoes-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_number.ambr b/tests/components/tuya/snapshots/test_number.ambr index 5a85280daa6d..feebfae8cb06 100644 --- a/tests/components/tuya/snapshots/test_number.ambr +++ b/tests/components/tuya/snapshots/test_number.ambr @@ -174,6 +174,122 @@ 'state': '1.0', }) # --- +# name: test_platform_setup_and_discovery[number.cat_feeder_feed-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 50.0, + 'min': 1.0, + 'mode': , + 'step': 1.0, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': None, + 'entity_id': 'number.cat_feeder_feed', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Feed', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'feed', + 'unique_id': 'tuya.igkrtodqg14xvfxlqswwcmanual_feed', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[number.cat_feeder_feed-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Cat Feeder Feed', + 'max': 50.0, + 'min': 1.0, + 'mode': , + 'step': 1.0, + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'number.cat_feeder_feed', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '5.0', + }) +# --- +# name: test_platform_setup_and_discovery[number.cat_feeder_voice_times-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 5.0, + 'min': 0.0, + 'mode': , + 'step': 1.0, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': None, + 'entity_id': 'number.cat_feeder_voice_times', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Voice times', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'voice_times', + 'unique_id': 'tuya.igkrtodqg14xvfxlqswwcvoice_times', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[number.cat_feeder_voice_times-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Cat Feeder Voice times', + 'max': 5.0, + 'min': 0.0, + 'mode': , + 'step': 1.0, + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'number.cat_feeder_voice_times', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- # name: test_platform_setup_and_discovery[number.cbe_pro_2_battery_backup_reserve-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -1348,6 +1464,64 @@ 'state': '-2.0', }) # --- +# name: test_platform_setup_and_discovery[number.mirilla_puerta_volume-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'max': 100.0, + 'min': 1.0, + 'mode': , + 'step': 1.0, + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'number', + 'entity_category': , + 'entity_id': 'number.mirilla_puerta_volume', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Volume', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'volume', + 'unique_id': 'tuya.i6xywcsymer1kmb6psbasic_device_volume', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[number.mirilla_puerta_volume-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta Volume', + 'max': 100.0, + 'min': 1.0, + 'mode': , + 'step': 1.0, + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'number.mirilla_puerta_volume', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '51.0', + }) +# --- # name: test_platform_setup_and_discovery[number.multifunction_alarm_alarm_delay-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_select.ambr b/tests/components/tuya/snapshots/test_select.ambr index e792199a245f..deab14ecc953 100644 --- a/tests/components/tuya/snapshots/test_select.ambr +++ b/tests/components/tuya/snapshots/test_select.ambr @@ -3136,6 +3136,122 @@ 'state': 'power_on', }) # --- +# name: test_platform_setup_and_discovery[select.mirilla_puerta_anti_flicker-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + '0', + '1', + '2', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'select', + 'entity_category': , + 'entity_id': 'select.mirilla_puerta_anti_flicker', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Anti-flicker', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'basic_anti_flicker', + 'unique_id': 'tuya.i6xywcsymer1kmb6psbasic_anti_flicker', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[select.mirilla_puerta_anti_flicker-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta Anti-flicker', + 'options': list([ + '0', + '1', + '2', + ]), + }), + 'context': , + 'entity_id': 'select.mirilla_puerta_anti_flicker', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- +# name: test_platform_setup_and_discovery[select.mirilla_puerta_ipc_mode-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'options': list([ + '0', + '1', + ]), + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'select', + 'entity_category': , + 'entity_id': 'select.mirilla_puerta_ipc_mode', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'IPC mode', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'ipc_work_mode', + 'unique_id': 'tuya.i6xywcsymer1kmb6psipc_work_mode', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[select.mirilla_puerta_ipc_mode-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta IPC mode', + 'options': list([ + '0', + '1', + ]), + }), + 'context': , + 'entity_id': 'select.mirilla_puerta_ipc_mode', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unknown', + }) +# --- # name: test_platform_setup_and_discovery[select.office_indicator_light_mode-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_sensor.ambr b/tests/components/tuya/snapshots/test_sensor.ambr index 82b7c43c96fc..172531124fd2 100644 --- a/tests/components/tuya/snapshots/test_sensor.ambr +++ b/tests/components/tuya/snapshots/test_sensor.ambr @@ -3025,6 +3025,58 @@ 'state': '80.0', }) # --- +# name: test_platform_setup_and_discovery[sensor.cat_feeder_last_amount-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.cat_feeder_last_amount', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Last amount', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'last_amount', + 'unique_id': 'tuya.igkrtodqg14xvfxlqswwcfeed_report', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.cat_feeder_last_amount-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Cat Feeder Last amount', + 'state_class': , + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'sensor.cat_feeder_last_amount', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1.0', + }) +# --- # name: test_platform_setup_and_discovery[sensor.cleverio_pf100_last_amount-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -6734,6 +6786,216 @@ 'state': 'upper_alarm', }) # --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_battery-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.humid_pelargonia_battery', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Battery', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery', + 'unique_id': 'tuya.8m3ggyvgycjwzbattery_percentage', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_battery-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'battery', + 'friendly_name': 'humid pelargonia Battery', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.humid_pelargonia_battery', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unavailable', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_battery_state-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.humid_pelargonia_battery_state', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Battery state', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery_state', + 'unique_id': 'tuya.8m3ggyvgycjwzbattery_state', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_battery_state-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'humid pelargonia Battery state', + }), + 'context': , + 'entity_id': 'sensor.humid_pelargonia_battery_state', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unavailable', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_humidity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.humid_pelargonia_humidity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Humidity', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'humidity', + 'unique_id': 'tuya.8m3ggyvgycjwzhumidity', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_humidity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'humid pelargonia Humidity', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.humid_pelargonia_humidity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unavailable', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.humid_pelargonia_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Temperature', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'temperature', + 'unique_id': 'tuya.8m3ggyvgycjwztemp_current', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.humid_pelargonia_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'humid pelargonia Temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.humid_pelargonia_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'unavailable', + }) +# --- # name: test_platform_setup_and_discovery[sensor.humy_bain_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -10655,6 +10917,58 @@ 'state': '24354.16', }) # --- +# name: test_platform_setup_and_discovery[sensor.mirilla_puerta_battery-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': , + 'entity_id': 'sensor.mirilla_puerta_battery', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Battery', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'battery', + 'unique_id': 'tuya.i6xywcsymer1kmb6pswireless_electricity', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.mirilla_puerta_battery-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta Battery', + 'state_class': , + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'sensor.mirilla_puerta_battery', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '10.0', + }) +# --- # name: test_platform_setup_and_discovery[sensor.motion_sensor_lidl_zigbee_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -12462,6 +12776,171 @@ 'state': '0.0', }) # --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_carbon_dioxide-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.pth_9cw_32_carbon_dioxide', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor.private': dict({ + 'suggested_unit_of_measurement': 'ppm', + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Carbon dioxide', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'carbon_dioxide', + 'unique_id': 'tuya.cvowstbid97lokayjb2occo2_value', + 'unit_of_measurement': 'ppm', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_carbon_dioxide-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'carbon_dioxide', + 'friendly_name': 'PTH-9CW 32 Carbon dioxide', + 'state_class': , + 'unit_of_measurement': 'ppm', + }), + 'context': , + 'entity_id': 'sensor.pth_9cw_32_carbon_dioxide', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '450.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_humidity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.pth_9cw_32_humidity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Humidity', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'humidity', + 'unique_id': 'tuya.cvowstbid97lokayjb2ochumidity_value', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_humidity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'PTH-9CW 32 Humidity', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.pth_9cw_32_humidity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '43.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.pth_9cw_32_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Temperature', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'temperature', + 'unique_id': 'tuya.cvowstbid97lokayjb2octemp_current', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.pth_9cw_32_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'PTH-9CW 32 Temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.pth_9cw_32_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '25.0', + }) +# --- # name: test_platform_setup_and_discovery[sensor.rainwater_tank_level_distance-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -14343,6 +14822,177 @@ 'state': 'unavailable', }) # --- +# name: test_platform_setup_and_discovery[sensor.soria_power-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.soria_power', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + 'sensor.private': dict({ + 'suggested_unit_of_measurement': , + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Power', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'power', + 'unique_id': 'tuya.y7eeatfzbtbyllk0qbnnzpower_total', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.soria_power-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'power', + 'friendly_name': 'Soria Power', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.soria_power', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '19.06', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.soria_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.soria_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Temperature', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'temperature', + 'unique_id': 'tuya.y7eeatfzbtbyllk0qbnnztemp_current', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.soria_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'Soria Temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.soria_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2.8', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.soria_total_energy-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.soria_total_energy', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Total energy', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'total_energy', + 'unique_id': 'tuya.y7eeatfzbtbyllk0qbnnzreverse_energy_total', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.soria_total_energy-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'energy', + 'friendly_name': 'Soria Total energy', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.soria_total_energy', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '108.21', + }) +# --- # name: test_platform_setup_and_discovery[sensor.sous_vide_current_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -14774,6 +15424,876 @@ 'state': 'high', }) # --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_air_pressure-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_air_pressure', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Air pressure', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'air_pressure', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqatmospheric_pressture', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_air_pressure-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'SWS 16600 WiFi SH Air pressure', + 'state_class': , + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_air_pressure', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '1007.8', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_humidity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_humidity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Humidity', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'humidity', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqhumidity_value', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_humidity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'SWS 16600 WiFi SH Humidity', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_humidity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '47.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_illuminance-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_illuminance', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Illuminance', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'illuminance', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqbright_value', + 'unit_of_measurement': 'lx', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_illuminance-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'illuminance', + 'friendly_name': 'SWS 16600 WiFi SH Illuminance', + 'state_class': , + 'unit_of_measurement': 'lx', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_illuminance', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '7480.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Outdoor humidity', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'humidity_outdoor', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqhumidity_outdoor', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'SWS 16600 WiFi SH Outdoor humidity', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '68.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Outdoor humidity channel 1', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_humidity_outdoor', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqhumidity_outdoor_1', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'SWS 16600 WiFi SH Outdoor humidity channel 1', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '101.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Outdoor humidity channel 2', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_humidity_outdoor', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqhumidity_outdoor_2', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'SWS 16600 WiFi SH Outdoor humidity channel 2', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '101.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Outdoor humidity channel 3', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_humidity_outdoor', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqhumidity_outdoor_3', + 'unit_of_measurement': '%', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_outdoor_humidity_channel_3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'humidity', + 'friendly_name': 'SWS 16600 WiFi SH Outdoor humidity channel 3', + 'state_class': , + 'unit_of_measurement': '%', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_outdoor_humidity_channel_3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '101.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_precipitation_intensity-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_precipitation_intensity', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Precipitation intensity', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'precipitation_intensity', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqrain_rate', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_precipitation_intensity-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'precipitation_intensity', + 'friendly_name': 'SWS 16600 WiFi SH Precipitation intensity', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_precipitation_intensity', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Probe temperature', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'temperature_external', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqtemp_current_external', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'SWS 16600 WiFi SH Probe temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '20.7', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_1-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_1', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Probe temperature channel 1', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_temperature_external', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqtemp_current_external_1', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_1-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'SWS 16600 WiFi SH Probe temperature channel 1', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_1', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '60.1', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_2-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_2', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Probe temperature channel 2', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_temperature_external', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqtemp_current_external_2', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_2-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'SWS 16600 WiFi SH Probe temperature channel 2', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_2', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '60.1', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_3-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_3', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Probe temperature channel 3', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'indexed_temperature_external', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqtemp_current_external_3', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_probe_temperature_channel_3-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'SWS 16600 WiFi SH Probe temperature channel 3', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_probe_temperature_channel_3', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '60.1', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_temperature-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_temperature', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 1, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Temperature', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'temperature', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqtemp_current', + 'unit_of_measurement': , + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_temperature-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'temperature', + 'friendly_name': 'SWS 16600 WiFi SH Temperature', + 'state_class': , + 'unit_of_measurement': , + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_temperature', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '24.5', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_total_precipitation_today-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_total_precipitation_today', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 0, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Total precipitation today', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'precipitation_today', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqrain_24h', + 'unit_of_measurement': 'mm', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_total_precipitation_today-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'precipitation', + 'friendly_name': 'SWS 16600 WiFi SH Total precipitation today', + 'state_class': , + 'unit_of_measurement': 'mm', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_total_precipitation_today', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_uv_index-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_uv_index', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'UV index', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'uv_index', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxquv_index', + 'unit_of_measurement': '', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_uv_index-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'SWS 16600 WiFi SH UV index', + 'state_class': , + 'unit_of_measurement': '', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_uv_index', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_wind_speed-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': dict({ + 'state_class': , + }), + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'sensor', + 'entity_category': None, + 'entity_id': 'sensor.sws_16600_wifi_sh_wind_speed', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + 'sensor': dict({ + 'suggested_display_precision': 2, + }), + }), + 'original_device_class': , + 'original_icon': None, + 'original_name': 'Wind speed', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'wind_speed', + 'unique_id': 'tuya.ai9swgb6tyinbwbxjxqwindspeed_avg', + 'unit_of_measurement': 'km/h', + }) +# --- +# name: test_platform_setup_and_discovery[sensor.sws_16600_wifi_sh_wind_speed-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'device_class': 'wind_speed', + 'friendly_name': 'SWS 16600 WiFi SH Wind speed', + 'state_class': , + 'unit_of_measurement': 'km/h', + }), + 'context': , + 'entity_id': 'sensor.sws_16600_wifi_sh_wind_speed', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '0.0', + }) +# --- # name: test_platform_setup_and_discovery[sensor.tournesol_battery-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/tuya/snapshots/test_switch.ambr b/tests/components/tuya/snapshots/test_switch.ambr index 32900a25954f..66fbd93f7349 100644 --- a/tests/components/tuya/snapshots/test_switch.ambr +++ b/tests/components/tuya/snapshots/test_switch.ambr @@ -1022,6 +1022,54 @@ 'state': 'on', }) # --- +# name: test_platform_setup_and_discovery[switch.bathroom_radiator_child_lock-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.bathroom_radiator_child_lock', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Child lock', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'child_lock', + 'unique_id': 'tuya.fc2ngmpckwchild_lock', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[switch.bathroom_radiator_child_lock-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Bathroom radiator Child lock', + }), + 'context': , + 'entity_id': 'switch.bathroom_radiator_child_lock', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- # name: test_platform_setup_and_discovery[switch.bree_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ @@ -5465,6 +5513,102 @@ 'state': 'off', }) # --- +# name: test_platform_setup_and_discovery[switch.mirilla_puerta_flip-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.mirilla_puerta_flip', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Flip', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'flip', + 'unique_id': 'tuya.i6xywcsymer1kmb6psbasic_flip', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[switch.mirilla_puerta_flip-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta Flip', + }), + 'context': , + 'entity_id': 'switch.mirilla_puerta_flip', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'off', + }) +# --- +# name: test_platform_setup_and_discovery[switch.mirilla_puerta_time_watermark-entry] + EntityRegistryEntrySnapshot({ + 'aliases': set({ + }), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'switch', + 'entity_category': , + 'entity_id': 'switch.mirilla_puerta_time_watermark', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Time watermark', + 'platform': 'tuya', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': 'time_watermark', + 'unique_id': 'tuya.i6xywcsymer1kmb6psbasic_osd', + 'unit_of_measurement': None, + }) +# --- +# name: test_platform_setup_and_discovery[switch.mirilla_puerta_time_watermark-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + 'friendly_name': 'Mirilla puerta Time watermark', + }), + 'context': , + 'entity_id': 'switch.mirilla_puerta_time_watermark', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': 'on', + }) +# --- # name: test_platform_setup_and_discovery[switch.multifunction_alarm_arm_beep-entry] EntityRegistryEntrySnapshot({ 'aliases': set({