-
Notifications
You must be signed in to change notification settings - Fork 725
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
Adding some more tuya dimmers #1010
Conversation
Pull Request Test Coverage Report for Build 1166966837
💛 - Coveralls |
Hello Matt,
Best regards & thank you |
Your device zha-device-handlers/zhaquirks/tuya/ts0601_dimmer.py Lines 36 to 44 in bbc69c0
If its working is the system loading the quirk for your device and working and if not we need little more help. |
Good News, local Quirk is not destroying anything and the HA restarts well.
But entities are not shown, do i have to repeat connection to zigbee network. (deleting device, and reconnecting it with local quirk?)
Please have a look at the screenshots below
This is he signature now, after reboot HA (i did not delete the device yet, (im not at home and cannot pair at the moment)
{
"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": "0x0051",
"in_clusters": [
"0x0000",
"0x0004",
"0x0005",
"0xef00"
],
"out_clusters": [
"0x000a",
"0x0019"
]
},
"242": {
"profile_id": 41440,
"device_type": "0x0061",
"in_clusters": [],
"out_clusters": [
"0x0021"
]
}
},
"manufacturer": "_TZE200_3p5ydos3",
"model": "TS0601",
"class": "zigpy.device.Device"
}
|
The last line in the device signature You need adding it in the signature like this: zha-device-handlers/zhaquirks/tuya/ts011f_plug.py Lines 117 to 128 in bbc69c0
and also (not inportent for the function but shall being made) in the replacement: zha-device-handlers/zhaquirks/tuya/ts011f_plug.py Lines 117 to 128 in bbc69c0
Look how its made in the TS011F and doing the same and keep the lines and indenting it shall working OK. If you like fixing the formation use black playground https://black.vercel.app/. If you is only having one type you can doing the changed in the same device class for testing. |
HE COMPLAINS ABOUT GREEN POWER PROXY NOT DEFINED HAVE ALOOK +Logger: homeassistant.config_entries Error setting up entry USB Serial, s/n: n/a for zha |
FYI that you have an idea what the product does look like By the way i dont know it it is ok to post external links to manufacuters. if not please remove.. ADDDITIONALLY and i have one 1 gang switch mains powered they are from different manufacturers? at least the electronic inside |
@itsolon The zha-device-handlers/zhaquirks/tuya/ts011f_plug.py Lines 5 to 14 in bbc69c0
Only the new line added in the general and the system shall not complaining. I like the design of the touch dimmer switches but they is using tuya MCU / DP commands and cant being bound to light groups so its not working then the system is down so its on no go for my production system. Some switches with no neutral (or optional neutral) is end devices and cant routing traffic without doing one new firmware for the device that we cant (normally) doing. |
Good News , i have the switch and the brightness slider
But „object is not subscriptable“
i can change on the device itself and i see changes inside HA
but if i try to change via HA then Error and i cannot change.
{
"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",
"0x0004",
"0x0005",
"0x0006",
"0x0008",
"0xef00"
],
"out_clusters": [
"0x000a",
"0x0019"
]
},
"242": {
"profile_id": 41440,
"device_type": "0x0061",
"in_clusters": [],
"out_clusters": [
"0x0021"
]
}
},
"manufacturer": "_TZE200_3p5ydos3",
"model": "TS0601",
"class": "ts0601_dimmer.TuyaSingleSwitchDimmer"
|
That is great !! @javicalle is working on some problematic tuya dimmers but hi have not getting all in the right place but i think its only matter or time. look on this issue #1302 and see how its going and then its working we can trying if you device is working the same way and adding it if its working OK or diggig deeper for getting yours working 2. |
Adding more tuya dimmers:
And fixes #964