changed rules format?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Bastler1195
Normal user
Posts: 3
Joined: 08 Dec 2018, 13:20

changed rules format?

#1 Post by Bastler1195 » 10 Dec 2018, 18:17

Hello everybody,
i use a Sonoff TH16 with espeasy mega-20181125 and following devices and rules. it works fine but no longer with the current release mega-20181208. I can not find why and the search for "rules" did not get me anywhere :cry:
Has the syntax changed? Can i read this info somewhere? Thank you for your help or hints! best regards Hotte
Devices.png
Devices.png (64.43 KiB) Viewed 1650 times
Rules Set 1

on Taste_Local#Taste do //localer Taster schaltet EIN und Aus
if [Ausgang#Relais]=0
gpio,12,1
else
gpio,12,0
endif
endon

on WiFi#Connected do //sobald WLan verbunden ist leuchtet blaue LED
gpio,13,1
else
gpio,13,0
endon

on Temperatur#T: do //Frostwächter schaltet bei Temp<2°C den Ausgang auf EIN
if [Temperatur#T:]<2.0
gpio,12,1
else
[Temperatur#T:]>2.0 and [Temperatur#T:]<2.5
gpio,12,0
endif
endon

User avatar
grovkillen
Core team member
Posts: 3304
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: changed rules format?

#2 Post by grovkillen » 10 Dec 2018, 18:26

We're redoing the way GPIO is handled. Revert back to a week old firmware. Remember it's nightly releases still. We don't have a stable release yet. Nightly = please test on units you're not relying on.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
ThomasB
Normal user
Posts: 425
Joined: 17 Jun 2018, 20:41
Location: USA

Re: changed rules format?

#3 Post by ThomasB » 10 Dec 2018, 18:34

The latest release has made a significant change to the Switch device Plugin. It no longer supports reading GPIO output bits, including the Sonoff relay. So if you do not want to change your ESPEz devices and rules declarations then the solution is to go back to the old version that worked for you.

Some information about the GPIO change can be found here: https://www.letscontrolit.com/forum/vie ... f=4&t=6172

The developer that revised the plugin is accepting comments about his changes. If you wish to share your opinion then please comment in the github discussion.

- Thomas

EDIT: grovkillen types faster than me. :)

Bastler1195
Normal user
Posts: 3
Joined: 08 Dec 2018, 13:20

Re: changed rules format?

#4 Post by Bastler1195 » 11 Dec 2018, 15:17

Thanks grovkillen, Thanks ThomasB !

it is not easy to understand the change with my modest English. :? If there was an example anywhere of what the new way looks like, that would help me a lot. Until then I wait... and use the old release. Thanks again

Best regards Hotte

User avatar
grovkillen
Core team member
Posts: 3304
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: changed rules format?

#5 Post by grovkillen » 11 Dec 2018, 15:19

Yes you shouldn't use the new rule engine. It's only for testing as of right now, thus no documentation.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
schnurzel59
Normal user
Posts: 32
Joined: 18 Feb 2019, 12:41
Location: Germany
Contact:

Re: changed rules format?

#6 Post by schnurzel59 » 25 Feb 2019, 23:01

hello grovkillen,
I do not understand why some useless changes are made that I should not use then. These are only for testing, as you say.
Who should test them if they only bring problems in existing configurations. I can not even change everything in my rules
once a week just to test what you've come up with. Why is reading GPIO output bits no longer supported?
That is a meaningful function, which obviously worked. Or not?
I've thought twice about helping you with money. But then do not steal my time with your gimmicks.
There are people who use the ESP seriously and do not just play with it.
Why not first fix bugs and then integrate new things?
Then I will gladly pay money.

best regards
Martin
Greetings Martin

Oh God, my English is horrible.

User avatar
grovkillen
Core team member
Posts: 3304
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: changed rules format?

#7 Post by grovkillen » 26 Feb 2019, 05:39

The rule engine was clearly something that we shouldn't have merged, it was not ready. Sorry. We are doing this on our unpaid time. Currently we make about €300 each month in donations so we need to do daytime work to stay afloat. Sorry for taking your time.

Again, the new rule engine was not ready for the masses and we shouldn't have merged it.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests