not sure why HA only adding 6 entities while there are 12 switches
here is the diagnostic file:
{
“home_assistant”: {
“installation_type”: “Home Assistant OS”,
“version”: “2023.10.1”,
“dev”: false,
“hassio”: true,
“virtualenv”: false,
“python_version”: “3.11.5”,
“docker”: true,
“arch”: “x86_64”,
“timezone”: “Asia/Jerusalem”,
“os_name”: “Linux”,
“os_version”: “6.1.45”,
“supervisor”: “2023.10.0”,
“host_os”: “Home Assistant OS 10.5”,
“docker_version”: “23.0.6”,
“chassis”: “vm”,
“run_as_root”: true
},
“custom_components”: {
},
“integration_manifest”: {
“domain”: “tuya”,
“name”: “Tuya”,
“codeowners”: [
“@Tuya”,
“@zlinoliver”,
“@frenck”
],
“config_flow”: true,
“dependencies”: [
“ffmpeg”
],
“dhcp”: [
{
“macaddress”: “105A17*”
},
{
“macaddress”: “10D561*”
},
{
“macaddress”: “1869D8*”
},
{
“macaddress”: “381F8D*”
},
{
“macaddress”: “508A06*”
},
{
“macaddress”: “68572D*”
},
{
“macaddress”: “708976*”
},
{
“macaddress”: “7CF666*”
},
{
“macaddress”: “84E342*”
},
{
“macaddress”: “D4A651*”
},
{
“macaddress”: “D81F12*”
}
],
“documentation”: “Tuya - Home Assistant”,
“integration_type”: “hub”,
“iot_class”: “cloud_push”,
“loggers”: [
“tuya_iot”
],
“requirements”: [
“tuya-iot-py-sdk==0.6.6”
],
“is_built_in”: true
},
“data”: {
“endpoint”: “https://openapi.tuyaeu.com”,
“auth_type”: 0,
“country_code”: “972”,
“app_type”: “smartlife”,
“mqtt_connected”: true,
“disabled_by”: null,
“disabled_polling”: false,
“devices”: [
{
“name”: “TY-12W”,
“model”: “”,
“category”: “pc”,
“product_id”: “tqn4efd8kzpn0oow”,
“product_name”: “TY-12W”,
“online”: true,
“sub”: false,
“time_zone”: “+03:00”,
“active_time”: “2023-09-23T06:51:19+00:00”,
“create_time”: “2023-09-23T06:51:19+00:00”,
“update_time”: “2023-10-08T10:07:22+00:00”,
“function”: {
“switch_1”: {
“type”: “Boolean”,
“value”: {}
},
“switch_2”: {
“type”: “Boolean”,
“value”: {}
},
“switch_3”: {
“type”: “Boolean”,
“value”: {}
},
“switch_4”: {
“type”: “Boolean”,
“value”: {}
},
“switch_5”: {
“type”: “Boolean”,
“value”: {}
},
“switch_6”: {
“type”: “Boolean”,
“value”: {}
},
“switch_7”: {
“type”: “Boolean”,
“value”: {}
},
“switch_8”: {
“type”: “Boolean”,
“value”: {}
},
“switch_9”: {
“type”: “Boolean”,
“value”: {}
},
“switch_10”: {
“type”: “Boolean”,
“value”: {}
},
“switch_11”: {
“type”: “Boolean”,
“value”: {}
},
“switch_12”: {
“type”: “Boolean”,
“value”: {}
}
},
“status_range”: {
“switch_1”: {
“type”: “Boolean”,
“value”: {}
},
“switch_2”: {
“type”: “Boolean”,
“value”: {}
},
“switch_3”: {
“type”: “Boolean”,
“value”: {}
},
“switch_4”: {
“type”: “Boolean”,
“value”: {}
},
“switch_5”: {
“type”: “Boolean”,
“value”: {}
},
“switch_6”: {
“type”: “Boolean”,
“value”: {}
},
“switch_7”: {
“type”: “Boolean”,
“value”: {}
},
“switch_8”: {
“type”: “Boolean”,
“value”: {}
},
“switch_9”: {
“type”: “Boolean”,
“value”: {}
},
“switch_10”: {
“type”: “Boolean”,
“value”: {}
},
“switch_11”: {
“type”: “Boolean”,
“value”: {}
},
“switch_12”: {
“type”: “Boolean”,
“value”: {}
}
},
“status”: {
“switch_1”: false,
“switch_2”: false,
“switch_3”: false,
“switch_4”: false,
“switch_5”: false,
“switch_6”: false,
“switch_7”: false,
“switch_8”: false,
“switch_9”: false,
“switch_10”: false,
“switch_11”: false,
“switch_12”: false
},
“home_assistant”: {
“name”: “TY-12W”,
“name_by_user”: null,
“disabled”: false,
“disabled_by”: null,
“entities”: [
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_1”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 1”
},
“last_changed”: “2023-10-08T10:13:44.092394+00:00”,
“last_updated”: “2023-10-08T10:13:44.092394+00:00”
}
},
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_2”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 2”
},
“last_changed”: “2023-10-08T10:08:38.542444+00:00”,
“last_updated”: “2023-10-08T10:08:38.542444+00:00”
}
},
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_3”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 3”
},
“last_changed”: “2023-10-08T10:08:38.542611+00:00”,
“last_updated”: “2023-10-08T10:08:38.542611+00:00”
}
},
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_4”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 4”
},
“last_changed”: “2023-10-08T10:08:38.542782+00:00”,
“last_updated”: “2023-10-08T10:08:38.542782+00:00”
}
},
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_5”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 5”
},
“last_changed”: “2023-10-08T10:09:07.462545+00:00”,
“last_updated”: “2023-10-08T10:09:07.462545+00:00”
}
},
{
“disabled”: false,
“disabled_by”: null,
“entity_category”: null,
“device_class”: null,
“original_device_class”: “outlet”,
“icon”: null,
“original_icon”: null,
“unit_of_measurement”: null,
“state”: {
“entity_id”: “switch.ty_12w_socket_6”,
“state”: “off”,
“attributes”: {
“device_class”: “outlet”,
“friendly_name”: “TY-12W Socket 6”
},
“last_changed”: “2023-10-08T10:08:38.543064+00:00”,
“last_updated”: “2023-10-08T10:08:38.543064+00:00”
}
}
]
}
}
]
}
}