Error in constructing rule

Henri BLANC (13-Fr.) shared this problem 11 years ago
Solved

hello

I just found a problem that explains a lot of trouble.

I tell you what i look you I hoppe Zipato explore them in depth.

Often to debug a situation I use mail.

I got used to not create an entire rule so i use the following: Edit a old rule, then I change the control "When" for a new rule, and then I reconfigure the settings of the email and other.

When rules run I have not received the right messages.

I look at the generated Json and surprise for different rules, the messageUid is the same . SO everything is explained.

What is confusing is that if you look at the two rules by edit the settings of the email they are different.

I said that this practice of creating a rule from another, there may be other uid (Mail,variable Request...) who do not take the expected value.

I hope it may be useful to other users


In french pour les comme moi

Je viens de découvrir un problème qui explique bien des soucis.

Je vous le livre tel quel à vous Zipato de l'explorer en profondeur.

Souvent pour debug une situation j'utilise des mails.

J'ai pris l'habitude pour ne pas recopier toute une régle et de faire les opérations suivantes : Edit une régle , puis je change le control "When" pour avoir une nouvelle règle, et ensuite je reconfigure les parametres du mail et autres.

Quand les règles s'executent je ne recois pas les bons mails.

Je regarde le code généré (Get Json ) et là surprise pour les deux règles différentes, le messageUid est le même. ET donc tout s'explique.

Ce qui est déroutant c'est que si on examine les deux règles par edit les parametres du mail ils sont différents.

Je me dit que dans cette pratique de création d'une règle à partir d'une autre, il y a peut être d'autres uid ( message variable requete ... ) qui ne prennent pas la valeur attendue.

J'espère que cela peut servir à d'autres utilisateurs

Replies (13)

photo
1

So if i undestand you correctly, upon recreating a new rule based on an old one some data are keept from the old one?

I just did the same, i had one rule with certain "WHEN" condition so i usted that as a base and added a new "WHEN" condition and draged the old when conditon into the new, changed the HTTP request data within it and saved the new rule. Will that couse problems? Ill check too. How did you see the genrated code?

photo
1

@Kristian in the editing rule you entry CTRL+SHIFT+1 and then you obtain in the bottom of the screen a line for see code

For the message Uid for mail i'm sure that the pointer is the same in the original rule ans the new rule created by this way.


For the other pointer of data i've not try and i hoppe Zipato expertise

Files: A.JPG
photo
1

Ctrl+Shift+1 on the RULE dashboard No reboot only troubleshooting tool

http://www.automatedhome.co.uk/reviews/zipato-zipabox-wireless-home-automation-controller-mega-review.html


see : Right to Reply at the End

photo
1

Can this be used at runtime to check value of a variable?

photo
1

@Kristian

i don't know i think it's only to see the generated code

photo
1

Yup, that's the same problem.

photo
1

Hi Henri,


Thanks for the link.


I also posted this problem about 2 months ago. But no respons from zipato.


So Zipato fix this plz and respond!

photo
1

Hi Milan,


Thank you for the reply. I adjusted the rule hope it works.


But your solutions is a workaround. Are u working on a real solution?

photo
1

Hello Milan

What you say is actually what is happening, and it is in my opinion what should happen.

A rule is duplicated with a message, the message is the same in both rules, and if we change, it will change for both. Ok with that.

But what is puzzling and confusing and misdiagnosis is that after time, if the rules are edited on rule editor, the original rule still displays the old message.

You understand what I mean (sorry for my english I'm french)

Look at my attachments R1 is the initial rule, R2 is the rules after the duplication and modification. Both rules are published after the modification of the second.

Both rules have turned, and sent the message of rule 2, which is normal, but this is not what we understand by looking at the edition on the screen.

Henri

photo
1

I also agree its correct How its working With its uniqe Id's for each message and scheduler.

But then I'd like:

- To see all my uniqe Id's in a simple way to be able to reuse them.

- That message/content is commonly updated among all id's.

photo
1

Great!

photo
1

Hello Milan

For me your proposition to fix the confusion is OK and you can solved this PB

Thank's

Leave a Comment
 
Attach a file