zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

[Device Support Request] _TZ3000_46t1rvdu no power metering

Open redQs opened this issue 2 years ago • 24 comments

Is your feature request related to a problem? Please describe. Hey, i just addat an Tuya TS0001 _TZ3000_46t1rvdu i can klick on the switch but i it dont give me any power metering its all the time 0

Describe the solution you'd like how can i fix that problem?

Device signature
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0702",
        "0x0b04",
        "0xe000",
        "0xe001"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZ3000_46t1rvdu",
  "model": "TS0001",
  "class": "zhaquirks.tuya.ts000x.Switch_1G_Metering"
}
Diagnostic information
Paste the diagnostic information here.
Don't remove the extra line breaks outside the ``` marks.
Additional logs
Paste any additional debug logs here.
Don't remove the extra line breaks outside the ``` marks.

Additional context 2022-11-27 23_38_36-Einstellungen – Home Assistant

redQs avatar Nov 27 '22 23:11 redQs

Despite the device signature it seems that device don't support any electrical metering. Z2M configs declares the device just as a OnOff switch:

  • https://github.com/Koenkk/zigbee-herdsman-converters/blob/33d7003c2cabfe963d0a34eb2b1447e26abed004/devices/tuya.js#L814

Do you have any evidence or vendor declaration that device supports metering?

javicalle avatar Nov 29 '22 20:11 javicalle

i ask them, they say it in the advertisement.

Why does it show up from itself in home assistant when it doesnt support it?

redQs avatar Nov 30 '22 07:11 redQs

It hsould have power metering There is a 1 Ohm resistor between Nin and Nout

IMG20221204193754

HENN0 avatar Dec 04 '22 19:12 HENN0

Have you tried to remove the device from HA and pair it again? If not working, we need the logs to see what can be happening. Check the documentation to enable it and attach the relevant info:

  • https://www.home-assistant.io/integrations/zha/#debug-logging

javicalle avatar Dec 04 '22 19:12 javicalle

I don't use Home-Assistent Zigbee2mqtt and as home server FHEM As the power is not shown in zigbee2mqtt, it cannot been shown in FHEM and i guess also in HA

But i did repair it already after switching to dev git

HENN0 avatar Dec 04 '22 19:12 HENN0

Do you need this? ore something else?

Additional logs
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.11.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.74",
    "supervisor": "2022.11.2",
    "host_os": "Home Assistant OS 9.3",
    "docker_version": "20.10.18",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.28.4",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "govee": {
      "version": "0.2.2",
      "requirements": [
        "govee-api-laggat==0.2.2",
        "dacite==1.6.0"
      ]
    },
    "smartthinq_sensors": {
      "version": "0.24.2",
      "requirements": [
        "pycountry>=20.7.3",
        "xmltodict>=0.12.0",
        "cchardet>=2.1.7"
      ]
    },
    "localtuya": {
      "version": "4.1.1",
      "requirements": []
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.4",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.87",
      "zigpy-deconz==0.19.1",
      "zigpy==0.51.6",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.1"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 47151,
    "manufacturer": "_TZ3000_46t1rvdu",
    "model": "TS0001",
    "name": "_TZ3000_46t1rvdu TS0001",
    "quirk_applied": true,
    "quirk_class": "TS000X.Switch_1G_Metering",
    "manufacturer_code": 4417,
    "power_source": "Mains",
    "lqi": 48,
    "rssi": null,
    "last_seen": "2022-12-05T01:28:16",
    "available": true,
    "device_type": "Router",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0000",
            "0x0003",
            "0x0004",
            "0x0005",
            "0x0006",
            "0x0702",
            "0x0b04",
            "0xe000",
            "0xe001"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "242": {
          "profile_id": 41440,
          "device_type": "0x0061",
          "in_clusters": [],
          "out_clusters": [
            "0x0021"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "sensor.heizung2_active_power",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "button.heizung2_identify",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "light.heizung2_light",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.heizung2_power_factor",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "select.heizung2_power_on_state",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.heizung2_rms_current",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.heizung2_rms_voltage",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.heizung2_summation_delivered",
        "name": "_TZ3000_46t1rvdu TS0001"
      }
    ],
    "neighbors": [],
    "endpoint_names": [
      {
        "name": "ON_OFF_LIGHT"
      },
      {
        "name": "unknown 97 device_type of 0xa1e0 profile id"
      }
    ],
    "user_given_name": "Heizung2",
    "device_reg_id": "46a55b0c25f89e8a61822e2d9d3b5b06",
    "area_id": null,
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0000": {
                "attribute_name": "zcl_version",
                "value": 3
              },
              "0x0001": {
                "attribute_name": "app_version",
                "value": 70
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZ3000_46t1rvdu"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0001"
              },
              "0x0007": {
                "attribute_name": "power_source",
                "value": 1
              },
              "0xfffe": {
                "attribute_name": "attr_reporting_status",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 1
              },
              "0x4001": {
                "attribute_name": "on_time",
                "value": 0
              },
              "0x4002": {
                "attribute_name": "off_wait_time",
                "value": 0
              },
              "0x8002": {
                "attribute_name": "power_on_state",
                "value": 1
              }
            },
            "unsupported_attributes": {
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          },
          "0x0702": {
            "endpoint_attribute": "smartenergy_metering",
            "attributes": {
              "0x0000": {
                "attribute_name": "current_summ_delivered",
                "value": 0
              },
              "0x0200": {
                "attribute_name": "status",
                "value": 0
              },
              "0x0300": {
                "attribute_name": "unit_of_measure",
                "value": 0
              },
              "0x0303": {
                "attribute_name": "summation_formatting",
                "value": 0
              },
              "0x0306": {
                "attribute_name": "metering_device_type",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0400": {
                "attribute_name": "instantaneous_demand"
              },
              "0x0301": {
                "attribute_name": "multiplier"
              },
              "0x0302": {
                "attribute_name": "divisor"
              },
              "0x0304": {
                "attribute_name": "demand_formatting"
              }
            }
          },
          "0x0b04": {
            "endpoint_attribute": "electrical_measurement",
            "attributes": {
              "0x0505": {
                "attribute_name": "rms_voltage",
                "value": 0
              },
              "0x0508": {
                "attribute_name": "rms_current",
                "value": 0
              },
              "0x050b": {
                "attribute_name": "active_power",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0300": {
                "attribute_name": "ac_frequency"
              },
              "0x0604": {
                "attribute_name": "ac_power_multiplier"
              },
              "0x0302": {
                "attribute_name": "ac_frequency_max"
              },
              "0x0603": {
                "attribute_name": "ac_current_divisor"
              },
              "0x0602": {
                "attribute_name": "ac_current_multiplier"
              },
              "0x0605": {
                "attribute_name": "ac_power_divisor"
              },
              "0x050d": {
                "attribute_name": "active_power_max"
              },
              "0x0507": {
                "attribute_name": "rms_voltage_max"
              },
              "0x0601": {
                "attribute_name": "ac_voltage_divisor"
              },
              "0x050a": {
                "attribute_name": "rms_current_max"
              },
              "0x0000": {
                "attribute_name": "measurement_type"
              },
              "0x0403": {
                "attribute_name": "power_divisor"
              },
              "0x050f": {
                "attribute_name": "apparent_power"
              },
              "0x0401": {
                "attribute_name": "ac_frequency_divisor"
              },
              "0x0400": {
                "attribute_name": "ac_frequency_multiplier"
              },
              "0x0402": {
                "attribute_name": "power_multiplier"
              },
              "0x0600": {
                "attribute_name": "ac_voltage_multiplier"
              }
            }
          },
          "0xe000": {
            "endpoint_attribute": "tuya_is_pita_0",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xe001": {
            "endpoint_attribute": "tuya_external_switch_type",
            "attributes": {
              "0xd030": {
                "attribute_name": "external_switch_type",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "242": {
        "device_type": {
          "name": "unknown",
          "id": 97
        },
        "profile_id": 41440,
        "in_clusters": {},
        "out_clusters": {
          "0x0021": {
            "endpoint_attribute": "green_power",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}

redQs avatar Dec 05 '22 00:12 redQs

or you need this right? :D home-assistant.log

redQs avatar Dec 05 '22 00:12 redQs

same on TS0004 _TZ3000_ltt60asa. in device no functional of voltage and etc. but in HA sensors with 0 data.

Device signature
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0702",
        "0x0b04",
        "0xe000",
        "0xe001"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "2": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0004",
        "0x0005",
        "0x0006"
      ],
      "out_clusters": []
    },
    "3": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0004",
        "0x0005",
        "0x0006"
      ],
      "out_clusters": []
    },
    "4": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0004",
        "0x0005",
        "0x0006"
      ],
      "out_clusters": []
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_ltt60asa",
  "model": "TS0004",
  "class": "tuya.ts000x.Switch_4G_Metering"
}

pervolianinen avatar Dec 05 '22 12:12 pervolianinen

Can you try to remove from HA the device, wait a minute and pair it again?

javicalle avatar Dec 05 '22 17:12 javicalle

Yes, dosnt help

"dateCode":"","friendlyName":"Stecker1","hardwareVersion":1,"ieeeAddr":"0xa4c138fb4cba77fd","manufacturerID":4417,"manufacturerName":"_TZ3000_gjnozsaz","model":"TS011F_plug_1","networkAddress":35969,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"energy":0.81,"indicator_mode":"

HENN0 avatar Dec 05 '22 17:12 HENN0

@HENN0 I think is better you is using Z2M GIThub issue for posting problems with devices in your Z2M system and not in ZHA / Zigpy.

MattWestb avatar Dec 05 '22 18:12 MattWestb

Ok, that's what I can see in the logs (device: 0xCE12):

  1. the device is initializing:
2022-12-05 01:10:45.598 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing channel: from_cache: True
2022-12-05 01:10:45.598 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing cached channel attributes: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting', 'unit_of_measure']
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting']
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['unit_of_measure']
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing uncached channel attributes: ['instantaneous_demand', 'current_summ_delivered', 'status'] - from cache[True]
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['instantaneous_demand', 'current_summ_delivered', 'status']
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Performing channel specific initialization: ['instantaneous_demand', 'current_summ_delivered', 'status']
2022-12-05 01:10:45.599 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: finished channel initialization
  1. the device read the attribute's values
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing channel: from_cache: False
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing cached channel attributes: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting', 'unit_of_measure']
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['demand_formatting', 'divisor', 'metering_device_type', 'multiplier', 'summation_formatting']
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['unit_of_measure']
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: initializing uncached channel attributes: ['instantaneous_demand', 'current_summ_delivered', 'status'] - from cache[False]
2022-12-05 01:10:45.735 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Reading attributes in chunks: ['instantaneous_demand', 'current_summ_delivered', 'status']
2022-12-05 01:10:45.735 DEBUG (MainThread) [zigpy.zcl] [0xCE12:1:0x0702] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=50, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-12-05 01:10:45.736 DEBUG (MainThread) [zigpy.zcl] [0xCE12:1:0x0702] Sending request: Read_Attributes(attribute_ids=[1024, 0, 512])
2022-12-05 01:10:45.736 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xCE12), dst_ep=1, source_route=None, extended_timeout=False, tsn=50, profile_id=260, cluster_id=1794, data=Serialized[b'\x002\x00\x00\x04\x00\x00\x00\x02'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
  1. the device report the values for the uncached values:
2022-12-05 01:10:50.874 DEBUG (MainThread) [zigpy.zcl] [0xCE12:1:0x0702] Received ZCL frame: b'\x182\x01\x00\x04\x86\x00\x00\x00%\x00\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'
2022-12-05 01:10:50.875 DEBUG (MainThread) [zigpy.zcl] [0xCE12:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=50, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-12-05 01:10:50.875 DEBUG (MainThread) [zigpy.zcl] [0xCE12:1:0x0702] Decoded ZCL frame: Metering:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0400, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=0)), ReadAttributeRecord(attrid=0x0200, status=<Status.SUCCESS: 0>, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])
2022-12-05 01:10:50.876 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x9055), DstEndpoint=11, DstPanId=0x0000, SrcEndpoint=1, ClusterId=768, TSN=52, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK: 32>, Radius=0, Data=b'\x00\x34\x00\x00\x40\x01\x00\x07\x00')
2022-12-05 01:10:50.877 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: Performing channel specific initialization: ['instantaneous_demand', 'current_summ_delivered', 'status']
2022-12-05 01:10:50.877 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xCE12:1:0x0702]: finished channel initialization

Here, the instantaneous_demand report as UNSUPPORTED_ATTRIBUTE. The current_summ_delivered and status report 0 as value.

Nothing more. No errors, no extrange reports. It seems that device don't report its values, even with the Tuya spell. If the problem is not the spell cast I don't know what else can be.

javicalle avatar Dec 06 '22 17:12 javicalle

Hi there,

I have the same issue: no power reading. I have the power cable to "L-in" and "N-in" and a normal light bulb (old school, no LED ;-)) connected. HA shows history of the power consumption, but no graph... image

Also I importet the quirk file, restarted HA, new configuration, remove, restart, new pairing... nothing did help.

Any idea is welcome, thx, c

CharlyNaseweis avatar Dec 06 '22 21:12 CharlyNaseweis

Hi same here, I got no information regarding Power Meter. (plus, some device became unresponsive when switching them on/off (MAC_NO_ACK:233), even if they are online and reporting their status to HA).

I can help on investigate the topic.

Logfile from ZHA debug scoped to device IEEE TS0001-0x154B.log

Device diagnostics { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.12.8", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.7", "docker": true, "arch": "aarch64", "timezone": "Europe/Paris", "os_name": "Linux", "os_version": "5.15.76-v8", "supervisor": "2022.11.2", "host_os": "Home Assistant OS 9.4", "docker_version": "20.10.19", "chassis": "embedded", "run_as_root": true }, "custom_components": {}, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/zha", "requirements": [ "bellows==0.34.5", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.89", "zigpy-deconz==0.19.2", "zigpy==0.52.3", "zigpy-xbee==0.16.2", "zigpy-zigate==0.10.3", "zigpy-znp==0.9.2" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*zigstar*", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "*conbee*", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "*zigbee*", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "*zigate*", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "*zigate*", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "*bv 2010/10*", "known_devices": [ "Bitron Video AV2010/10" ] } ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "*zigate*" }, { "type": "_zigstar_gw._tcp.local.", "name": "*zigstar*" } ], "dependencies": [ "file_upload" ], "after_dependencies": [ "onboarding", "usb", "zeroconf" ], "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 55051, "manufacturer": "_TZ3000_46t1rvdu", "model": "TS0001", "name": "_TZ3000_46t1rvdu TS0001", "quirk_applied": true, "quirk_class": "zhaquirks.tuya.ts000x.Switch_1G_Metering", "manufacturer_code": 4417, "power_source": "Mains", "lqi": 0, "rssi": null, "last_seen": "2022-12-24T10:49:06", "available": true, "device_type": "Router", "signature": { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 260, "device_type": "0x0100", "in_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0702", "0x0b04", "0xe000", "0xe001" ], "out_clusters": [ "0x000a", "0x0019" ] } } }, "active_coordinator": false, "entities": [ { "entity_id": "switch.chambre_heater_switch", "name": "_TZ3000_46t1rvdu TS0001" }, { "entity_id": "button.tz3000_46t1rvdu_ts0001_identify_5", "name": "_TZ3000_46t1rvdu TS0001" }, { "entity_id": "select.tz3000_46t1rvdu_ts0001_power_on_state_5", "name": "_TZ3000_46t1rvdu TS0001" }, { "entity_id": "select.tz3000_46t1rvdu_ts0001_backlight_mode_5", "name": "_TZ3000_46t1rvdu TS0001" } ], "neighbors": [ { "device_type": "Router", "rx_on_when_idle": "On", "relationship": "Sibling", "extended_pan_id": "**REDACTED**", "ieee": "**REDACTED**", "nwk": "0x27BB", "permit_joining": "Unknown", "depth": "0", "lqi": "15" } ], "routes": [], "endpoint_names": [ { "name": "ON_OFF_LIGHT" } ], "user_given_name": "Radiateur Chambre", "device_reg_id": "11404be9a69fe8c5f76c192fb9394251", "area_id": "chambre", "cluster_details": { "1": { "device_type": { "name": "ON_OFF_LIGHT", "id": 256 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0000": { "attribute_name": "zcl_version", "value": 3 }, "0x0001": { "attribute_name": "app_version", "value": 70 }, "0x0004": { "attribute_name": "manufacturer", "value": "_TZ3000_46t1rvdu" }, "0x0005": { "attribute_name": "model", "value": "TS0001" }, "0x0007": { "attribute_name": "power_source", "value": 1 }, "0xfffe": { "attribute_name": "attr_reporting_status", "value": 0 } }, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0004": { "endpoint_attribute": "groups", "attributes": {}, "unsupported_attributes": {} }, "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0x0006": { "endpoint_attribute": "on_off", "attributes": { "0x0000": { "attribute_name": "on_off", "value": 1 }, "0x8001": { "attribute_name": "backlight_mode", "value": 1 }, "0x8002": { "attribute_name": "power_on_state", "value": 2 } }, "unsupported_attributes": { "0x4003": { "attribute_name": "start_up_on_off" } } }, "0x0702": { "endpoint_attribute": "smartenergy_metering", "attributes": { "0x0000": { "attribute_name": "current_summ_delivered", "value": 0 }, "0x0200": { "attribute_name": "status", "value": 0 }, "0x0300": { "attribute_name": "unit_of_measure", "value": 0 }, "0x0301": { "attribute_name": "multiplier", "value": 1 }, "0x0302": { "attribute_name": "divisor", "value": 100 }, "0x0303": { "attribute_name": "summation_formatting", "value": 0 }, "0x0306": { "attribute_name": "metering_device_type", "value": 0 } }, "unsupported_attributes": { "0x0400": { "attribute_name": "instantaneous_demand" }, "0x0304": { "attribute_name": "demand_formatting" } } }, "0x0b04": { "endpoint_attribute": "electrical_measurement", "attributes": { "0x0505": { "attribute_name": "rms_voltage", "value": 0 }, "0x0508": { "attribute_name": "rms_current", "value": 0 }, "0x050b": { "attribute_name": "active_power", "value": 0 }, "0x0602": { "attribute_name": "ac_current_multiplier", "value": 1 }, "0x0603": { "attribute_name": "ac_current_divisor", "value": 1000 } }, "unsupported_attributes": { "0x0300": { "attribute_name": "ac_frequency" }, "0x0601": { "attribute_name": "ac_voltage_divisor" }, "0x0302": { "attribute_name": "ac_frequency_max" }, "0x0600": { "attribute_name": "ac_voltage_multiplier" }, "0x0604": { "attribute_name": "ac_power_multiplier" }, "0x0605": { "attribute_name": "ac_power_divisor" }, "0x0401": { "attribute_name": "ac_frequency_divisor" }, "0x0507": { "attribute_name": "rms_voltage_max" }, "0x0400": { "attribute_name": "ac_frequency_multiplier" }, "0x0000": { "attribute_name": "measurement_type" }, "0x050a": { "attribute_name": "rms_current_max" }, "0x0403": { "attribute_name": "power_divisor" }, "0x050d": { "attribute_name": "active_power_max" }, "0x050f": { "attribute_name": "apparent_power" }, "0x0402": { "attribute_name": "power_multiplier" } } }, "0xe000": { "endpoint_attribute": "tuya_is_pita_0", "attributes": {}, "unsupported_attributes": {} }, "0xe001": { "endpoint_attribute": "tuya_external_switch_type", "attributes": {}, "unsupported_attributes": {} } }, "out_clusters": { "0x000a": { "endpoint_attribute": "time", "attributes": {}, "unsupported_attributes": {} }, "0x0019": { "endpoint_attribute": "ota", "attributes": {}, "unsupported_attributes": {} } } } } } }

When trying to Reconfigure the device from UI, got reconfigure-1 reconfigure-2

alepee avatar Dec 24 '22 10:12 alepee

Hi folks, Same issue here, device paired and works good except for the metering part: image

Signature
{
    "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
    "endpoints": {
        "1": {
            "profile_id": 260,
            "device_type": "0x0100",
            "in_clusters": [
                "0x0000",
                "0x0003",
                "0x0004",
                "0x0005",
                "0x0006",
                "0x0702",
                "0x0b04",
                "0xe000",
                "0xe001"
            ],
            "out_clusters": [
                "0x000a",
                "0x0019"
            ]
        }
    },
    "manufacturer": "_TZ3000_46t1rvdu",
    "model": "TS0001",
    "class": "zhaquirks.tuya.ts000x.Switch_1G_Metering"
}
Diag
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.2.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Paris",
    "os_name": "Linux",
    "os_version": "5.15.84-v8",
    "supervisor": "2023.01.1",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "keyatome": {
      "version": "7.4.1",
      "requirements": [
        "pykeyatome==2.1.1"
      ]
    },
    "alarmo": {
      "version": "v1.9.7",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.0.2",
      "requirements": []
    },
    "garbage_collection": {
      "version": "4.10.2",
      "requirements": [
        "python-dateutil>=2.8.2"
      ]
    },
    "mawaqit": {
      "version": "2.0.0",
      "requirements": [
        "mawaqit_times_calculator>=0.0.4"
      ]
    },
    "xiaomi_miio_philipslight": {
      "version": "2022.8.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "yi_hack": {
      "version": "0.4.2",
      "requirements": []
    },
    "hacs": {
      "version": "1.30.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "sonoff": {
      "version": "3.3.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.7",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.92",
      "zigpy-deconz==0.19.2",
      "zigpy==0.53.0",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 2997,
    "manufacturer": "_TZ3000_46t1rvdu",
    "model": "TS0001",
    "name": "_TZ3000_46t1rvdu TS0001",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.tuya.ts000x.Switch_1G_Metering",
    "manufacturer_code": 4417,
    "power_source": "Mains",
    "lqi": 24,
    "rssi": null,
    "last_seen": "2023-02-09T23:29:56",
    "available": true,
    "device_type": "Router",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0100",
          "in_clusters": [
            "0x0000",
            "0x0003",
            "0x0004",
            "0x0005",
            "0x0006",
            "0x0702",
            "0x0b04",
            "0xe000",
            "0xe001"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "button.rooftop_heat_motor_identify",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "select.rooftop_heat_motor_power_on_state",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "select.rooftop_heat_motor_backlight_mode",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_active_power",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_rms_current",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_rms_voltage",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_power_factor",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_rssi",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_lqi",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "sensor.rooftop_heat_motor_summation_delivered",
        "name": "_TZ3000_46t1rvdu TS0001"
      },
      {
        "entity_id": "switch.rooftop_heat_motor_switch",
        "name": "_TZ3000_46t1rvdu TS0001"
      }
    ],
    "neighbors": [
      {
        "device_type": "Coordinator",
        "rx_on_when_idle": "On",
        "relationship": "Parent",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x0000",
        "permit_joining": "Unknown",
        "depth": "0",
        "lqi": "27"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xFDC3",
        "permit_joining": "Unknown",
        "depth": "2",
        "lqi": "81"
      }
    ],
    "routes": [],
    "endpoint_names": [
      {
        "name": "ON_OFF_LIGHT"
      }
    ],
    "user_given_name": "rooftop_heat_motor",
    "device_reg_id": "cb42f57619e633d362f68367df3d8f63",
    "area_id": "rooftop",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "ON_OFF_LIGHT",
          "id": 256
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0000": {
                "attribute_name": "zcl_version",
                "value": 3
              },
              "0x0001": {
                "attribute_name": "app_version",
                "value": 70
              },
              "0x0003": {
                "attribute_name": "hw_version",
                "value": 1
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZ3000_46t1rvdu"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0001"
              },
              "0x0007": {
                "attribute_name": "power_source",
                "value": 1
              },
              "0xfffe": {
                "attribute_name": "attr_reporting_status",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x000e": {
                "attribute_name": "product_label"
              },
              "0x0012": {
                "attribute_name": "device_enabled"
              },
              "0x0013": {
                "attribute_name": "alarm_mask"
              }
            }
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {
              "0xfffe": {
                "attribute_name": "attr_reporting_status"
              },
              "0x0000": {
                "attribute_name": "identify_time"
              }
            }
          },
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {
              "0x0000": {
                "attribute_name": "name_support",
                "value": 0
              },
              "0xfffd": {
                "attribute_name": "cluster_revision",
                "value": 2
              }
            },
            "unsupported_attributes": {}
          },
          "0x0005": {
            "endpoint_attribute": "scenes",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 1
              },
              "0x4001": {
                "attribute_name": "on_time",
                "value": 0
              },
              "0x4002": {
                "attribute_name": "off_wait_time",
                "value": 0
              },
              "0x8001": {
                "attribute_name": "backlight_mode",
                "value": 1
              },
              "0x8002": {
                "attribute_name": "power_on_state",
                "value": 2
              }
            },
            "unsupported_attributes": {
              "0x4003": {
                "attribute_name": "start_up_on_off"
              },
              "0x8004": {
                "attribute_name": "switch_mode"
              }
            }
          },
          "0x0702": {
            "endpoint_attribute": "smartenergy_metering",
            "attributes": {
              "0x0000": {
                "attribute_name": "current_summ_delivered",
                "value": 0
              },
              "0x0200": {
                "attribute_name": "status",
                "value": 0
              },
              "0x0300": {
                "attribute_name": "unit_of_measure",
                "value": 0
              },
              "0x0301": {
                "attribute_name": "multiplier",
                "value": 1
              },
              "0x0302": {
                "attribute_name": "divisor",
                "value": 100
              },
              "0x0303": {
                "attribute_name": "summation_formatting",
                "value": 0
              },
              "0x0306": {
                "attribute_name": "metering_device_type",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0400": {
                "attribute_name": "instantaneous_demand"
              },
              "0x0100": {
                "attribute_name": "current_tier1_summ_delivered"
              },
              "0x0102": {
                "attribute_name": "current_tier2_summ_delivered"
              },
              "0x0a00": {
                "attribute_name": "bill_to_date"
              },
              "0x0304": {
                "attribute_name": "demand_formatting"
              },
              "0x0104": {
                "attribute_name": "current_tier3_summ_delivered"
              },
              "0x0106": {
                "attribute_name": "current_tier4_summ_delivered"
              },
              "0x0206": {
                "attribute_name": "current_meter_id"
              },
              "0x0108": {
                "attribute_name": "current_tier5_summ_delivered"
              },
              "0x0001": {
                "attribute_name": "current_summ_received"
              },
              "0x010a": {
                "attribute_name": "current_tier6_summ_delivered"
              },
              "0x0006": {
                "attribute_name": "power_factor"
              },
              "0x0308": {
                "attribute_name": "meter_serial_number"
              },
              "0x0014": {
                "attribute_name": "supply_status"
              },
              "0x0015": {
                "attribute_name": "current_in_energy_carrier_summ"
              },
              "0x0020": {
                "attribute_name": "active_register_tier_delivered"
              },
              "0x0021": {
                "attribute_name": "active_register_tier_received"
              },
              "0x0401": {
                "attribute_name": "currentday_consump_delivered"
              },
              "0x0600": {
                "attribute_name": "current_demand_delivered"
              }
            }
          },
          "0x0b04": {
            "endpoint_attribute": "electrical_measurement",
            "attributes": {
              "0x0505": {
                "attribute_name": "rms_voltage",
                "value": 0
              },
              "0x0508": {
                "attribute_name": "rms_current",
                "value": 0
              },
              "0x050b": {
                "attribute_name": "active_power",
                "value": 0
              },
              "0x0602": {
                "attribute_name": "ac_current_multiplier",
                "value": 1
              },
              "0x0603": {
                "attribute_name": "ac_current_divisor",
                "value": 1000
              }
            },
            "unsupported_attributes": {
              "0x0300": {
                "attribute_name": "ac_frequency"
              },
              "0x0601": {
                "attribute_name": "ac_voltage_divisor"
              },
              "0x0302": {
                "attribute_name": "ac_frequency_max"
              },
              "0x0600": {
                "attribute_name": "ac_voltage_multiplier"
              },
              "0x0604": {
                "attribute_name": "ac_power_multiplier"
              },
              "0x0605": {
                "attribute_name": "ac_power_divisor"
              },
              "0x0401": {
                "attribute_name": "ac_frequency_divisor"
              },
              "0x0507": {
                "attribute_name": "rms_voltage_max"
              },
              "0x0400": {
                "attribute_name": "ac_frequency_multiplier"
              },
              "0x050a": {
                "attribute_name": "rms_current_max"
              },
              "0x0000": {
                "attribute_name": "measurement_type"
              },
              "0x0403": {
                "attribute_name": "power_divisor"
              },
              "0x050d": {
                "attribute_name": "active_power_max"
              },
              "0x0100": {
                "attribute_name": "dc_voltage"
              },
              "0x050f": {
                "attribute_name": "apparent_power"
              },
              "0x0a01": {
                "attribute_name": "line_current_ph_c"
              },
              "0x0500": {
                "attribute_name": "instantaneous_voltage"
              },
              "0x0805": {
                "attribute_name": "average_rms_over_voltage"
              },
              "0x0804": {
                "attribute_name": "ac_reactive_power_overload"
              },
              "0x0701": {
                "attribute_name": "dc_voltage_overload"
              },
              "0x0303": {
                "attribute_name": "neutral_current"
              },
              "0x0402": {
                "attribute_name": "power_multiplier"
              },
              "0x0304": {
                "attribute_name": "total_active_power"
              },
              "0x0305": {
                "attribute_name": "total_reactive_power"
              },
              "0x0502": {
                "attribute_name": "instantaneous_active_current"
              },
              "0x0803": {
                "attribute_name": "ac_active_power_overload"
              },
              "0x0800": {
                "attribute_name": "ac_alarms_mask"
              },
              "0x0306": {
                "attribute_name": "total_apparent_power"
              },
              "0x0504": {
                "attribute_name": "instantaneous_power"
              },
              "0x0a02": {
                "attribute_name": "active_current_ph_c"
              }
            }
          },
          "0xe000": {
            "endpoint_attribute": "tuya_is_pita_0",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xe001": {
            "endpoint_attribute": "tuya_external_switch_type",
            "attributes": {
              "0xd030": {
                "attribute_name": "external_switch_type",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}

@alepee I think your reconfigure issue is because of bad signal

khorchanov avatar Feb 09 '23 22:02 khorchanov

I have a TZ3000_tqlv4ug4 and I dont know if it should do metering, but HA always showing zero. How does HA know that? Does the device advertises this? Then it would be a FW issue?

zha-c78760a07ba67e9ad8097ef360da55cf-_TZ3000_tqlv4ug4 TS0001-1a0e543cc65fda7afc370cbc1a88898b.json.txt

Commifreak avatar Feb 13 '23 18:02 Commifreak

It hsould have power metering There is a 1 Ohm resistor between Nin and Nout

IMG20221204193754

The 1 Ohm is needed for getting power working the you taking it away the neutral circuit is broken.

But if you is looking is the power meting circuits not mounted so the hardware support is not on you device PCB = can and have never working.

MattWestb avatar Feb 13 '23 18:02 MattWestb

Hi, I just installed this same device and I see that you have the same problems as me with the sensors, I will try to sniff the traffic of the device to see what appears.

My sensors all give me 0.

jasimancas avatar Mar 07 '23 19:03 jasimancas

Same issue here the device is connected it worked for a while as on_off for the other entities i just disabled them (the device is not supposed to give power reading in my case any way) but after an hour or so the device stopped working from HA switch. It still receives updates meaning if any one turned it on or off manually HA can see that but controlling it from HA is not possible the device is not supposed to give power reading in my case any way thanks

screem20056 avatar Jun 21 '23 08:06 screem20056

The same issue, I think this device should be excluded from the current quirk for the Tuya TS0001 model in TS000x.py that suggests it supports energy metering. I created a custom quirk that doesn't add the power metering part for this specific device _TZ3000_46t1rvdu (from Aubess):

https://gist.github.com/erkr/a9bac40a7e3184dff2bd01f8d38d61bd

Result: image

Please note, that setting the backlight mode doesn't work either, but don't know how to remove it

erkr avatar Aug 01 '23 15:08 erkr

setting the backlight mode doesn't work either, but don't know how to remove it

The easy way would be to disable the entity.

This comes from the TuyaZBOnOffAttributeCluster cluster: https://github.com/zigpy/zha-device-handlers/blob/e87f1172496a8482ed0d68570cf41c341b0d820f/zhaquirks/tuya/init.py#L989-L996

Its hard to match all the properties from every device, so one approach is implement always most of them despite that for some/most of the devices would not work. Is more user friendly to have to disable these not working entities that to have to ask here if someone can implement their specific device case to add some functionality (like power_on_state or child_lock). Trust me that maintainers can't implement device one by one to make available only the working properties.

javicalle avatar Aug 01 '23 17:08 javicalle

@javicalle Thanks for explaining! No problem to disable the backlight option. I hope my quirk can be used as a basis to exclude the metering part for this device. Best Eric

erkr avatar Aug 01 '23 18:08 erkr

I have the same issue with the same device.

rossco555 avatar Sep 19 '23 14:09 rossco555

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 17 '24 15:03 github-actions[bot]