Skip to content
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

Added deCONZ Ikea Tradfri Remote and Aqara Wireless Mini Switch #36

Merged
merged 6 commits into from
Jan 1, 2023

Conversation

splattner
Copy link
Contributor

Adding:

  • Ikea Tradfri Remote
  • Aqara Wireless Mini Switch

via the deCONZ integration

@Sian-Lee-SA
Copy link
Owner

Thanks for contributing, unfortunately you created a pull request just as I'm doing naming conventions and cleanup to keep things consistent between blueprints and the Switch Manager interaction.

Could you just do a quick review of the README and reflect your blueprint to follow the naming and order conventions under Actions?

Could you also use detailed images instead of a diagram as this is more intuititive and appealing... I've found a couple of images that would fit perfectly.

https://med.greatecno.com/612932/xiaomi-aqara-wireless-mini-switch.jpg - This one would need to be cropped so there is no overhanging background. Also the blueprint for this does not need to define a shape or its position etc as it's only a single button. Lastly just mask out the background to be transparent

https://i.ytimg.com/vi/nk4D_cxjANs/maxresdefault.jpg - You can just crop the left remote and make the background transparent

Thanks!

@splattner
Copy link
Contributor Author

sure, let me look into it

@splattner
Copy link
Contributor Author

alright, I hope I got everything. I also changed the other deconz blueprints. Although the name have changes and I guess its breaking?
For the images, I took the existing SVG and just filled the background within the button with white, outside still transparent. Imho, they look nicer like this, instead of using existing photos. Hope you agree :)

@splattner splattner force-pushed the deconz_more_devices branch from 0e7358d to f986638 Compare January 1, 2023 15:22
@splattner
Copy link
Contributor Author

ah, messed up the event ids while copy/paste the new action names. give me a sec 🙈

@splattner splattner force-pushed the deconz_more_devices branch from f986638 to 6482c61 Compare January 1, 2023 15:30
@splattner
Copy link
Contributor Author

alright messup is fixed

@Sian-Lee-SA
Copy link
Owner

Oh sorry, I didn't realise you did the deconz aqara's lol... I just updated them about 20 minutes ago.

@splattner
Copy link
Contributor Author

no worries, let me merge your changes

@Sian-Lee-SA
Copy link
Owner

While it might look nicer when everything else looks the same, it's just that all images are pictures so it looks a bit weird when you see a diagram drawing then a normal photo picture when selecting a blueprint imo. Not against the style just doesn''t really blend with the current images already being used.... I did want to point out the author for the aqara's (just coincidence that it happened to be you), that my changes would affect your setups once you decide to update the integration. So just be mindful of that. Also adding extra buttons or actions and remove them would invalidate users configs that are already using those blueprints so it's come to a point where things need to be set in stone and making sure the naming and stuff is adhered to to avoid future f*ck arounds.

@Sian-Lee-SA
Copy link
Owner

I'm still happy to merge with the images how you have them because that isn't set in stone, it's just that if a picture version happens to be merged the it will take preference, Nothing against it, it's just that pictures are take precedence over diagrams. sorry.

@Sian-Lee-SA
Copy link
Owner

Also there was an oversight in one of your aqara blueprints that I picked up when renaming everything and you accidently had an event for an action referencing the wrong button... Also should be press 2x and not press x2... fix that up then I can merge

@Sian-Lee-SA
Copy link
Owner

Sian-Lee-SA commented Jan 1, 2023

Just realised you used underscores for your file names... Now I have to fix that up... it should be '-'. This will also mean that the new file names will invalidate your switches if it can't find those blueprints... so You can keep your version with the underscores and your switches will be fine. It's just when you update, there will be the same blueprints as the updated ones will have a different file name,

@splattner
Copy link
Contributor Author

sure, thats up to you. In my opinion, I don't really see a big style change, looks good in my opinion. So I won't spend more time in redoing the images, but its totally fine for me if someone want to.

Screenshot from 2023-01-01 17-03-17

press 2x and not press x2 is fixed and let me fix the underscore also.

No worries abount my setup, I will just redo my switch, Currently only 2 are created.

@splattner
Copy link
Contributor Author

and the wrong referencing button in ikea tradfri is also fixed.
hope I got everything now and this is ready

@Sian-Lee-SA
Copy link
Owner

Screenshot 2023-01-02 025832

Definitely looks better against your black background I must admit... Will check the changes now

@Sian-Lee-SA
Copy link
Owner

Thanks heaps, Sorry to give you the run around but you did help me build a pull request template checkbox so been a big help regardless...

It still shows on line 15 in deconz-aqara-wireless-mini-switch.yaml press x2 but I'm happy to change that myself. Won't break anything.

CHEERS!

@Sian-Lee-SA Sian-Lee-SA changed the title Add Ikea Tradfri Remote and Aqara Wireless Mini Switch via deCONZ Added deCONZ Ikea Tradfri Remote and Aqara Wireless Mini Switch Jan 1, 2023
@Sian-Lee-SA Sian-Lee-SA merged commit 1561b05 into Sian-Lee-SA:master Jan 1, 2023
@splattner
Copy link
Contributor Author

Awesome, thank you for this great component, glad I could help and thx for fixing the last x2 ;)

@splattner splattner deleted the deconz_more_devices branch January 1, 2023 16:37
@Sian-Lee-SA
Copy link
Owner

I'm curious to your TRADFRI remote blueprint... Seems the middle button has one action without hold but I just had a user copy your blueprint and adapted for Zigbee2MQTT yet his version has an extra action (hold) action for the middle button. Did you miss this or does deconz not support a hold action for the middle button?

@splattner
Copy link
Contributor Author

No, when I listen to the events in HA from deCONZ I only get the 1002 event (short release). Seems deCONZ does not support the hold action for the middle button. Not sure tough why, this would need more investigation in the deCONZ codebase I guess.

@Sian-Lee-SA
Copy link
Owner

Oh ok, all good. I actually loved deCONZ but resorted to Zigbee2MQTT in the end because of missing things, it's ashame thought because I prefer deCONZ over Zigbee2MQTT regarding everything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants