-
Notifications
You must be signed in to change notification settings - Fork 731
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
[Device Support Request] TS011F 4 plugs surge protector #1106
Comments
Sorry, my mistake, attribute power_on_state (id: 0x8002) could be changed. Maybe it has a sense to make PR with new class? |
I have 2 of them but have not testing making the quirk for it but if its working is good making one PR for it. I have making on PR for adding back light for switches but its not merged but is that working for the indicators or is they hard wired LEDs ? I like testing it but i have little much dropped in (IKEA remotes OTA is updated and having problem with old bad updates that making the new rolling back), |
Sorry i was wrong My is only 3 plugs so i must doing one new class for it later :-(( |
I think it's better to put both 3 plugs and 4 plugs in one PR later. |
I was looking little and the device is having 5 switch end points of 4 is the plugs. |
Fifth one is for USB ports. USB ports could be controlled like the plug, but both USB ports together. |
I have copy your quirk and deleted 2 EP and adding ZGPP in the replace and using the INIT from the adding extra attribute #1105 and i reading and setting the power start and also the back light but is not doing anything with the LEDs for the relay channels. |
My 4 plugs + USB has backlight settings in Tuya Smart application but any option change nothing. Per plug LEDs always show plug state, main button lights if any of the plugs is on. |
Its the most logic. |
The power last state and back light is being merged in INIT and i have making one PR for the LIDL one. |
Yes, make it please |
PR made and merged so likely its coming in HA 2021.12 :-)) |
Is your feature request related to a problem? Please describe.
I've just bought "Tuya Zigbee Smart Surge Protector, EU Outlet With 4 Plugs and 2 USB Port" https://www.aliexpress.com/item/1005001867863311.html
It basically works in ZHA but doesn't give an ability to change behavior after power outage.
Before all my experiments I've checked device in Tuya Smart application with Tuya Zigbee gateway. There such behavior works as expected, it can be set to On, Off and Restore previous state.
Describe the solution you'd like
I need an ability to change behavior after power outage.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
Additional context
I use Home Assistant Core version core-2021.11.0b0 and zha-device-handlers version 0.0.63
I've added next class to zha-device-handlers/zhaquirks/tuya/ts011f_plug.py
Have placed the updated file into custom_quirks_path and HA has recognized the device.
After that I have access to an attribute power_on_state (id: 0x8002) of TuyaZBOnOffRestorePowerCluster.
Initial value of the attribute is TZBPowerOnState.LastState. All my attempts to set value other that 0 gives None as value of the attribute. If I set 0 as value of the attribute next get returns value TZBPowerOnState.LastState.
In the log I see next:
What I may to do in order to resolve the issue?
The text was updated successfully, but these errors were encountered: