-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing SEA801 Thermostat setpoint - attr_write fails where GUI works fine #275
Comments
It's a manufacturer cluster and you probably need to set the manufacturer id as well in this case. FYI: The GUI is provided by ZHA and while zha-toolkit uses zha it "hacks" into the API to bypass some limitations or autmatic settings - in this case that is likely the manufacturer id you need to set manually. At some point this might have been added automatically, or when the manf argument has a certain value. |
Thanks for the quick response. Its the same problem and result when I use the alternative non-manufacturer (?) parameter as follows: Do you know how I can find out the manf value I need to supply? |
You can do a device scan, an possibly find the details in the device information provided by ZHA (see 3 vertical dots). (I am on a tight time schedule, so I can't check in detail). |
When you download the diagnostics for a device you'll fined "menufacturer_code" for devices in the json file: "data": {
"ieee": "**REDACTED**",
"nwk": 38757,
"manufacturer": "_TZ3000_gbm10jnj",
"model": "TS0043",
"name": "_TZ3000_gbm10jnj TS0043",
"quirk_applied": true,
"quirk_class": "zhaquirks.tuya.ts0043.TuyaSmartRemote0043TO",
"quirk_id": null,
"manufacturer_code": 4098, When you use zha-toolkit to perform a device scan, you'll also find the manufacturer code: {
"ieee": "f4:b3:b1:ff:fe:dd:77:28",
"nwk": "0x7d7b",
"model": "SIN-4-FP-21",
"manufacturer": "NodOn",
"manufacturer_id": "0x4747", You can call the device scan from developer tools > services. The result will be shown in the UI and you can find a fie in the scans directory under config. |
@mdeweerd The clusters (can being all or only some) on tuya MCU (or mixed real Zigbee and MCU) devices is virtual then all (MCU) commands is piped thru tuya cluster thru the quirks that ZHA have loaded for it to the MCU. Shall working OK but its little more between the normal standard Zigbee stuff and the tuya MCU. |
Hi,
I am trying to set the setpoint temperature of my Saswell SEA801-Z01 Zigbee thermostat.
(Reason: the setpoint is not exposed to Home Assistant in a way that would allow for automations to control it)
Through the GUI's "Manage Zigbee device" I can select and read as well as write the correct parameter:
Reading works nicely:
Writing too (confirmed, as the value changes visibly on the device itself):
Through the GUI "Developer tools" -> actions, I am using the zha_toolkit call to read the setpoint as follows:
with the following result:
But when I use the following to write a new value, I do get the same error no matter what:
with the following result:
As far as I understand, the error / status 134 means "unsupported attribute", but I do not change that attribute at all.
The write result even confirms the same attr_type = 0x23 (uint32) being used.
Manually setting it to the same type does not change the outcome. Setting a different type (33 == "0x21" == uint16) though generated an error message "type determined from read different from requested: 0x23 <> 0x267"
--> why it shows the new set type to be 0x267 I do not know! (This is the value from the attr_id ... it's a bug in the logging?)
It works with the GUI, so what am I doing wrong here?
Or could this be some sort of bug?
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: