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

[Device Support Request] Make attribute time_left writable for tuya.ts0601_valve.ParksidePSBZS

Open BenPru opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. In the normal gui the attribute time_left (Internal device timer to turn off) is readonly. In the "Manage cluster" "timer_time_left" is writable.

Describe the solution you'd like Make the attribute time_left writable in the normal gui.

Device signature
Paste the device signature here.
Don't remove the extra line breaks outside the ``` marks.

  "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": 260,
      "device_type": "0x0000",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_htnnfasr",
  "model": "TS0601",
  "class": "zhaquirks.tuya.ts0601_valve.ParksidePSBZS"
}
Diagnostic information
Paste the diagnostic information here.
Don't remove the extra line breaks outside the ``` marks.

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2022.7.7",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.10.103-v7l+",
    "run_as_root": true
  },
  "custom_components": {
    "tinkerforge_switch": {
      "version": "2021.03.18",
      "requirements": [
        "tinkerforge>=2.1.26"
      ]
    },
    "fontawesome": {
      "version": "2.1.5",
      "requirements": []
    },
    "hacs": {
      "version": "1.26.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "multiscrape": {
      "version": "2.2.0",
      "requirements": [
        "lxml",
        "beautifulsoup4==4.9.1"
      ]
    },
    "luxtronik": {
      "version": "2022.05.04",
      "requirements": [
        "luxtronik==0.3.9"
      ]
    },
    "novus300": {
      "version": "2021.03.17",
      "requirements": [
        "tinkerforge>=2.1.24",
        "pyserial>=3.4",
        "pyserial-asyncio>=0.4"
      ]
    },
    "simpleicons": {
      "version": "v2.0.0",
      "requirements": [
        "simpleicons==6.16.0"
      ]
    },
    "luxtronik_sensor": {
      "version": "2021.11.22",
      "requirements": [
        "luxtronik==0.3.9"
      ]
    },
    "drkblutspende": {
      "version": "0.1.8",
      "requirements": [
        "feedparser>=6.0.8"
      ]
    },
    "favicon": {
      "version": "10.4",
      "requirements": []
    },
    "novus300bus": {
      "version": "2021.09.21",
      "requirements": [
        "pyserial>=3.4",
        "pyserial-asyncio>=0.6"
      ]
    },
    "iaquk": {
      "version": "1.6.2",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.31.1",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.77",
      "zigpy-deconz==0.18.0",
      "zigpy==0.47.3",
      "zigpy-xbee==0.15.0",
      "zigpy-zigate==0.9.0",
      "zigpy-znp==0.8.1"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "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"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      }
    ],
    "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": 52242,
    "manufacturer": "_TZE200_htnnfasr",
    "model": "TS0601",
    "name": "_TZE200_htnnfasr TS0601",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.tuya.ts0601_valve.ParksidePSBZS",
    "manufacturer_code": 4098,
    "power_source": "Battery or Unknown",
    "lqi": 191,
    "rssi": -70,
    "last_seen": "2022-08-01T21:36:34",
    "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": 260,
          "device_type": "0x0000",
          "in_clusters": [
            "0x0000",
            "0x0001",
            "0x0003",
            "0x0004",
            "0x0005",
            "0x0006",
            "0xef00"
          ],
          "out_clusters": [
            "0x000a",
            "0x0019"
          ]
        }
      }
    },
    "entities": [
      {
        "entity_id": "binary_sensor.tze200_htnnfasr_ts0601_c61d19fe_tuya_manufacturer_frost_lock",
        "name": "_TZE200_htnnfasr TS0601"
      },
      {
        "entity_id": "button.tze200_htnnfasr_ts0601_c61d19fe_identify",
        "name": "_TZE200_htnnfasr TS0601"
      },
      {
        "entity_id": "button.tze200_htnnfasr_ts0601_c61d19fe_tuya_manufacturer_reset_frost_lock",
        "name": "_TZE200_htnnfasr TS0601"
      },
      {
        "entity_id": "sensor.tze200_htnnfasr_ts0601_c61d19fe_tuya_manufacturer_time_left",
        "name": "_TZE200_htnnfasr TS0601"
      },
      {
        "entity_id": "sensor.tze200_htnnfasr_ts0601_c61d19fe_power",
        "name": "_TZE200_htnnfasr TS0601"
      },
      {
        "entity_id": "switch.tze200_htnnfasr_ts0601_c61d19fe_on_off",
        "name": "_TZE200_htnnfasr TS0601"
      }
    ],
    "neighbors": [],
    "endpoint_names": [
      {
        "name": "ON_OFF_SWITCH"
      }
    ],
    "user_given_name": "Bew\u00e4sserung1",
    "device_reg_id": "12013d76ee71a9d476c01fa55afe4bfa",
    "area_id": "garten",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "ON_OFF_SWITCH",
          "id": 0
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0000": {
                "attribute_name": "zcl_version",
                "value": 3
              },
              "0x0001": {
                "attribute_name": "app_version",
                "value": 86
              },
              "0x0003": {
                "attribute_name": "hw_version",
                "value": 1
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "_TZE200_htnnfasr"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "TS0601"
              },
              "0x0006": {
                "attribute_name": "date_code",
                "value": ""
              },
              "0x0007": {
                "attribute_name": "power_source",
                "value": 3
              },
              "0xfffe": {
                "attribute_name": "attr_reporting_status",
                "value": 0
              }
            },
            "unsupported_attributes": {
              "0x000d": {
                "attribute_name": "serial_number"
              },
              "0x000b": {
                "attribute_name": "product_url"
              },
              "0x0008": {
                "attribute_name": "generic_device_class"
              },
              "0x000a": {
                "attribute_name": "product_code"
              },
              "0x000e": {
                "attribute_name": "product_label"
              },
              "0x000c": {
                "attribute_name": "manufacturer_version_details"
              },
              "0x0011": {
                "attribute_name": "physical_env"
              },
              "0x0012": {
                "attribute_name": "device_enabled"
              },
              "0x0013": {
                "attribute_name": "alarm_mask"
              }
            }
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {
              "0x0000": {
                "attribute_name": "identify_time",
                "value": 0
              }
            },
            "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
              }
            },
            "unsupported_attributes": {
              "0x4000": {
                "attribute_name": "global_scene_control"
              },
              "0x4001": {
                "attribute_name": "on_time"
              },
              "0x4002": {
                "attribute_name": "off_wait_time"
              },
              "0x4003": {
                "attribute_name": "start_up_on_off"
              },
              "0xfffd": {
                "attribute_name": "cluster_revision"
              },
              "0xfffe": {
                "attribute_name": "attr_reporting_status"
              }
            }
          },
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {
              "0x0021": {
                "attribute_name": "battery_percentage_remaining",
                "value": 120
              },
              "0x0031": {
                "attribute_name": "battery_size",
                "value": 255
              },
              "0x0033": {
                "attribute_name": "battery_quantity",
                "value": 1
              }
            },
            "unsupported_attributes": {}
          },
          "0xef00": {
            "endpoint_attribute": "tuya_manufacturer",
            "attributes": {
              "0xef00": {
                "attribute_name": "mcu_version",
                "value": "1.0.0"
              },
              "0xef12": {
                "attribute_name": "timer_time_left",
                "value": 399
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}
Additional logs
Paste any additional debug logs here.
Don't remove the extra line breaks outside the ``` marks.

Additional context Add any other context or screenshots about the feature request here. grafik

BenPru avatar Aug 01 '22 19:08 BenPru

Please, can you enable the debug log level and attach the logs from operating the GUI and the cluster manager?

javicalle avatar Aug 01 '22 23:08 javicalle

I´m confused... I connected a new, never used device and I can´t set the "time_left" attribute in the cluster manager. It has 1 minute by default. grafik

But in the past I have changed it for other devices: grafik

BenPru avatar Aug 02 '22 21:08 BenPru

I believe that the default value for the time_left attribute is 1 min. You can change the value via the manage cluster attributes view.

javicalle avatar Aug 27 '22 18:08 javicalle

I believe that the default value for the time_left attribute is 1 min. You can change the value via the manage cluster attributes view.

In an older zha or ha version I was able to change it via cluster manager. But with the current zha and ha version it doesn't work. But I have other properties that I also can not change. But it were good to have a normal attribute "time_left" to change it via automation etc.

BenPru avatar Aug 29 '22 20:08 BenPru

Here is the debug output: @javicalle

2022-08-30 21:47:01.835 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-08-30 21:47:01.836 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-08-30 21:47:01.839 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xcc12>, 1, 260, 61184, b'\t\x02\x02\x00\xf7\x06\x02\x00\x04\x00\x00\x01\xf3', 0, 175, 199, 193, 1, 210, 0, -69]
2022-08-30 21:47:01.841 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] Received ZCL frame: b'\t\x02\x02\x00\xf7\x06\x02\x00\x04\x00\x00\x01\xf3'
2022-08-30 21:47:01.841 DEBUG (MainThread) [zigpy.zcl] [0xCC12: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, *is_reply=True), tsn=2, command_id=2, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-08-30 21:47:01.842 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] Decoded ZCL frame: ParksideTuyaValveManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=247, dp=6, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xf3\x01\x00\x00', *payload=499)))
2022-08-30 21:47:01.843 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] Received command 0x02 (TSN 2): set_data_response(data=TuyaCommand(status=0, tsn=247, dp=6, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xf3\x01\x00\x00', *payload=499)))
2022-08-30 21:47:01.844 DEBUG (MainThread) [zigpy.zcl] [0xCC12: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, *is_reply=True), tsn=2, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-08-30 21:47:01.845 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-08-30 21:47:01.849 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 2 under 253 request id, data: b'18020b0200'
2022-08-30 21:47:01.850 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xcc12>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09020200f706020004000001f3'
2022-08-30 21:47:01.850 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 253, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0xCC12 endpoint=1>, 260, 61184, 1, b'\x18\x02\x0b\x02\x00', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-08-30 21:47:01.853 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 253]
2022-08-30 21:47:01.863 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-08-30 21:47:01.864 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-08-30 21:47:01.867 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 253: 00
2022-08-30 21:47:01.867 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xfd 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xcc12 endpoint=1>, status: 0x00
2022-08-30 21:47:03.206 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] write_attributes --> record: Attribute(attrid=0xEF12, value=TypeValue(type=uint32_t, value=500))
2022-08-30 21:47:03.206 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] tuya_mcu_command: cluster_data=TuyaClusterData(endpoint_id=1, cluster_attr='timer_time_left', attr_value=500, expect_reply=False, manufacturer=10)
2022-08-30 21:47:03.207 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] get_dp_mapping --> found DP: 6
2022-08-30 21:47:03.207 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] from_cluster_data: 6, DPToAttributeMapping(ep_attribute='tuya_manufacturer', attribute_name='timer_time_left', dp_type=<TuyaDPType.VALUE: 2>, converter=None, dp_converter=None, endpoint_id=None)
2022-08-30 21:47:03.207 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] ztype: 500
2022-08-30 21:47:03.207 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] from_value: [4, 0, 0, 1, 244]
2022-08-30 21:47:03.207 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] raw: b'\x00\x00\x01\xf4'
2022-08-30 21:47:03.208 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] tuya_command: TuyaCommand(status=0, tsn=254, dp=6, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x01\xf4', *payload=4093706240))
2022-08-30 21:47:03.209 DEBUG (MainThread) [zigpy.zcl] [0xCC12: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, *is_reply=False), manufacturer=10, tsn=255, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-08-30 21:47:03.209 DEBUG (MainThread) [zigpy.zcl] [0xCC12:1:0xef00] Sending request: set_data(data=TuyaCommand(status=0, tsn=254, dp=6, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x00\x00\x01\xf4', *payload=4093706240)))
2022-08-30 21:47:03.210 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xCC12](TS0601): set: 500 for attr: 61202 to cluster: 61184 for ept: 1 - res: [[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]
2022-08-30 21:47:03.210 DEBUG (MainThread) [homeassistant.components.zha.api] Set attribute for: cluster_id: [61184] cluster_type: [in] endpoint_id: [1] attribute: [61202] value: [500] manufacturer: [10] response: [[[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]]]
2022-08-30 21:47:03.211 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 255 under 0 request id, data: b'050a00ff0000fe06020004000001f4'
2022-08-30 21:47:03.212 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (30, 0, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0xCC12 endpoint=1>, 260, 61184, 1, b'\x05\n\x00\xff\x00\x00\xfe\x06\x02\x00\x04\x00\x00\x01\xf4', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-08-30 21:47:03.215 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 0]
2022-08-30 21:47:03.223 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-08-30 21:47:03.224 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-08-30 21:47:03.226 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 0: 00
2022-08-30 21:47:03.227 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x00 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xcc12 endpoint=1>, status: 0x00
2022-08-30 21:47:04.329 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-08-30 21:47:04.329 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-08-30 21:47:04.331 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x9846>, 1, 260, 10, b'\x008\x00\x07\x00', 0, 175, 199, 198, 1, 210, 0, -69]
2022-08-30 21:47:04.331 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] Received ZCL frame: b'\x008\x00\x07\x00'
2022-08-30 21:47:04.332 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=56, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-08-30 21:47:04.333 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
2022-08-30 21:47:04.333 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] Received command 0x00 (TSN 56): Read_Attributes(attribute_ids=[7])
2022-08-30 21:47:04.334 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] 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, *is_reply=True), tsn=56, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-08-30 21:47:04.335 DEBUG (MainThread) [zigpy.zcl] [0x9846:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=715211224))])
2022-08-30 21:47:04.337 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 56 under 1 request id, data: b'18380107000023d841a12a'
2022-08-30 21:47:04.338 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x9846>, ep: 1, profile: 0x0104, cluster_id: 0x000a, data: b'0038000700'
2022-08-30 21:47:04.338 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (26, 1, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x9846 endpoint=1>, 260, 10, 1, b'\x188\x01\x07\x00\x00#\xd8A\xa1*', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-08-30 21:47:04.340 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 1]
2022-08-30 21:47:04.350 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-08-30 21:47:04.350 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-08-30 21:47:04.353 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 1: 00
2022-08-30 21:47:04.353 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x01 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x9846 endpoint=1>, status: 0x00
2022-08-30 21:47:04.840 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-08-30 21:47:04.841 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-08-30 21:47:04.844 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [30, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x1d69>, 3, 260, 8, b'\x18G\n\x00\x00 \x14', 0, 175, 255, 198, 1, 210, 0, -48]
2022-08-30 21:47:04.844 DEBUG (MainThread) [zigpy.zcl] [0x1D69:3:0x0008] Received ZCL frame: b'\x18G\n\x00\x00 \x14'
2022-08-30 21:47:04.845 DEBUG (MainThread) [zigpy.zcl] [0x1D69:3:0x0008] 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=71, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-08-30 21:47:04.846 DEBUG (MainThread) [zigpy.zcl] [0x1D69:3:0x0008] Decoded ZCL frame: LevelControl:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=20))])
2022-08-30 21:47:04.846 DEBUG (MainThread) [zigpy.zcl] [0x1D69:3:0x0008] Received command 0x0A (TSN 71): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=20))])
2022-08-30 21:47:04.847 DEBUG (MainThread) [zigpy.zcl] [0x1D69:3:0x0008] Attribute report received: current_level=20
2022-08-30 21:47:04.847 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1D69:3:0x0008]: received attribute: 0 update with value: 20
2022-08-30 21:47:04.848 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x1d69>, ep: 3, profile: 0x0104, cluster_id: 0x0008, data: b'18470a00002014'

Any ideas?

BenPru avatar Aug 30 '22 19:08 BenPru

I believe that the default value for the time_left attribute is 1 min. You can change the value via the manage cluster attributes view.

Yes, now I could change it via cluster manager. But it is a good idea to have it in the normal gui. At the moment I use a script for this:

alias: Bewässerungs Timer setzen
fields:
  ieee:
    example: 84:71:27:ff:fe:cf:d2:32
  minutes:
    example: 10
sequence:
  - service: zha.set_zigbee_cluster_attribute
    data:
      ieee: "{{ ieee }}"
      endpoint_id: 1
      cluster_id: 61184
      cluster_type: in
      attribute: 61201
      value: "{{ minutes }}"
mode: parallel
icon: mdi:valve
max: 10

BenPru avatar Sep 06 '22 15:09 BenPru

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 Jul 03 '23 05:07 github-actions[bot]