Search found 260 matches

by JR01
29 Nov 2020, 21:28
Forum: ESP Easy: General Discussion
Topic: Rules: can <if statement> work before Clock#Time ?
Replies: 2
Views: 6114

Rules: can <if statement> work before Clock#Time ?

Hi, will below work? i.e. will the clock#time do the evaluation embedded in a if statement? Or should it be the other way ariund, 1st the clock#time statement to trigger @ the correct time- and then the if statement? (Below does not seam to work - but I want to confirm). if Vars2#Auto=1 and Vars2#Au...
by JR01
30 Oct 2020, 15:38
Forum: ESP Easy: General Discussion
Topic: which MQTT service to choose in 2020?
Replies: 21
Views: 15929

Re: which MQTT service to choose in 2020?

So, for "Generic MQTT" - which I use to converse with Node-RED - I have been using OpenHAB MQTT - is this correct? Mayby time to bring "Generic" into the name as well?
by JR01
27 Oct 2020, 21:31
Forum: ESP Easy: General Discussion
Topic: Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio
Replies: 3
Views: 7485

Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

Hi all clever peeps ! I want to build a custom, small image for ESP8266 "Sonoff IoT WiFi Development Board" with only : 1) CONTROLLERS - "Home Assistant (openHAB) MQTT" (is this still the right mqtt Controller for generic MQTT?) 2) PLUGINS: a) Switch, b) "Generic - System In...
by JR01
25 Oct 2020, 21:53
Forum: ESP Easy: General Discussion
Topic: Rules, cannot get Publish (to mqtt) working
Replies: 3
Views: 7154

Re: Rules, cannot get Publish (to mqtt) working

The above help should be in the Rules documentation, seriously.....

https://espeasy.readthedocs.io/en/lates ... Rules.html
by JR01
25 Oct 2020, 20:44
Forum: ESP Easy: General Discussion
Topic: Rules, cannot get Publish (to mqtt) working
Replies: 3
Views: 7154

Solved: Rules, cannot get Publish (to mqtt) working

Just tried it - it works, thank you !
by JR01
25 Oct 2020, 19:45
Forum: ESP Easy: General Discussion
Topic: Rules, cannot get Publish (to mqtt) working
Replies: 3
Views: 7154

Rules, cannot get Publish (to mqtt) working

Hi, I have an ESP on a gate, I want it to publish directly to my Homebridge server on topic homebridge/to/set to update the status of the garage door as the switches monitoring the door state is switched on / off. The Rules below does not send the MQTT code. I do receive normal mqtt updates from the...
by JR01
04 Aug 2020, 16:20
Forum: ESP Easy: Software
Topic: How to have http endpoints on espeasy for API calls?
Replies: 3
Views: 6697

Re: How to have http endpoints on espeasy for API calls?

HomeBridge - the link I showed above - expects a json endpoint, like http://espeasy1.home/status - which as HomeBridge connects to it, serves back the status of the pins - exactly in that format as shown in post. There are other examples in that link of endpoints it expects - to read - and instruct....
by JR01
03 Aug 2020, 20:52
Forum: ESP Easy: Software
Topic: How to have http endpoints on espeasy for API calls?
Replies: 3
Views: 6697

Re: How to have http endpoints on espeasy for API calls?

I found this post https://www.letscontrolit.com/forum/viewtopic.php?t=2138&start=10 which shows how to use http generic, and Tools > Advanced > Templates - is that the way? Is their perhaps a better way? It looks like the above way you 'send' data, where-as the api call will call the endpoint, a...
by JR01
03 Aug 2020, 20:30
Forum: ESP Easy: Software
Topic: How to have http endpoints on espeasy for API calls?
Replies: 3
Views: 6697

How to have http endpoints on espeasy for API calls?

Hi, I have never used any of the http methods to control or send status using esp yet. On HomeBridge, they have a web-sprinkler node which reads a /status endpoint, and then expect this api endpoint https://www.npmjs.com/package/homebridge-web-sprinklers#api-interfacing to send back the following in...
by JR01
27 Jul 2020, 21:12
Forum: ESP Easy: Software
Topic: New rules, about RULES for using " or '
Replies: 1
Views: 5012

New rules, about RULES for using " or '

A previously working publish in rules worked (sort-of...), with the new rules of RULES, I am trying to send a formatted text string which Node-RED can change into a json format - and send onto HomeBridge. In the example below, the message must look like this, for 5 possible Relays, in below case Rel...
by JR01
17 May 2020, 12:29
Forum: ESP Easy: Software
Topic: where is 'pre_extra_script.py' to compile customer firmware? // or use Custom.h ? (let's fix the instructions then...
Replies: 4
Views: 6835

where is 'pre_extra_script.py' to compile customer firmware? // or use Custom.h ? (let's fix the instructions then...

In instructions: In https://espeasy.readthedocs.io/en/latest/Participate/PlatformIO.html#make-a-custom-build-using-platformio It says "If that’s working, you can open the file “pre_extra_script.py” and add or remove the plugins and controllers you need. " I cannot find the file "pre_e...
by JR01
07 Apr 2020, 21:28
Forum: ESP Easy: General Discussion
Topic: syslog - any chance of configurable port?
Replies: 2
Views: 5247

Re: syslog - any chance of configurable port?

Okay, I bumped it..... let’s see.
by JR01
07 Apr 2020, 16:58
Forum: ESP Easy: General Discussion
Topic: syslog - any chance of configurable port?
Replies: 2
Views: 5247

syslog - any chance of configurable port?

What about configurable port? For security reasons and using Docker syslog servers, there might be a reason to use a different port than the standard 514 syslog port.

Does anybody else have this requirement?
by JR01
14 Mar 2020, 05:46
Forum: ESP Easy: General Discussion
Topic: Rules - if power out, and power comes on at night, switch on lights
Replies: 2
Views: 4915

Re: Rules - if power out, and power comes on at night, switch on lights

Ohhh, was late when I tried it.... thank you, should have seen it.
by JR01
14 Mar 2020, 00:02
Forum: ESP Easy: General Discussion
Topic: Which flash for SONOFF Basic
Replies: 1
Views: 4320

Which flash for SONOFF Basic

Hi - have not flashed some Sonoff's since 2018-11 - probably time. But do not feel like taking them out the wall again to do it. On it's front page it says: Free Mem: 14200 (12272 - sendContentBlocking) Free Stack: 3520 (1696 - parseTemplate3) Will this flash work OTA for it? ESP_Easy_mega-20200310_...
by JR01
13 Mar 2020, 23:52
Forum: ESP Easy: General Discussion
Topic: Rules - if power out, and power comes on at night, switch on lights
Replies: 2
Views: 4915

Rules - if power out, and power comes on at night, switch on lights

Hi, we have lots of power outs in South Africa now, sometimes after dark. I currently have a rule which switches on after sunrise, and off before sunrise. But this does not work if the power comes up inbetween these two events - and thus lights are off. How can I make the below additional rule work?...
by JR01
17 Dec 2019, 11:18
Forum: ESP Easy: General Discussion
Topic: EdgeX - What is this?
Replies: 4
Views: 6111

Re: EdgeX - What is this?

It's an open source framework, and code, for edge computing, and an open IoT framework. The framework uses lots of different open source standards, protocols, and open sourced applications and servers, and covers the application needs for edge computing. Typically, the domain of processing is for in...
by JR01
17 Oct 2019, 14:04
Forum: ESP Easy: General Discussion
Topic: Feedback required: New sets of plugins/controllers
Replies: 20
Views: 23581

Re: Feedback required: New sets of plugins/controllers

After help from td-er on vs code, platformio in other posts, I have it running on Mac and a Linux Mint notebook, I am very happy with both.
by JR01
16 Oct 2019, 20:58
Forum: ESP Easy: Software
Topic: Rules - command to print a value to the Log?
Replies: 2
Views: 5933

Rules - command to print a value to the Log?

Is there such a command? Got an illusive problem with a sprinkler system. ------------------ My problem is below, when it gets to Rules#Timer=6 - it does not evaluate the if statement, I want to know what INT#!'s value is.... ----- On Clock#Time=All,"[Vars1#startHr#D2]:[Vars1#startMin#D2]"...
by JR01
12 Oct 2019, 09:13
Forum: ESP Easy: Software
Topic: new homie controller & plug-in (C014 & P086)
Replies: 4
Views: 8258

Re: new homie controller & plug-in (C014 & P086)

This could work, but this tread is about the controller for homie and plugin for homie that will do all you did now with rules automatically, following the homie standard.
by JR01
10 Oct 2019, 22:08
Forum: ESP Easy: Software
Topic: Any way to trap failing Devices with Rules?
Replies: 2
Views: 6231

Any way to trap failing Devices with Rules?

Hi, I get in Logs:

Code: Select all

DHT : Protocol Timeout
Any way to trap this with rules - so I can construct an action - for instance to warn with an mqtt message?
by JR01
10 Oct 2019, 21:48
Forum: ESP Easy: Software
Topic: Rules: (Relay On / wait) x 4.
Replies: 7
Views: 8408

Re: Rules: (Relay On / wait) x 4.

Nope,
Instead of [VAR#1] use [INT#1]. That way you don't need to use the formatting.
It does not work.

This :

Code: Select all

event,L[INT#1]
produces

Code: Select all

event,L 1
, with a space between the L and the 1.

Reverting back. But why a space?
by JR01
08 Oct 2019, 19:09
Forum: ESP Easy: Software
Topic: Rules: (Relay On / wait) x 4.
Replies: 7
Views: 8408

Re: Rules: (Relay On / wait) x 4.

Here is what is working, I had to use your new Rules formatting, for leg event,L1 . My 1st time I am using formatting rules !!! Thank you ! On Clock#Time=All,06:00 Do Let,1,0 Event,LoopDeLoop=[Vars#durLegRest] EndOn On LoopDeLoop Do if [Vars#Auto]=1 Let,1,[VAR#1#D1.0]+1 event,L[VAR#1#D1.0] timerSet,...
by JR01
07 Oct 2019, 21:20
Forum: ESP Easy: Software
Topic: Rules: (Relay On / wait) x 4.
Replies: 7
Views: 8408

Re: Rules: (Relay On / wait) x 4.

Ahhhh, smart !

Let me try that.
by JR01
07 Oct 2019, 19:49
Forum: ESP Easy: Software
Topic: Rules: (Relay On / wait) x 4.
Replies: 7
Views: 8408

Re: Rules: (Relay On / wait) x 4.

This is how I have done it now, not sure yet if it will work - (testing tomorrow morning), is this the most efficient way to do it? Seams daft... On Clock#Time=All,%sunrise+15m% do if [Vars#Auto]=1 event,L1 timerSet,6,[Vars#durLegRest] endif endon on Rules#Timer=6 do if [Vars#Auto]=1 event,L2 timerS...
by JR01
07 Oct 2019, 19:40
Forum: ESP Easy: Software
Topic: Rules: (Relay On / wait) x 4.
Replies: 7
Views: 8408

Rules: (Relay On / wait) x 4.

Hi, struggling with Rules, for a Sprinkler system. I have a some working rules that switches on a boreholepump together with the specific leg, of which I have 4. When set on Auto mode, a dummy variable, Vars#Auto I want it to start 15min after sunrise, sprinkle for 13min on Leg1, then wait for 20min...
by JR01
24 Sep 2019, 21:30
Forum: ESP Easy: Software
Topic: new homie controller & plug-in (C014 & P086)
Replies: 4
Views: 8258

new homie controller & plug-in (C014 & P086)

, just inquiring on how you are doing with the new versions. Just to tell you, I am really looking forward to it - in the process of building a ESP_Easy / shelly / other --> homie --> homeBridge --> Messenger controller on Node-Red. Wishing you well with the coding! Will be watching for changes her...
by JR01
16 Sep 2019, 20:09
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock#Time - possible to compare with a variable?

Wow, this is can be good for Rules.... Assume it will end up https://espeasy.readthedocs.io/en/latest/ here?
by JR01
15 Sep 2019, 12:26
Forum: ESP Easy: Software
Topic: Homie Receiver P086 ~ Can I use their stored variables in formulaes?
Replies: 2
Views: 7015

Re: Homie Receiver P086 ~ Can I use their stored variables in formulaes?

Thank you Chris, no but I'm not sure if the current version can do this - in my tests does not work. Per your reply to my other post, I also need the variables to not be stored in float by default, but if I pass the var as integer, which I need in the clock event. Thank you, looking forward to the p...
by JR01
15 Sep 2019, 12:00
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock#Time - possible to compare with a variable?

There will be an updated version soon showing floats and other values correctly with many bugfixes and improvements
Cannot wait!! Thank you.
by JR01
03 Sep 2019, 08:00
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock#Time - possible to compare with a variable?

Ahh, less code ! The if works, so this will work as well. Thank you.
by JR01
02 Sep 2019, 20:28
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock#Time - possible to compare with a variable?

okay, that can work, with an if statement to check if the number is smaller than 10....

Let me try that.
by JR01
02 Sep 2019, 18:53
Forum: ESP Easy: Software
Topic: Storing a file with a json string - as variables for use in Rules
Replies: 1
Views: 4663

Storing a file with a json string - as variables for use in Rules

Hi, still struggling with my complex requirements for a Sprinkler system. See my release 1.0 https://github.com/IoTPlay/sprinklersystem/tree/Sprinkler_1.0#notes-on-solution-components . I am trying to make the ESP8266 not only a dumb slave to a Controller (Node-RED & MQTT), but to be given a man...
by JR01
02 Sep 2019, 18:22
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock Time - possible to compare with a variable?

Maybe you could add an issue for it on Github, so the original author of that plugin can look at it? Thank you TD-er, will do this, at least you have been able to confirm my suspicions. I moved away from trying the Homie plugins, to the stock standard ones. It works ....., to push a variable via MQ...
by JR01
26 Aug 2019, 22:10
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock Time - possible to compare with a variable?

Just as a test, you may try to store the value in a dummy plugin which does output a long type. Let's hope this is not somewhere in the code converted to a float.... Tested with Dummy values - pushed from mqtt as well, and it does not add .00 to the values. So, the problem must be as you stated - i...
by JR01
18 Aug 2019, 18:33
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Re: Rules: Clock Time - possible to compare with a variable?

I cannot get this to work, the problem is - when I send a message with mqtt (from Node-RED) - say payload: 12 - does not matter if I choose to send it as a String, or a number, and also does not matter if I Register the homie Received device as a Parameter Type integer, or float, or string, it alway...
by JR01
18 Aug 2019, 16:15
Forum: ESP Easy: Software
Topic: Rules (old engine) Rules Set 1/2/3/4
Replies: 4
Views: 9272

Re: Rules (old engine) Rules Set 1/2/3/4

+1

And to send an mqtt msg to enable / dis enable
by JR01
18 Aug 2019, 13:00
Forum: ESP Easy: Software
Topic: Rules (old engine) Rules Set 1/2/3/4
Replies: 4
Views: 9272

Rules (old engine) Rules Set 1/2/3/4

I can not get in any docs the purpose of Rules Set 1 vs 2..4

Q: Are all rules sets active, can I use all 4 of them, each for 2048 characters ?
by JR01
18 Aug 2019, 08:59
Forum: ESP Easy: Software
Topic: Compile for ESP8266 with a Controller & Module using vscode
Replies: 9
Views: 10678

Re: Compile for ESP8266 with a Controller & Module using vscode

Thank you, and the code of pre_extra_script.py aboce, why do I still see all plugins in drop down?
by JR01
17 Aug 2019, 22:05
Forum: ESP Easy: Software
Topic: Rules: Clock#Time - possible to compare with a variable?
Replies: 17
Views: 18001

Rules: Clock#Time - possible to compare with a variable?

Hi, how would I use variables to compare to clock time, ie. rather than: On Clock#Time=All,18:25 do // every day at 18:25 hours do ... gpio,14,0 endon What about something like below?: // --- variables for ie. the time 20:15 Let,1,20 Let,2,15 On Clock#Time=All,[VAR#1]:[Var#2] do gpio,14,0 endon
by JR01
17 Aug 2019, 21:27
Forum: ESP Easy: Software
Topic: Homie Receiver P086 ~ Can I use their stored variables in formulaes?
Replies: 2
Views: 7015

Homie Receiver P086 ~ Can I use their stored variables in formulaes?

Hi, thanks for the Homie Receiver - it works well. I can set their values (if not String) with a mqtt message, an example - sending a 1 to homie/ESP62DEV/homieRec3/durLeg1/set I would like the use the variables from the Receiver in Rules, but it does not seam to work: on homieRec3#durLeg1 do // code...
by JR01
17 Aug 2019, 16:39
Forum: ESP Easy: Software
Topic: Compile for ESP8266 with a Controller & Module using vscode
Replies: 9
Views: 10678

Re: Compile for ESP8266 with a Controller & Module using vscode

Working very well, some more advise please, regarding to changes to my pre_extra_script.py file in ESPEasy folder, I changed it as per below. I want only the Devices listed in the list. Per your instructions, I cloned latest github of espeasy to local, changed file pre_extra_script.py per below, com...
by JR01
16 Aug 2019, 19:42
Forum: ESP Easy: General Discussion
Topic: Rules "Let" variables, any way to set & change them with mqtt?
Replies: 1
Views: 6968

Rules "Let" variables, any way to set & change them with mqtt?

Hi, for a sprinkler system use case, I want to use the Let,1,[VAR#1] variables to drive the functions of the sprinkler system. For instance, want to update the daily schedule, if the system should be in Auto / or manual mode, which legs to sprinkle today, how long, etc. The rules will then execute t...
by JR01
11 Aug 2019, 18:34
Forum: ESP Easy: Software
Topic: Compile for ESP8266 with a Controller & Module using vscode
Replies: 9
Views: 10678

Re: Compile for ESP8266 with a Controller & Module using vscode

Fantastic - its working, got the platformio upload command as well. I am in Linux, had to install 99-platformio-udev.rules to make platofrmio upload tools work in vscode.

Thank you.
by JR01
11 Aug 2019, 16:11
Forum: ESP Easy: Software
Topic: Compile for ESP8266 with a Controller & Module using vscode
Replies: 9
Views: 10678

Re: Compile for ESP8266 with a Controller & Module using vscode

It works, will now load the firmware, to see if it works. Can I do that from vscode?