Only one "Online"-Switch of three TRV "TV01-ZG" works

Hello,

i use three AWOW TRV “TV01-ZG” with ZHA and the Sonoff ZBDongle-P.
This TRVs have the so called “Online-Switch”, which activates the online-mode for sending the current temperature.
(Explained e.g. here: Moes TV01 TRV temp sensor issues - #7 by cicicok)

I have the problem, that i am only able to use the online-switch for ONE of the three TRVs. The other two TRVs dont switch to online-mode. When I change the status of the online-mode-switch to “off”, they don’t go back to “on” an don’t send the temperature. The switch remains “off”, until I switch it manually back to “on”.

The weird is, that always that TRV works, which I paired at last. I can remove one of the not correct working TRVs and pair it again. Then this TRV ist the working one and the other two don’t work.

Some information about the TRVs:
“manufacturer”: “_TZE200_e9ba97vf”,
“model”: “TS0601”,
“class”: “zhaquirks.tuya.ts0601_trv.ZonnsmartTV01_ZG”

Does Anybody know this Problem and can help?

Thanks in advance

Bart

I found out, that the diagnosis information of the TRVs are different.
The TRVs which don’t work, missing entries:

OK - “TRV Buro”:
NWK: 2dff = 11775

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.12.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.63-haos",
    "supervisor": "2023.11.6",
    "host_os": "Home Assistant OS 11.2",
    "docker_version": "24.0.7",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "ble_monitor": {
      "version": "12.6.3",
      "requirements": [
        "pycryptodomex>=3.18.0",
        "janus>=1.0.0",
        "aioblescan>=0.2.14",
        "btsocket>=0.2.0",
        "pyric>=0.1.6.3"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "after_dependencies": [
      "onboarding",
      "usb"
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly",
      "@TheJulianJES"
    ],
    "config_flow": true,
    "dependencies": [
      "file_upload"
    ],
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp",
      "universal_silabs_flasher"
    ],
    "requirements": [
      "bellows==0.37.1",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.107",
      "zigpy-deconz==0.22.0",
      "zigpy==0.60.0",
      "zigpy-xbee==0.20.0",
      "zigpy-zigate==0.12.0",
      "zigpy-znp==0.12.0",
      "universal-silabs-flasher==0.0.15",
      "pyserial-asyncio-fast==0.11"
    ],
    "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": "0403",
        "pid": "6015",
        "description": "*conbee*",
        "known_devices": [
          "Conbee III"
        ]
      },
      {
        "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"
        ]
      }
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_uzg-01._tcp.local.",
        "name": "uzg-01*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 11775,
    "manufacturer": "_TZE200_e9ba97vf",
    "model": "TS0601",
    "name": "_TZE200_e9ba97vf TS0601",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.tuya.ts0601_trv.ZonnsmartTV01_ZG",
    "quirk_id": null,
    "manufacturer_code": 4098,
    "power_source": "Battery or Unknown",
    "lqi": 48,
    "rssi": null,
    "last_seen": "2023-12-13T13:05:09",
    "available": true,
    "device_type": "EndDevice",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": "0x0104",
          "device_type": "0x0301",
          "input_clusters": [
            "0x0000",
            "0x0001",
            "0x0004",
            "0x0005",
            "0x0006",
            "0x000d",
            "0x000f",
            "0x0201",
            "0x0204",
            "0xef00"
          ],
          "output_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "2": {
          "profile_id": "0x0104",
          "device_type": "0x0007",
          "input_clusters": [
            "0x0006",
            "0x000d"
          ],
          "output_clusters": []
        },
        "3": {
          "profile_id": "0x0104",
          "device_type": "0x0007",
          "input_clusters": [
            "0x0006"
          ],
          "output_clusters": []
        }
      },
      "manufacturer": "_TZE200_e9ba97vf",
      "model": "TS0601"
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "sensor.trv_buro_batterie_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "binary_sensor.trv_buro_binarer_eingang_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "number.trv_buro_nummer_opened_window_temperature_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "number.trv_buro_nummer_temperature_offset_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_buro_schalter_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_buro_schalter_3",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "climate.trv_buro_thermostat_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_buro_schalter_1",
        "name": "_TZE200_e9ba97vf TS0601"
      }
    ],
    "neighbors": [],
    "routes": [],
    "endpoint_names": [
      {
        "name": "THERMOSTAT"
      },
      {
        "name": "COMBINED_INTERFACE"
      },
      {
        "name": "COMBINED_INTERFACE"
      }
    ],
    "user_given_name": "TRV B\u00fcro",
    "device_reg_id": "21c06d5b4da6f22aaa8beb2107736a04",
    "area_id": "buro",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "THERMOSTAT",
          "id": 769
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "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": 0
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          },
          "0xef00": {
            "endpoint_attribute": "tuya_manufacturer",
            "attributes": {
              "0x0223": {
                "attribute_name": "battery",
                "value": 100
              },
              "0x0265": {
                "attribute_name": "boost_duration_seconds",
                "value": 0
              },
              "0x0128": {
                "attribute_name": "child_lock",
                "value": 0
              },
              "0x0268": {
                "attribute_name": "comfort_mode_temperature",
                "value": 220
              },
              "0x0269": {
                "attribute_name": "eco_mode_temperature",
                "value": 180
              },
              "0x052d": {
                "attribute_name": "fault_detected",
                "value": 0
              },
              "0x010a": {
                "attribute_name": "frost_protection",
                "value": 0
              },
              "0x016b": {
                "attribute_name": "heating_stop",
                "value": 0
              },
              "0x0220": {
                "attribute_name": "holiday_temperature",
                "value": 170
              },
              "0x0402": {
                "attribute_name": "mode",
                "value": 1
              },
              "0x0473": {
                "attribute_name": "online",
                "value": 1
              },
              "0x0173": {
                "attribute_name": "online_set",
                "value": 0
              },
              "0x0266": {
                "attribute_name": "opened_window_temperature",
                "value": 140
              },
              "0x0210": {
                "attribute_name": "target_temperature",
                "value": 200
              },
              "0x0218": {
                "attribute_name": "temperature",
                "value": 208
              },
              "0x021b": {
                "attribute_name": "temperature_calibration",
                "value": 0
              },
              "0x041f": {
                "attribute_name": "week_format",
                "value": 0
              },
              "0x0108": {
                "attribute_name": "window_detection",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x000d": {
            "endpoint_attribute": "analog_output",
            "attributes": {
              "0x0100": {
                "attribute_name": "application_type",
                "value": 9
              },
              "0x001c": {
                "attribute_name": "description",
                "value": "Temperature Offset"
              },
              "0x0075": {
                "attribute_name": "engineering_units",
                "value": 62
              },
              "0x0041": {
                "attribute_name": "max_present_value",
                "value": 5
              },
              "0x0045": {
                "attribute_name": "min_present_value",
                "value": -5
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 0.0
              },
              "0x006a": {
                "attribute_name": "resolution",
                "value": 0.1
              }
            },
            "unsupported_attributes": {
              "0x0068": {
                "attribute_name": "relinquish_default"
              },
              "0x0055": {
                "attribute_name": "present_value"
              }
            }
          },
          "0x0201": {
            "endpoint_attribute": "thermostat",
            "attributes": {
              "0x001d": {
                "attribute_name": "alarm_mask",
                "value": 0
              },
              "0x001b": {
                "attribute_name": "ctrl_sequence_of_oper",
                "value": 2
              },
              "0x0000": {
                "attribute_name": "local_temperature",
                "value": 2080
              },
              "0x0010": {
                "attribute_name": "local_temperature_calibration",
                "value": 0
              },
              "0x0016": {
                "attribute_name": "max_heat_setpoint_limit",
                "value": 3000
              },
              "0x0015": {
                "attribute_name": "min_heat_setpoint_limit",
                "value": 500
              },
              "0x0012": {
                "attribute_name": "occupied_heating_setpoint",
                "value": 2000
              },
              "0x4002": {
                "attribute_name": "operation_preset",
                "value": 1
              },
              "0x0025": {
                "attribute_name": "programing_oper_mode",
                "value": 0
              },
              "0x001e": {
                "attribute_name": "running_mode",
                "value": 0
              },
              "0x0029": {
                "attribute_name": "running_state",
                "value": 0
              },
              "0x001c": {
                "attribute_name": "system_mode",
                "value": 4
              },
              "0x0014": {
                "attribute_name": "unoccupied_heating_setpoint",
                "value": 1700
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "local_temperature"
              },
              "0x0006": {
                "attribute_name": "abs_max_cool_setpoint_limit"
              },
              "0x0003": {
                "attribute_name": "abs_min_heat_setpoint_limit"
              },
              "0x0004": {
                "attribute_name": "abs_max_heat_setpoint_limit"
              },
              "0x0005": {
                "attribute_name": "abs_min_cool_setpoint_limit"
              },
              "0x0018": {
                "attribute_name": "max_cool_setpoint_limit"
              },
              "0x0002": {
                "attribute_name": "occupancy"
              },
              "0x0007": {
                "attribute_name": "pi_cooling_demand"
              },
              "0x0008": {
                "attribute_name": "pi_heating_demand"
              },
              "0x0017": {
                "attribute_name": "min_cool_setpoint_limit"
              },
              "0x0011": {
                "attribute_name": "occupied_cooling_setpoint"
              },
              "0x0012": {
                "attribute_name": "occupied_heating_setpoint"
              },
              "0x0013": {
                "attribute_name": "unoccupied_cooling_setpoint"
              },
              "0x0014": {
                "attribute_name": "unoccupied_heating_setpoint"
              },
              "0x001e": {
                "attribute_name": "running_mode"
              },
              "0x001c": {
                "attribute_name": "system_mode"
              },
              "0x0029": {
                "attribute_name": "running_state"
              }
            }
          },
          "0x0204": {
            "endpoint_attribute": "thermostat_ui",
            "attributes": {
              "0x0001": {
                "attribute_name": "keypad_lockout",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x000f": {
            "endpoint_attribute": "binary_input",
            "attributes": {
              "0x001c": {
                "attribute_name": "description",
                "value": "Open Window Detected"
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0055": {
                "attribute_name": "present_value"
              }
            }
          },
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {
              "0x0021": {
                "attribute_name": "battery_percentage_remaining",
                "value": 200
              },
              "0x0033": {
                "attribute_name": "battery_quantity",
                "value": 2
              },
              "0x0034": {
                "attribute_name": "battery_rated_voltage",
                "value": 15
              },
              "0x0031": {
                "attribute_name": "battery_size",
                "value": 3
              }
            },
            "unsupported_attributes": {
              "0x0020": {
                "attribute_name": "battery_voltage"
              },
              "0x0021": {
                "attribute_name": "battery_percentage_remaining"
              }
            }
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "2": {
        "device_type": {
          "name": "COMBINED_INTERFACE",
          "id": 7
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          },
          "0x000d": {
            "endpoint_attribute": "analog_output",
            "attributes": {
              "0x0100": {
                "attribute_name": "application_type",
                "value": 0
              },
              "0x001c": {
                "attribute_name": "description",
                "value": "Opened Window Temperature"
              },
              "0x0075": {
                "attribute_name": "engineering_units",
                "value": 62
              },
              "0x0041": {
                "attribute_name": "max_present_value",
                "value": 30.0
              },
              "0x0045": {
                "attribute_name": "min_present_value",
                "value": 5.0
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 14.0
              },
              "0x006a": {
                "attribute_name": "resolution",
                "value": 0.5
              }
            },
            "unsupported_attributes": {
              "0x0068": {
                "attribute_name": "relinquish_default"
              },
              "0x0055": {
                "attribute_name": "present_value"
              }
            }
          }
        },
        "out_clusters": {}
      },
      "3": {
        "device_type": {
          "name": "COMBINED_INTERFACE",
          "id": 7
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 1
              }
            },
            "unsupported_attributes": {
              "0x0000": {
                "attribute_name": "on_off"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {}
      }
    }
  }
}

NOT OK - “TRV Bad”:
NWK: 7f50 = 32592

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.12.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.63-haos",
    "supervisor": "2023.11.6",
    "host_os": "Home Assistant OS 11.2",
    "docker_version": "24.0.7",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "ble_monitor": {
      "version": "12.6.3",
      "requirements": [
        "pycryptodomex>=3.18.0",
        "janus>=1.0.0",
        "aioblescan>=0.2.14",
        "btsocket>=0.2.0",
        "pyric>=0.1.6.3"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "after_dependencies": [
      "onboarding",
      "usb"
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly",
      "@TheJulianJES"
    ],
    "config_flow": true,
    "dependencies": [
      "file_upload"
    ],
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp",
      "universal_silabs_flasher"
    ],
    "requirements": [
      "bellows==0.37.1",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.107",
      "zigpy-deconz==0.22.0",
      "zigpy==0.60.0",
      "zigpy-xbee==0.20.0",
      "zigpy-zigate==0.12.0",
      "zigpy-znp==0.12.0",
      "universal-silabs-flasher==0.0.15",
      "pyserial-asyncio-fast==0.11"
    ],
    "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": "0403",
        "pid": "6015",
        "description": "*conbee*",
        "known_devices": [
          "Conbee III"
        ]
      },
      {
        "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"
        ]
      }
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_uzg-01._tcp.local.",
        "name": "uzg-01*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 32592,
    "manufacturer": "_TZE200_e9ba97vf",
    "model": "TS0601",
    "name": "_TZE200_e9ba97vf TS0601",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.tuya.ts0601_trv.ZonnsmartTV01_ZG",
    "quirk_id": null,
    "manufacturer_code": 4098,
    "power_source": "Battery or Unknown",
    "lqi": 105,
    "rssi": null,
    "last_seen": "2023-12-13T13:05:18",
    "available": true,
    "device_type": "EndDevice",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": "0x0104",
          "device_type": "0x0301",
          "input_clusters": [
            "0x0000",
            "0x0001",
            "0x0004",
            "0x0005",
            "0x0006",
            "0x000d",
            "0x000f",
            "0x0201",
            "0x0204",
            "0xef00"
          ],
          "output_clusters": [
            "0x000a",
            "0x0019"
          ]
        },
        "2": {
          "profile_id": "0x0104",
          "device_type": "0x0007",
          "input_clusters": [
            "0x0006",
            "0x000d"
          ],
          "output_clusters": []
        },
        "3": {
          "profile_id": "0x0104",
          "device_type": "0x0007",
          "input_clusters": [
            "0x0006"
          ],
          "output_clusters": []
        }
      },
      "manufacturer": "_TZE200_e9ba97vf",
      "model": "TS0601"
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "binary_sensor.tze200_e9ba97vf_ts0601_binarer_eingang",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "climate.tze200_e9ba97vf_ts0601_thermostat",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "number.tze200_e9ba97vf_ts0601_nummer_temperature_offset",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "number.tze200_e9ba97vf_ts0601_nummer_opened_window_temperature",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "sensor.tze200_e9ba97vf_ts0601_batterie",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_bad_schalter_1",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_bad_schalter_2",
        "name": "_TZE200_e9ba97vf TS0601"
      },
      {
        "entity_id": "switch.trv_bad_schalter_3",
        "name": "_TZE200_e9ba97vf TS0601"
      }
    ],
    "neighbors": [],
    "routes": [],
    "endpoint_names": [
      {
        "name": "THERMOSTAT"
      },
      {
        "name": "COMBINED_INTERFACE"
      },
      {
        "name": "COMBINED_INTERFACE"
      }
    ],
    "user_given_name": "TRV Bad",
    "device_reg_id": "a6f9ff4329e39a4daf5f887e724203c2",
    "area_id": "bad",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "THERMOSTAT",
          "id": 769
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "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": 0
              }
            },
            "unsupported_attributes": {
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          },
          "0xef00": {
            "endpoint_attribute": "tuya_manufacturer",
            "attributes": {
              "0x0223": {
                "attribute_name": "battery",
                "value": 100
              },
              "0x0265": {
                "attribute_name": "boost_duration_seconds",
                "value": 0
              },
              "0x0128": {
                "attribute_name": "child_lock",
                "value": 0
              },
              "0x0268": {
                "attribute_name": "comfort_mode_temperature",
                "value": 250
              },
              "0x0269": {
                "attribute_name": "eco_mode_temperature",
                "value": 160
              },
              "0x052d": {
                "attribute_name": "fault_detected",
                "value": 0
              },
              "0x010a": {
                "attribute_name": "frost_protection",
                "value": 0
              },
              "0x016b": {
                "attribute_name": "heating_stop",
                "value": 0
              },
              "0x0220": {
                "attribute_name": "holiday_temperature",
                "value": 170
              },
              "0x0402": {
                "attribute_name": "mode",
                "value": 1
              },
              "0x0473": {
                "attribute_name": "online",
                "value": 1
              },
              "0x0173": {
                "attribute_name": "online_set",
                "value": 0
              },
              "0x0266": {
                "attribute_name": "opened_window_temperature",
                "value": 140
              },
              "0x0210": {
                "attribute_name": "target_temperature",
                "value": 160
              },
              "0x0218": {
                "attribute_name": "temperature",
                "value": 218
              },
              "0x021b": {
                "attribute_name": "temperature_calibration",
                "value": 0
              },
              "0x041f": {
                "attribute_name": "week_format",
                "value": 0
              },
              "0x0108": {
                "attribute_name": "window_detection",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x000d": {
            "endpoint_attribute": "analog_output",
            "attributes": {
              "0x0100": {
                "attribute_name": "application_type",
                "value": 9
              },
              "0x001c": {
                "attribute_name": "description",
                "value": "Temperature Offset"
              },
              "0x0075": {
                "attribute_name": "engineering_units",
                "value": 62
              },
              "0x0041": {
                "attribute_name": "max_present_value",
                "value": 5
              },
              "0x0045": {
                "attribute_name": "min_present_value",
                "value": -5
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 0.0
              },
              "0x006a": {
                "attribute_name": "resolution",
                "value": 0.1
              }
            },
            "unsupported_attributes": {
              "0x0068": {
                "attribute_name": "relinquish_default"
              }
            }
          },
          "0x0201": {
            "endpoint_attribute": "thermostat",
            "attributes": {
              "0x001d": {
                "attribute_name": "alarm_mask",
                "value": 0
              },
              "0x001b": {
                "attribute_name": "ctrl_sequence_of_oper",
                "value": 2
              },
              "0x0000": {
                "attribute_name": "local_temperature",
                "value": 2180
              },
              "0x0010": {
                "attribute_name": "local_temperature_calibration",
                "value": 0
              },
              "0x0016": {
                "attribute_name": "max_heat_setpoint_limit",
                "value": 3000
              },
              "0x0015": {
                "attribute_name": "min_heat_setpoint_limit",
                "value": 500
              },
              "0x0012": {
                "attribute_name": "occupied_heating_setpoint",
                "value": 1600
              },
              "0x4002": {
                "attribute_name": "operation_preset",
                "value": 1
              },
              "0x0025": {
                "attribute_name": "programing_oper_mode",
                "value": 0
              },
              "0x001e": {
                "attribute_name": "running_mode",
                "value": 0
              },
              "0x0029": {
                "attribute_name": "running_state",
                "value": 0
              },
              "0x001c": {
                "attribute_name": "system_mode",
                "value": 4
              },
              "0x0014": {
                "attribute_name": "unoccupied_heating_setpoint",
                "value": 1700
              }
            },
            "unsupported_attributes": {
              "0x0006": {
                "attribute_name": "abs_max_cool_setpoint_limit"
              },
              "0x0003": {
                "attribute_name": "abs_min_heat_setpoint_limit"
              },
              "0x0004": {
                "attribute_name": "abs_max_heat_setpoint_limit"
              },
              "0x0005": {
                "attribute_name": "abs_min_cool_setpoint_limit"
              },
              "0x0018": {
                "attribute_name": "max_cool_setpoint_limit"
              },
              "0x0017": {
                "attribute_name": "min_cool_setpoint_limit"
              }
            }
          },
          "0x0204": {
            "endpoint_attribute": "thermostat_ui",
            "attributes": {
              "0x0001": {
                "attribute_name": "keypad_lockout",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x000f": {
            "endpoint_attribute": "binary_input",
            "attributes": {
              "0x001c": {
                "attribute_name": "description",
                "value": "Open Window Detected"
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {
              "0x0021": {
                "attribute_name": "battery_percentage_remaining",
                "value": 200
              },
              "0x0033": {
                "attribute_name": "battery_quantity",
                "value": 2
              },
              "0x0034": {
                "attribute_name": "battery_rated_voltage",
                "value": 15
              },
              "0x0031": {
                "attribute_name": "battery_size",
                "value": 3
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "2": {
        "device_type": {
          "name": "COMBINED_INTERFACE",
          "id": 7
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          },
          "0x000d": {
            "endpoint_attribute": "analog_output",
            "attributes": {
              "0x0100": {
                "attribute_name": "application_type",
                "value": 0
              },
              "0x001c": {
                "attribute_name": "description",
                "value": "Opened Window Temperature"
              },
              "0x0075": {
                "attribute_name": "engineering_units",
                "value": 62
              },
              "0x0041": {
                "attribute_name": "max_present_value",
                "value": 30.0
              },
              "0x0045": {
                "attribute_name": "min_present_value",
                "value": 5.0
              },
              "0x0055": {
                "attribute_name": "present_value",
                "value": 14.0
              },
              "0x006a": {
                "attribute_name": "resolution",
                "value": 0.5
              }
            },
            "unsupported_attributes": {
              "0x0068": {
                "attribute_name": "relinquish_default"
              }
            }
          }
        },
        "out_clusters": {}
      },
      "3": {
        "device_type": {
          "name": "COMBINED_INTERFACE",
          "id": 7
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {
              "0x0000": {
                "attribute_name": "on_off",
                "value": 1
              }
            },
            "unsupported_attributes": {
              "0x4003": {
                "attribute_name": "start_up_on_off"
              }
            }
          }
        },
        "out_clusters": {}
      }
    }
  }
}

When I switch the broken Online-Switch of “TRV Bad” the Debug-Log shows, that HA triggers the wrong TRV:

2023-12-13 15:18:12.167 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2DFF](TS0601): Device seen - marking the device available and resetting counter
2023-12-13 15:18:12.167 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2DFF](TS0601): Update device availability -  device available: True - new availability: True - changed: False
2023-12-13 15:18:12.379 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2023-12-13 15:18:12.380 DEBUG (MainThread) [zhaquirks.tuya.ts0601_trv] CALLING WRITE FROM COMMAND
2023-12-13 15:18:12.380 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), manufacturer=4098, tsn=102, command_id=0, *direction=<Direction.Server_to_Client: 0>)
2023-12-13 15:18:12.380 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Sending request: set_data(param=Command(status=0, tsn=102, command_id=371, function=0, data=0))
2023-12-13 15:18:12.380 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(timestamp=datetime.datetime(2023, 12, 13, 14, 18, 12, 380802, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2DFF), dst_ep=1, source_route=None, extended_timeout=False, tsn=102, profile_id=260, cluster_id=61184, data=Serialized[b'\x05\x02\x10f\x00\x00fs\x01\x00\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-12-13 15:18:12.381 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x2DFF), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=102, Options=<TransmitOptions.ACK_REQUEST|SUPPRESS_ROUTE_DISC_NETWORK: 48>, Radius=0, Data=b'\x05\x02\x10\x66\x00\x00\x66\x73\x01\x00\x01\x00')
2023-12-13 15:18:12.389 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataRequestExt.Rsp(Status=<Status.SUCCESS: 0>)
2023-12-13 15:18:12.733 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.SUCCESS: 0>, Endpoint=1, TSN=102)
2023-12-13 15:18:12.734 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x2DFF, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=51, SecurityUse=<Bool.false: 0>, TimeStamp=11919584, TSN=0, Data=b'\x0C\x02\x10\x66\x0B\x00\x00', MacSrcAddr=0x2DFF, MsgResultRadius=29)
2023-12-13 15:18:12.734 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2023, 12, 13, 14, 18, 12, 734524, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2DFF), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\x0c\x02\x10f\x0b\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=51, rssi=None)
2023-12-13 15:18:12.734 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Received ZCL frame: b'\x0c\x02\x10f\x0b\x00\x00'
2023-12-13 15:18:12.735 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), manufacturer=4098, tsn=102, command_id=11, *direction=<Direction.Client_to_Server: 1>)
2023-12-13 15:18:12.735 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Decoded ZCL frame: ZONNSMARTManufCluster:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2023-12-13 15:18:12.736 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, 'UPDATE devices_v12\n                    SET last_seen=:ts\n                    WHERE ieee=:ieee AND :ts - last_seen > :min_update_delta', {'ts': 1702477092.734524, 'ieee': 50:32:5f:ff:fe:41:7c:a0, 'min_update_delta': 30.0})
2023-12-13 15:18:12.738 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, 'UPDATE devices_v12\n                    SET last_seen=:ts\n                    WHERE ieee=:ieee AND :ts - last_seen > :min_update_delta', {'ts': 1702477092.734524, 'ieee': 50:32:5f:ff:fe:41:7c:a0, 'min_update_delta': 30.0}) completed
2023-12-13 15:18:12.739 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>)
2023-12-13 15:18:12.739 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>) completed
2023-12-13 15:18:12.740 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, '\n            INSERT INTO attributes_cache_v12\n            VALUES (:ieee, :endpoint_id, :cluster_id, :attrid, :value, :timestamp)\n                ON CONFLICT (ieee, endpoint_id, cluster, attrid) DO UPDATE\n                SET value=excluded.value, last_updated=excluded.last_updated\n                WHERE\n                    value != excluded.value\n                    OR :timestamp - last_updated > :min_update_delta\n            ', {'ieee': 84:fd:27:ff:fe:2d:eb:1b, 'endpoint_id': 3, 'cluster_id': 6, 'attrid': 0, 'value': <Bool.false: 0>, 'timestamp': 1702477092.735684, 'min_update_delta': 30.0})
2023-12-13 15:18:12.740 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, '\n            INSERT INTO attributes_cache_v12\n            VALUES (:ieee, :endpoint_id, :cluster_id, :attrid, :value, :timestamp)\n                ON CONFLICT (ieee, endpoint_id, cluster, attrid) DO UPDATE\n                SET value=excluded.value, last_updated=excluded.last_updated\n                WHERE\n                    value != excluded.value\n                    OR :timestamp - last_updated > :min_update_delta\n            ', {'ieee': 84:fd:27:ff:fe:2d:eb:1b, 'endpoint_id': 3, 'cluster_id': 6, 'attrid': 0, 'value': <Bool.false: 0>, 'timestamp': 1702477092.735684, 'min_update_delta': 30.0}) completed
2023-12-13 15:18:12.741 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>)
2023-12-13 15:18:12.742 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>) completed
2023-12-13 15:18:12.814 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=61184, SrcAddr=0x2DFF, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=51, SecurityUse=<Bool.false: 0>, TimeStamp=11925320, TSN=0, Data=b'\x09\x48\x01\x00\x66\x73\x01\x00\x01\x00', MacSrcAddr=0x2DFF, MsgResultRadius=29)
2023-12-13 15:18:12.815 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(timestamp=datetime.datetime(2023, 12, 13, 14, 18, 12, 815259, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2DFF), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\tH\x01\x00fs\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=51, rssi=None)
2023-12-13 15:18:12.815 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Received ZCL frame: b'\tH\x01\x00fs\x01\x00\x01\x00'
2023-12-13 15:18:12.815 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=72, command_id=1, *direction=<Direction.Client_to_Server: 1>)
2023-12-13 15:18:12.816 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Decoded ZCL frame: ZONNSMARTManufCluster:get_data(param=Command(status=0, tsn=102, command_id=371, function=0, data=[1, 0]))
2023-12-13 15:18:12.816 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Received command 0x01 (TSN 72): get_data(param=Command(status=0, tsn=102, command_id=371, function=0, data=[1, 0]))
2023-12-13 15:18:12.816 DEBUG (MainThread) [zhaquirks.tuya] [0x2dff:1:0xef00] Received value [0] for attribute 0x0173 (command 0x0001)
2023-12-13 15:18:12.816 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=72, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>)
2023-12-13 15:18:12.816 DEBUG (MainThread) [zigpy.zcl] [0x2DFF:1:0xef00] Sending reply: Default_Response(command_id=1, status=<Status.SUCCESS: 0>)
2023-12-13 15:18:12.817 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(timestamp=datetime.datetime(2023, 12, 13, 14, 18, 12, 817136, tzinfo=datetime.timezone.utc), src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2DFF), dst_ep=1, source_route=None, extended_timeout=False, tsn=72, profile_id=260, cluster_id=61184, data=Serialized[b'\x18H\x0b\x01\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-12-13 15:18:12.817 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x2DFF), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=61184, TSN=72, Options=<TransmitOptions.ACK_REQUEST|SUPPRESS_ROUTE_DISC_NETWORK: 48>, Radius=0, Data=b'\x18\x48\x0B\x01\x00')
2023-12-13 15:18:12.817 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, 'UPDATE devices_v12\n                    SET last_seen=:ts\n                    WHERE ieee=:ieee AND :ts - last_seen > :min_update_delta', {'ts': 1702477092.815259, 'ieee': 50:32:5f:ff:fe:41:7c:a0, 'min_update_delta': 30.0})
2023-12-13 15:18:12.818 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, 'UPDATE devices_v12\n                    SET last_seen=:ts\n                    WHERE ieee=:ieee AND :ts - last_seen > :min_update_delta', {'ts': 1702477092.815259, 'ieee': 50:32:5f:ff:fe:41:7c:a0, 'min_update_delta': 30.0}) completed
2023-12-13 15:18:12.819 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>)
2023-12-13 15:18:12.819 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>) completed
2023-12-13 15:18:12.819 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, '\n            INSERT INTO attributes_cache_v12\n            VALUES (:ieee, :endpoint_id, :cluster_id, :attrid, :value, :timestamp)\n                ON CONFLICT (ieee, endpoint_id, cluster, attrid) DO UPDATE\n                SET value=excluded.value, last_updated=excluded.last_updated\n                WHERE\n                    value != excluded.value\n                    OR :timestamp - last_updated > :min_update_delta\n            ', {'ieee': 50:32:5f:ff:fe:41:7c:a0, 'endpoint_id': 1, 'cluster_id': 61184, 'attrid': 371, 'value': 0, 'timestamp': 1702477092.816514, 'min_update_delta': 30.0})
2023-12-13 15:18:12.819 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7fe03d2f7880>, '\n            INSERT INTO attributes_cache_v12\n            VALUES (:ieee, :endpoint_id, :cluster_id, :attrid, :value, :timestamp)\n                ON CONFLICT (ieee, endpoint_id, cluster, attrid) DO UPDATE\n                SET value=excluded.value, last_updated=excluded.last_updated\n                WHERE\n                    value != excluded.value\n                    OR :timestamp - last_updated > :min_update_delta\n            ', {'ieee': 50:32:5f:ff:fe:41:7c:a0, 'endpoint_id': 1, 'cluster_id': 61184, 'attrid': 371, 'value': 0, 'timestamp': 1702477092.816514, 'min_update_delta': 30.0}) completed
2023-12-13 15:18:12.820 DEBUG (Thread-4) [aiosqlite] executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>)
2023-12-13 15:18:12.820 DEBUG (Thread-4) [aiosqlite] operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7fe03d2f7880>) completed
2023-12-13 15:18:12.824 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataRequestExt.Rsp(Status=<Status.SUCCESS: 0>)
2023-12-13 15:18:13.032 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.SUCCESS: 0>, Endpoint=1, TSN=72)

Is that a bug in Home Assistant?

Without any investigation I think the problem was there from the begginng. I saw this behaviour few months after I created this quirk. Because at that time I had only one TRV.

You can see on github, that the development goes further. Somebody implemented the week scheduler, but it is still a concept. https://github.com/zigpy/zha-device-handlers/issues/1027

EDIT: here is a solution, but I wasn’t merged and I don’t think that it ever will be. [Device Support Request] TS0601 _TZE200_hue3yfsn / TV02 Zigbee TRV · Issue #1027 · zigpy/zha-device-handlers · GitHub Coding for ZHA is bit mess.

Thanks for your reply.

In the link of you I found another link to this:
https://github.com/zigpy/zha-device-handlers/pull/1961
“[…] FIx OnOff clusters when you have multiple TRV (only the last one added was working) […]”

Could that be my solution in one of the next HA-versions?

Yes. First the 1961 needs to be merged, then this one could be merged also Add support for Ts0601 trv to ZHA by gmsoft-tuxicoman · Pull Request #87546 · home-assistant/core · GitHub After that it will be published in future HA release.

I think, that are good news for me :slight_smile:
I will wait and hope, that I don’t have to wait too long.

Thank You again for the informations.