SirGoodenough / HA_Blueprints

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

HA_Blueprints/Automations /Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.md #36

Closed Lesboy72 closed 3 months ago

Lesboy72 commented 6 months ago

HA_Blueprints/Automations /Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.md

Hi, I have installed the subject Blueprint. I enter a trial automatism as in the picture, if I run it next to the specified part, it works. In the drop-down menu in the upper right corner of the screen, I don't think the run anymore works. Last run indicates that it has never been run before and cannot be run manually. If I create automation with the cube elsewhere, either with the controlled device or with MQTT, it works. But the opportunity is much more than your development, which is why I insist on you. Thank you for looking at it: László aqara aqara2 aqara3

SirGoodenough commented 6 months ago

I see your screenshots of the automation UI and those are no help to me. I don't have any idea what is going on. The text in the top of the bug report needs to be filled in where appropriate. Don't have to fill them all in, but giving me YAML to troubleshoot and versions of things are needed.

Google Translate to help you out...

A Google Fordító segít...

Látom az automatizálási felhasználói felületről készült képernyőképeit, és ezek nem segítenek nekem. Fogalmam sincs, mi folyik itt. A hibajelentés tetején található szöveget ki kell tölteni, ahol szükséges. Nem kell mindet kitölteni, de a YAML-t megadom a hibaelhárításhoz, és szükség van a dolgok verziójára.

Alapszabályok Mielőtt jelentene egy „Hibát”, győződjön meg arról, hogy teljesen elolvasta a mellékelt *.md fájlt vagy a Community Exchange bejegyzés főfájlját, és követte az ott előírt összes beállítást. Ez azért fontos, mert ha nem tartják be ezeket az utasításokat, valószínűleg rossz napja lesz, és kénytelen lesz felvenni velem a kapcsolatot segítségért. Nem mintha nem akarok segíteni, de a személyes interakció eltart egy ideig, amíg válaszolok, és általában nem produktív.

A problémák nem helye a kérdések feltevésének, ehhez tekintse meg az alábbi Discord-linkeket. Ez a törött dolgokra való. Ha nem vagy biztos benne, KÉRJÜK, menj a Discord oldalra, és először tedd fel a kérdést.

Ha van általános kérdése, szívesebben teszem fel a Discordon. Pingelj a csatornán, nem gyakran válaszolok a DM-ekre... @sirgoodenough

Figyelemmel kísérem az egyes Blueprintekhez kapcsolódó Blueprint Exchange-bejegyzéseket is, és ott válaszolok.

A Discordon 3 helyet figyelek, preferenciális sorrendben:

Személyes Discord Blueprints csatornám: https://discord.gg/HwFKS4my8Y DrZzs Blueprint csatorna: https://discord.gg/jvk7yEFyX3 Homa Assistant Blueprint Channel: https://discord.gg/jPPvqsWwzh

Ha úgy gondolja, hogy hibát talált, ahol a szöveg rosszra mutat, vagy valami elromlott, folytassa itt. Ha szolgáltatáskérelme van, tekintse meg a másik problémasablont...

Melyik tervvel kapcsolatos/amelyhez kapcsolódik? Link vagy a Blueprint neve.

Írja le a hibát Világos és tömör leírás arról, hogy mi a hiba.

Reprodukció A viselkedés reprodukálásának lépései:

  1. Lépjen a "..." elemre
  2. Kattintson a "...."
  3. Görgessen le a '....'
  4. Lásd a hibát

Elvárt viselkedés Világos és tömör leírás arról, hogy mire számítottál.

Képernyőképek Ha lehetséges, adjon hozzá képernyőképeket a probléma magyarázatához.

A tervrajz melyik verziójában van a probléma? (A Tervrajz címe tartalmazza a revíziót.) [Nyissa meg a Home Assistant példányát, és mutassa meg tervrajzait.](https://my.home-assistant.io/redirect/blueprints /)

Mi volt a Home Assistant Core verziója? [Nyissa meg a Home Assistant-példányt, és jelenítse meg a rendszer állapotára vonatkozó információkat.](https://my.home-assistant.io/ redirect/system_health/)

Milyen típusú telepítést futtat? [Nyissa meg a Home Assistant-példányt, és jelenítse meg a rendszer állapotára vonatkozó információkat.](https://my.home-assistant.io/ redirect/system_health/)

YAML-részletek, BELEÉRTVE a forgatókönyvet vagy az automatizálást, amelyet a terv meghívására építettél (Használjon 3 backtick-et a kód előtt és után a megfelelő formázáshoz) Lásd például itt: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

További kontextus Adjon hozzá bármilyen más kontextust a problémával kapcsolatban.

SirGoodenough commented 6 months ago

Reading your question more, the 'run' in the ui editor isn't going to do anything here, because the blueprint is looking for changes in the cube to trigger events. When you click the 'run', there wasn't a cube action so it will do nothing.

You have to do physical cube actions/motions to make the blueprint trigger and then the blueprint will execute the actions you have programed in that match that physical action.

Lesboy72 commented 6 months ago

Moving the cube corresponding to the programmed sequence of movements (sliding on any side in action mode) was possible, but the LG TV is not turned on/off as in the example. I thought that the automatism should be started at least once by clicking on the run command.

SirGoodenough commented 6 months ago

I'm trying to explain to you how this works. If you click the run command, the blueprint does indeed run. As the BP starts it gets to the condition statement which makes sure that the trigger that started the run has a valid action from the cube. When it finds there was no action, execution ends. So yes, it runs, but no, it stops as soon as conditions are tested.

Lesboy72 commented 6 months ago

Thank you for the previous ones as well. Let's go on. Now I only have two questions, because I don't have the dice in front of me right now, I'm not at home, only in the evening. One: Should I write something here? I think not. aqara4

According to your previous answer, a condition must be entered here? I think you don't have to. aqara5

Perhaps some parameter needs to be entered somewhere, or something that may have been left out of your description, or I didn't notice it, even though I read a lot even in the comments. Regard'a: László

SirGoodenough commented 6 months ago

Did you read the instructions? There are in a TL;DR version in the blueprint description and the long version here.

  1. For the first question, if you don't have a topic, nothing will happen. The blueprint will get no data to do anything.
  2. For the 2nd question you add actions in the rows to match the physical actions you do with the cube. All other physical action rows can be empty. Additional conditions can be empty as well.

Start with no automations created with the blueprint. If you have old ones hanging around they will start to trigger and it will confuse you. Then create an automation with a simple event, like rotate or slide, and just toggle a light. This gets you into the mode of how it works. Then using the training aids provided, learn how the other functions like tap and hold, etc. work.

All this is in the documentation.

Lesboy72 commented 6 months ago

It would be great if you had a YouTube video about this installation, setup, and operation. Believe me, everyone would be happy about it, and it wouldn't take you so long to do this :) At stake, if I make settings by default, they work. I can't get your BP to work.

SirGoodenough commented 6 months ago

That has been on my mind lately for all my blueprints... Excellent suggestion. I am working on the clean the basement stuff first because I have a real problem down there.

Have you determined what your topic is yet?

Lesboy72 commented 6 months ago

I do not understand. What about the topic?

Lesboy72 commented 6 months ago

It says here that there is an error with the run.
hiba1

SirGoodenough commented 6 months ago

Topic: You need to put yours here. Use the instructions to look it up.

One: Should I write something here? I think not. aqara4

Lesboy72 commented 6 months ago

I gave the topic. The tracking timeline shows this, somewhere (perhaps under a condition) the run gets stuck and stops. What can I send you so that you can help me?

cub1

SirGoodenough commented 6 months ago

As the Docs say, the last action Z2M takes is not going to pass conditions. Look at prior triggers in the list to see if it did anything. There is nearly always minimum 3 triggers on any physical action. wake-up, the actual action, and go to sleep.

Lesboy72 commented 6 months ago

If I perform a cube operation (now the operation works fine), for example, I slide, then a device under your name and house location will immediately appear. When I open the following image I see. What is it and why does it occur? Is that okay?

cube1 cube2

SirGoodenough commented 6 months ago

It creates a number entity to keep track of the last side that was on top. Yes it creates that and will update the number value whenever you action the cube. This is good news. It means things are starting to work for you!

SirGoodenough commented 3 months ago

Stale