-
Notifications
You must be signed in to change notification settings - Fork 675
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
Use parameter matching instead of args
for all lighting commands
#1474
Use parameter matching instead of args
for all lighting commands
#1474
Conversation
Great work @puddly !! I have all IKEA devices plus the 2 tuya TS004F if needed but taking some time then must "rotating" little then some is only in production and other is in test setups (4 different systems). One more time GREAT WORK !! |
|
You is very true if looking more its updated in the const.py that i was missing. Do you like have quirks testing with device before merging it the the test is fixed ? |
If you want to test the ones you were checking yesterday we would definitely appreciate it. |
I must patching my HA container for the missing parms and then i can do some but its taking time setting up automatons for all scenarios an testing them the TS004F is having nearly 15 and 20 DA in the 2 device classes. Perhaps better doing some IKEA that is most used in our systems. |
Completely up to you |
TS004F tested and little more work for our Puddly ;-(((
|
just a note to kick Line 23 in d660948
|
IkeaTradfriRemote3: Somthing strange and i have tipple checking i have made the automatons OK
Is |
My mistake, those should have been deleted. I pushed a few commits that should resolve both of the issues you found. Thank you for testing out the changes!
You may need to apply the |
Thanks P and the software tests is not my problem ( ;-)) )i trying little more "hardware" testing later after doing dinner !! |
IkeaTradfriRemote3: (5Bt latest firmware)
Is very Puddly !! |
fourbtnremote:
|
Hmm, that's unexpected. So |
Its only one command for stop after move. The Open/Close is having one code for "remember" the direction and tagging the stop with the last direction. |
fourbtnremote:
Is the setp patch needed for the TS004F then i cant getting working OK ? |
Yes. Any event that uses |
Was patching the HA only with the
And the DA is looking like:
And the automation:
|
SYMFONISK:
|
SHORTCUT:
Wireless Dimmer:
Right is with OnOff ;-(( |
Last device i is having 2 Button (only in production so its also patched).
All locks good !! I have only tested the updated DA then all other was looking OK yesterday and i think its no need testing it with DA made Automatons and its pretty time consuming doing it for all devices. One more thanks to our P for ZCLR7/8 and what is bringing in the future (long wanted and very much work done) !! |
Thanks you for all the testing, I appreciate it! Regarding #1474 (comment): I recently renamed Are you manually patching quirks or are you installing it straight from this PR? pip install git+https://github.com/puddly/zha-device-handlers.git@puddly/hotfix-triggers-args-to-params |
The test HA with most IKEA controllers is contained HA 2022.4.1 under window and i was copy all quirks from your GIT by downloading one Zip to custom quirk folder and then updating them then you was updating them. If the renaming of the |
WD updated:
And both DA rotating is working OK !! |
Patched
But im missing the error in the log from my IKEA remotes that was sending extra information that is gone ;-) |
This version of zigpy fixes typos that prevent quirks from functioning
03b73cb
to
b532a61
Compare
@dmulcahey I've bumped the minimum required zigpy version to 0.42.2, matching the latest zigpy release. @MattWestb tested just about every affected device so I think this is good to go! |
If some other device is not tested and not working or i have missing some i think its better to going with it so user can start using the devices with automatons and fixing if some is coming after that was missed. Very sad user is using light controllers for HA automatons ans not as light controllers but IKEA is easy to getting and easy to using for normal users. Great work @puddly and also @dmulcahey for support for making it working !!!And now our system is running the ZCLR7.5 :-))) |
Pull Request Test Coverage Report for Build 2149729312
💛 - Coveralls |
Depends on zigpy/zigpy#953 for fixing a command name typo.
Should supersede #1471 (since the extra
, 0, 0
arguments depend on the firmware version) and also fixes a small bug introduced in #1472This PR introduces unit tests that mandate the use of
PARAMS
instead ofARGS
for all quirks that use level control or color changing commands. In the future, all of the command name string constants in quirks will be replaced with command schemas to ensure there is only place where commands and their parameters are defined.