SirGoodenough / HA_Blueprints

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯
Other
132 stars 22 forks source link

[FR] Magic Cube Pro - Flip to side X action #22

Closed TimBroddin closed 10 months ago

TimBroddin commented 11 months ago

Which Blueprint is This Concern About / Related To? 🧯 Zigbee2MQTT Aqara Magic Cube T1-Pro CTP-R01 Xiaomi Lumi

Is your feature request related to a problem? Please describe. I'd like to be able to trigger an action when I move the dice to a side. Just have a “Flip to side 1” action instead of 5 actions.

Describe the solution you'd like 6 news actions: Flip to side 1, 2, 3, 4, 5 and 6.

Describe alternatives you've considered I've tried adding them 6 times each, but this doesn't help maintainability on the user's end.

SirGoodenough commented 10 months ago

@TimBroddin , I am working on this. However if you switch your cube to scene mode, there is a set of flip to side 1, 2, 3, 4, 5, or 6 from any already. I had added it and didn't remember. I will be adding the same to the action mode as the next release.

TimBroddin commented 10 months ago

I can't seem to find them 🫠 I've double checked and I'm on the latest version. All I see are the individual "flip to side 1 from side X":

CleanShot 2023-10-13 at 16 09 46@2x

Thanks for your effort!

SirGoodenough commented 10 months ago

They are misleadingly labeled as flip180, which is also being fixed: Screenshot_20231013_203306

In the revised BP these entries will look like this: Screenshot_20231014_110933

In addition, I have a beta version available with action flip to X from any... Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

I'd love for you to test the action flip to side from any of that. Let me know what you think.

https://github.com/SirGoodenough/HA_Blueprints/blob/flip_to_side_x_issue_22/Automations/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml

SirGoodenough commented 10 months ago

Updated to all 3 cube BP's to add functionality.

25

TimBroddin commented 10 months ago

Thanks a lot @SirGoodenough 🙏 I had testing this on my todo list for the past week, but didn't get around to it. Keep up the great work, much appreciated.