Switch ESP via MQTT in sleep Mode

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Switch ESP via MQTT in sleep Mode

#1 Post by kohleIT » 11 Oct 2021, 18:42

Hello Experts

Following challenge:

I am installing the ESP with sensors (T/H) that reports the value via MQTT (rules) to the Server. After doublechecking the values on the Server(1-2 hours) i would like to switch the ESP remotely to Sleep mode via MQTT.

The ESP reports successfully via MQTT to the Server. This is realized via
>>Devices<<
>> Home Assistant MQTT<<
>> Controller Publish << %sysname%/%tskname%/%valname%

rules: (to Publish JSON)

Code: Select all

Publish %sysname%/json/Sensor_%unit%, '{"Temperture-Top":"[Top#Temperature]", .....
Main Target: Switching the ESP Sleep Mode ON/OFF via MQTT.

Can someone help me to find a solution with MQTT. I have seen that there is the possibility to >>Controller Subscribe<<.
But I don’t understand how it works - even I was looking in the forum for similar challenges. I have an Idea in mind – but difficultness to setup the configuration. :oops:

Any Help would be appreciated to push me in the right direction. Do not hesitat to ask :-)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Switch ESP via MQTT in sleep Mode

#2 Post by TD-er » 11 Oct 2021, 18:56

You can use the MQTT import plugin, to read a message published to a topic.
The current MQTT import plugin can only read numerical values (PR to read more complicated messages is pending)
But if you read a value like a "0" or "1", that's usable for operating a switch.

However, what is a bit tricky here is that MQTT messages are normally only delivered directly to those clients which are subscribed and connected to the MQTT broker.
It is possible to publish a message with the "retain" flag enabled. The MQTT broker will deliver the last message to a specific topic as soon as some client subscribes to that topic.
So from another PC/node, you can publish a message to a specific topic with the retain flag set and that one will then be sent to a client as soon as it connects and subscribes to that topic.

That's how you could send a message via MQTT to a sleeping node.

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#3 Post by kohleIT » 11 Oct 2021, 19:08

Code: Select all

You can use the MQTT import plugin, to read a message published to a topic.
The current MQTT import plugin can only read numerical values (PR to read more complicated messages is pending)
But if you read a value like a "0" or "1", that's usable for operating a switch.
On and Off would be sufficient for me. Can you give me an further hint how it I can get this plugin installed (working). No expertise with adding Plugins.

This one ?
https://github.com/letscontrolit/ESPEas ... Import.ino

Does This mean - i need to Compile something to get it running?

chemmex
Normal user
Posts: 92
Joined: 15 Feb 2019, 16:18

Re: Switch ESP via MQTT in sleep Mode

#4 Post by chemmex » 11 Oct 2021, 20:15

You can also use command topic with the OpenHAB controller which your device subscribes to, this does not require installing MQTT Import plugin. You can post there event names with arguments which can be interpreted as events in the rules.

For instance

Code: Select all

On ctlEvent do
  If %eventvalue1%=0
     //do whatever you want to do in normal mode
  Endif
  If %eventvalue1%=1
     deepsleep,%eventvalue2% // sleep %eventvalue2 seconds
  endif
Endon
To go to deepsleep mode for 60 seconds, you should publish "ctlEvent,1,60" to the command topic which in my case is <deviceId>/cmd

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Switch ESP via MQTT in sleep Mode

#5 Post by Ath » 11 Oct 2021, 20:19

kohleIT wrote: 11 Oct 2021, 19:08 Can you give me an further hint how it I can get this plugin installed (working). No expertise with adding Plugins.
What is the current .bin file you have installed? The MQTT Import plugin is included in nearly all builds, so you should be able to select it for a new task on the Devices tab, it's called "Generic - MQTT Import"
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#6 Post by kohleIT » 12 Oct 2021, 12:23

Ath wrote: 11 Oct 2021, 20:19
kohleIT wrote: 11 Oct 2021, 19:08 Can you give me an further hint how it I can get this plugin installed (working). No expertise with adding Plugins.
What is the current .bin file you have installed? The MQTT Import plugin is included in nearly all builds, so you should be able to select it for a new task on the Devices tab, it's called "Generic - MQTT Import"
Build:⋄ 20114 - Mega32
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c
Plugin Count:⋄ 47 [Normal]

Hello thx for hint.
It looks like I have installed the needed Plugin. Could you help me with an Example what I need to fill in.
1.png
1.png (46.38 KiB) Viewed 7982 times
Last edited by kohleIT on 12 Oct 2021, 18:40, edited 2 times in total.

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#7 Post by kohleIT » 12 Oct 2021, 15:01

kohleIT wrote: 12 Oct 2021, 12:23
Ath wrote: 11 Oct 2021, 20:19
kohleIT wrote: 11 Oct 2021, 19:08 Can you give me an further hint how it I can get this plugin installed (working). No expertise with adding Plugins.
What is the current .bin file you have installed? The MQTT Import plugin is included in nearly all builds, so you should be able to select it for a new task on the Devices tab, it's called "Generic - MQTT Import"
Build:⋄ 20114 - Mega32
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c
Plugin Count:⋄ 47 [Normal]

Hello thx for hint.
It looks like I have installed the needed Plugin. Could you help me with an Example what I need to fill in.

https://ibb.co/hVqKdbv

Solution i have so far:
Unbenannt_lösung.PNG
Unbenannt_lösung.PNG (351.62 KiB) Viewed 7983 times
I can switch with MQTT Explorer the State [remote_sleep] and this get reflected under the >>Devices<< >>SleepStatus<<
Now I need to learn how i can put the mC with this value in Sleep mode.
Last edited by kohleIT on 12 Oct 2021, 18:37, edited 1 time in total.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Switch ESP via MQTT in sleep Mode

#8 Post by Ath » 12 Oct 2021, 17:26

Please include your screenshots in the forum (Attachments tab below message area when adding a reply), as external screenshots will disappear after some (short) time, making this thread useless for others.
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#9 Post by kohleIT » 12 Oct 2021, 18:31

chemmex wrote: 11 Oct 2021, 20:15 You can also use command topic with the OpenHAB controller which your device subscribes to, this does not require installing MQTT Import plugin. You can post there event names with arguments which can be interpreted as events in the rules.

For instance

Code: Select all

On ctlEvent do
  If %eventvalue1%=0
     //do whatever you want to do in normal mode
  Endif
  If %eventvalue1%=1
     deepsleep,%eventvalue2% // sleep %eventvalue2 seconds
  endif
Endon
To go to deepsleep mode for 60 seconds, you should publish "ctlEvent,1,60" to the command topic which in my case is <deviceId>/cmd
thx for this proposal - i still need to understand what you proposed. I am in the testing/learning phase.
please let me come back soon

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#10 Post by kohleIT » 12 Oct 2021, 18:33

Ath wrote: 12 Oct 2021, 17:26 Please include your screenshots in the forum (Attachments tab below message area when adding a reply), as external screenshots will disappear after some (short) time, making this thread useless for others.
I would like to do it - but it looks like i didn’t find the right "insert" button. Will try to update. => DONE

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#11 Post by kohleIT » 12 Oct 2021, 19:58

kohleIT wrote: 12 Oct 2021, 15:01
kohleIT wrote: 12 Oct 2021, 12:23
Ath wrote: 11 Oct 2021, 20:19

What is the current .bin file you have installed? The MQTT Import plugin is included in nearly all builds, so you should be able to select it for a new task on the Devices tab, it's called "Generic - MQTT Import"
Build:⋄ 20114 - Mega32
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c
Plugin Count:⋄ 47 [Normal]

Hello thx for hint.
It looks like I have installed the needed Plugin. Could you help me with an Example what I need to fill in.

https://ibb.co/hVqKdbv

Solution i have so far:
Unbenannt_lösung.PNG

I can switch with MQTT Explorer the State [remote_sleep] and this get reflected under the >>Devices<< >>SleepStatus<<
Now I need to learn how i can put the mC with this value in Sleep mode.

Can Someone help on the Rule to get the ESP in Sleep mode:
Unbenannt_lösung.PNG
Unbenannt_lösung.PNG (351.62 KiB) Viewed 7971 times

Code: Select all

on remote_sleep#SleepStatus do
 if %remote_sleep#remote_sleep% = 1 //<== don't know if this would work
  deepsleep,10
 endif
... does not work :-(

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Switch ESP via MQTT in sleep Mode

#12 Post by Ath » 12 Oct 2021, 20:09

kohleIT wrote: 12 Oct 2021, 19:58

Code: Select all

on remote_sleep#SleepStatus do
 if %remote_sleep#remote_sleep% = 1 //<== don't know if this would work
  deepsleep,10
 endif
... does not work :-(
You are close :)

Code: Select all

on remote_sleep#SleepStatus do
 if %eventvalue1% = 1 // For the first of (currently) max. 4 available eventvalues, also the alias %eventvalue% can be used
  deepsleep,10
 endif
endon // This is required to close the event handler code
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#13 Post by kohleIT » 12 Oct 2021, 20:28

You are close :)

Code: Select all

on remote_sleep#SleepStatus do
 if %eventvalue1% = 1 // For the first of (currently) max. 4 available eventvalues, also the alias %eventvalue% can be used
  deepsleep,10
 endif
endon // This is required to close the event handler code
It works but i do not understand why :roll:
In special this variable: %eventvalue1%
- What ist this ?
- how the eventvalue1 is connected to my SleepStatus variable ?

i am confused :ugeek: :geek:
:lol:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Switch ESP via MQTT in sleep Mode

#14 Post by TD-er » 12 Oct 2021, 20:39

See the docs: https://espeasy.readthedocs.io/en/lates ... eventvalue

In short, an event may have upto 4 variables, which can be addressed in the rules block by %eventvalue1% ... %eventvalue4%
When a task has performed a successful read, it generates a number of events, one per task value.
The value is then attached to this event.... as eventvalue :)

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Switch ESP via MQTT in sleep Mode

#15 Post by Ath » 12 Oct 2021, 20:41

Check this documentation
/Ton (PayPal.me)

seb82
Normal user
Posts: 62
Joined: 05 Sep 2018, 10:56

Re: Switch ESP via MQTT in sleep Mode

#16 Post by seb82 » 13 Oct 2021, 11:41

It should be possible not to use MQTT Import to simplify.

Referring to Command Reference and Rules documentation, you could just do this :

- Send a command via MQTT : <MQTT subscribe template>/cmd with payload: <command> (most likely %sysname%/cmd)

- Use this command : control?cmd=event,send_to_deepsleep

- Use the following rule :

Code: Select all

on send_to_deepsleep do
  deepsleep,10 //  send in deepsleep for 10s
endon
Using %eventvalue1%, you can define how much time it should go into deepsleep.

- Command : control?cmd=event,send_to_deepsleep=10 (for 10 seconds)

- Rule :

Code: Select all

on send_to_deepsleep do
  deepsleep,%eventvalue1% //  send in deepsleep for %eventvalue1%
endon
Sébastien - espRFLinkMQTT gateway RFLink MQTT on esp

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#17 Post by kohleIT » 13 Oct 2021, 20:41

kohleIT wrote: 12 Oct 2021, 20:28 You are close :)

Code: Select all

on remote_sleep#SleepStatus do
 if %eventvalue1% = 1 // For the first of (currently) max. 4 available eventvalues, also the alias %eventvalue% can be used
  deepsleep,10
 endif
endon // This is required to close the event handler code
It works but i do not understand why :roll:
In special this variable: %eventvalue1%
- What ist this ?
- how the eventvalue1 is connected to my SleepStatus variable ?

i am confused :ugeek: :geek:
:lol:
Good evening,

i still need to come back one more time.
As you see in the picture, I would like to set the SleepTime and afterwards send it to sleep SleepStatus. The MQTT transmit works fine. But put the mC to sleep does not work. (sometimes Yes sometimes not)
Is the publishing order important how I publish ? (eventvalue?!)

I assume there is something wrong with the rules. Can someone help on that?
br
4.PNG
4.PNG (779.18 KiB) Viewed 7909 times
Last edited by kohleIT on 13 Oct 2021, 21:21, edited 1 time in total.

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#18 Post by kohleIT » 13 Oct 2021, 20:50

seb82 wrote: 13 Oct 2021, 11:41 It should be possible not to use MQTT Import to simplify.

Referring to Command Reference and Rules documentation, you could just do this :

- Send a command via MQTT : <MQTT subscribe template>/cmd with payload: <command> (most likely %sysname%/cmd)

- Use this command : control?cmd=event,send_to_deepsleep

- Use the following rule :

Code: Select all

on send_to_deepsleep do
  deepsleep,10 //  send in deepsleep for 10s
endon
Using %eventvalue1%, you can define how much time it should go into deepsleep.

- Command : control?cmd=event,send_to_deepsleep=10 (for 10 seconds)

- Rule :

Code: Select all

on send_to_deepsleep do
  deepsleep,%eventvalue1% //  send in deepsleep for %eventvalue1%
endon



Hello,
Thank you for your time to give me some guidance. This is how I understood your instruction:
1.) Need to create a Topic, “Sleep2”
2.) Send the Comand via MQTT: control?cmd=event,send_to_deepsleep=10
The mC should get sleep. It Looks like I have implemented wrong. Can you give me one more hint.
Thx for your Effort.
Br
6.PNG
6.PNG (225.81 KiB) Viewed 7900 times
This one was the easy Part:
5.PNG
5.PNG (21.09 KiB) Viewed 7903 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Switch ESP via MQTT in sleep Mode

#19 Post by TD-er » 13 Oct 2021, 21:49

You are checking for %eventvalue2%.
Can you just try to log the values (without calling deepsleep)?
See the "logentry" command. (see: https://espeasy.readthedocs.io/en/lates ... mmand.html )

Your code (from the screenshot):

Code: Select all

on remote_sleep#Sleepstatus do
  if %eventvalue2% = 1
    deepsleep,%eventvalue1%
  endif
endon
My suggestion:

Code: Select all

on remote_sleep#Sleepstatus do
  logentry,"EV1: %eventvalue1%  EV2: %eventvalue2%"
endon

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#20 Post by kohleIT » 14 Oct 2021, 08:50

TD-er wrote: 13 Oct 2021, 21:49 You are checking for %eventvalue2%.
Can you just try to log the values (without calling deepsleep)?
See the "logentry" command. (see: https://espeasy.readthedocs.io/en/lates ... mmand.html )

Your code (from the screenshot):

Code: Select all

on remote_sleep#Sleepstatus do
  if %eventvalue2% = 1
    deepsleep,%eventvalue1%
  endif
endon
My suggestion:

Code: Select all

on remote_sleep#Sleepstatus do
  logentry,"EV1: %eventvalue1%  EV2: %eventvalue2%"
endon
Hello,

please find attached the pic & log.
I cant see somthing in the log (attached file need to get renamed *.txt).
7.PNG
7.PNG (505.64 KiB) Viewed 7879 times
Last edited by kohleIT on 14 Oct 2021, 08:56, edited 1 time in total.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Switch ESP via MQTT in sleep Mode

#21 Post by TD-er » 14 Oct 2021, 08:55

It is better to have text like stuff being posted in [ code ] tags, as that's searchable and easier to reply to.
So no need to post screenshots where it is only about the text shown.

Also I don't see what you're trying to tell in that screenshot as I don't see a logentry sent from the rules, or am I missing something?

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Switch ESP via MQTT in sleep Mode

#22 Post by kohleIT » 14 Oct 2021, 09:02

TD-er wrote: 14 Oct 2021, 08:55 It is better to have text like stuff being posted in [ code ] tags, as that's searchable and easier to reply to.
So no need to post screenshots where it is only about the text shown.

Also I don't see what you're trying to tell in that screenshot as I don't see a logentry sent from the rules, or am I missing something?
OKOKOK :-)

Code: Select all

140582: DHT  : Temperature: 23.00
140585: DHT  : Humidity: 38.70
140618: DHT  : Temperature: 23.10
140621: DHT  : Humidity: 38.70
140651: ADC  : Analog value: 3233 = 3233.00
140673: EVENT: Outside#Humidity=38.70
140783: ADC  : Analog value: 0 = 0.00
140813: ADC  : Analog value: 2638 = 2638
140835: EVENT: Moisture#All=3249.00
140929: EVENT: Leak#Analog=0.00
141009: EVENT: Bat#Analog=2639
141121: EVENT: Top#Temperature=23.00
141201: EVENT: Top#Humidity=39.40
141302: EVENT: Down#Temperature=23.00
141388: EVENT: Rules#Timer=1,1
141569: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.50', 'DewPoint-Top':'8.45', 'Tempe
141589: ACT  : timerSet,1,1
141656: DHT  : Temperature: 23.00
141658: DHT  : Humidity: 39.40
141701: DHT  : Temperature: 23.00
141704: DHT  : Humidity: 38.70
141807: EVENT: Down#Humidity=38.70
141904: DHT  : Temperature: 23.10
141907: DHT  : Humidity: 38.70
141937: ADC  : Analog value: 3270 = 3270.00
141970: ADC  : Analog value: 0 = 0.00
142008: ADC  : Analog value: 2635 = 2635
142027: EVENT: Outside#Temperature=23.10
142128: EVENT: Outside#Humidity=38.70
142208: EVENT: Moisture#All=3228.00
142331: EVENT: Leak#Analog=0.00
142407: EVENT: Clock#Time=Thu,06:44
142507: DHT  : Temperature: 23.00
142509: DHT  : Humidity: 39.40
142542: DHT  : Temperature: 23.00
142545: DHT  : Humidity: 38.70
142561: EVENT: Bat#Analog=2634
142656: DHT  : Temperature: 23.10
142659: DHT  : Humidity: 38.70
142690: ADC  : Analog value: 3232 = 3232.00
142730: ADC  : Analog value: 0 = 0.00
142765: ADC  : Analog value: 2640 = 2640
142776: EVENT: Rules#Timer=1,1
142974: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
143071: ACT  : timerSet,1,1
143119: EVENT: Top#Temperature=23.00
143219: EVENT: Top#Humidity=39.40
143319: EVENT: Down#Temperature=23.00
143409: DHT  : Temperature: 23.00
143412: DHT  : Humidity: 39.40
143444: DHT  : Temperature: 23.00
143447: DHT  : Humidity: 38.70
143470: EVENT: Down#Humidity=38.70
143559: DHT  : Temperature: 23.10
143563: DHT  : Humidity: 38.70
143614: ADC  : Analog value: 3231 = 3231.00
143630: EVENT: Outside#Temperature=23.10
143711: ADC  : Analog value: 0 = 0.00
143740: ADC  : Analog value: 2640 = 2640
143765: EVENT: Outside#Humidity=38.70
143843: EVENT: Moisture#All=3219.00
143939: EVENT: Leak#Analog=0.00
144019: EVENT: Bat#Analog=2635
144082: EVENT: Rules#Timer=1,1
144271: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
144358: ACT  : timerSet,1,1
144413: EVENT: Top#Temperature=23.00
144521: DHT  : Temperature: 23.00
144523: DHT  : Humidity: 39.50
144557: DHT  : Temperature: 23.00
144560: DHT  : Humidity: 38.70
144603: DHT  : Temperature: 23.10
144606: DHT  : Humidity: 38.70
144638: ADC  : Analog value: 3247 = 3247.00
144672: EVENT: Top#Humidity=39.40
144766: ADC  : Analog value: 0 = 0.00
144803: ADC  : Analog value: 2641 = 2641
144819: EVENT: Down#Temperature=23.00
144939: EVENT: Down#Humidity=38.70
145022: EVENT: Outside#Temperature=23.10
145115: EVENT: Outside#Humidity=38.70
145217: EVENT: Moisture#All=3238.00
145317: EVENT: Leak#Analog=0.00
145483: DHT  : Temperature: 23.00
145485: DHT  : Humidity: 39.40
145496: EVENT: Rules#Timer=1,1
145669: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
145690: ACT  : timerSet,1,1
145757: DHT  : Temperature: 23.00
145759: DHT  : Humidity: 38.70
145775: EVENT: Bat#Analog=2643
145876: DHT  : Temperature: 23.10
145879: DHT  : Humidity: 38.60
145917: ADC  : Analog value: 3248 = 3248.00
145951: ADC  : Analog value: 0 = 0.00
145981: ADC  : Analog value: 2640 = 2640
146005: EVENT: Top#Temperature=23.00
146102: EVENT: Top#Humidity=39.40
146182: EVENT: Down#Temperature=23.00
146299: EVENT: Down#Humidity=38.70
146403: DHT  : Temperature: 23.00
146405: DHT  : Humidity: 39.40
146421: EVENT: Outside#Temperature=23.10
146520: DHT  : Temperature: 23.00
146522: DHT  : Humidity: 38.70
146555: DHT  : Temperature: 23.10
146557: DHT  : Humidity: 38.60
146573: EVENT: Outside#Humidity=38.70
146758: ADC  : Analog value: 3259 = 3259.00
146793: ADC  : Analog value: 0 = 0.00
146810: EVENT: Moisture#All=3241.00
146893: ADC  : Analog value: 2641 = 2641
146908: EVENT: Rules#Timer=1,1
147105: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
147125: ACT  : timerSet,1,1
147177: EVENT: Leak#Analog=0.00
147277: EVENT: Bat#Analog=2634
147367: DHT  : Temperature: 23.00
147370: DHT  : Humidity: 39.40
147393: EVENT: Top#Temperature=23.00
147475: DHT  : Temperature: 23.00
147478: DHT  : Humidity: 38.70
147520: DHT  : Temperature: 23.10
147523: DHT  : Humidity: 38.60
147616: EVENT: Top#Humidity=39.40
147710: ADC  : Analog value: 3263 = 3263.00
147759: ADC  : Analog value: 0 = 0.00
147789: ADC  : Analog value: 2645 = 2645
147807: EVENT: Down#Temperature=23.00
147895: EVENT: Down#Humidity=38.70
148005: EVENT: Outside#Temperature=23.10
148089: EVENT: Outside#Humidity=38.60
148170: EVENT: Rules#Timer=1,1
148354: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
148376: ACT  : timerSet,1,1
148428: EVENT: Moisture#All=3216.00
148600: DHT  : Temperature: 23.00
148603: DHT  : Humidity: 39.40
148645: DHT  : Temperature: 23.00
148648: DHT  : Humidity: 38.70
148685: DHT  : Temperature: 23.10
148689: DHT  : Humidity: 38.70
148721: ADC  : Analog value: 3245 = 3245.00
148738: EVENT: Leak#Analog=0.00
148834: ADC  : Analog value: 0 = 0.00
148874: ADC  : Analog value: 2643 = 2643
148907: EVENT: Bat#Analog=2641
148997: EVENT: Top#Temperature=23.00
149086: EVENT: Top#Humidity=39.40
149167: EVENT: Down#Temperature=23.00
149245: EVENT: Down#Humidity=38.70
149355: EVENT: Outside#Temperature=23.10
149452: DHT  : Temperature: 23.00
149455: DHT  : Humidity: 39.40
149470: EVENT: Rules#Timer=1,1
149641: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
149661: ACT  : timerSet,1,1
149808: DHT  : Temperature: 23.00
149811: DHT  : Humidity: 38.70
149827: EVENT: Outside#Humidity=38.70
149923: DHT  : Temperature: 23.20
149926: DHT  : Humidity: 38.60
149964: ADC  : Analog value: 3246 = 3246.00
149994: ADC  : Analog value: 0 = 0.00
150024: ADC  : Analog value: 2641 = 2641
150048: EVENT: Moisture#All=3230.00
150133: EVENT: Leak#Analog=0.00
150226: EVENT: Bat#Analog=2646
150333: EVENT: Top#Temperature=23.00
150429: DHT  : Temperature: 23.00
150432: DHT  : Humidity: 39.40
150466: DHT  : Temperature: 23.00
150469: DHT  : Humidity: 38.70
150493: EVENT: Top#Humidity=39.40
150591: DHT  : Temperature: 23.10
150593: DHT  : Humidity: 38.60
150686: ADC  : Analog value: 3247 = 3247.00
150710: EVENT: Down#Temperature=23.00
150806: ADC  : Analog value: 0 = 0.00
150839: ADC  : Analog value: 2637 = 2637
150852: EVENT: Rules#Timer=1,1
151040: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
151062: ACT  : timerSet,1,1
151119: EVENT: Down#Humidity=38.70
151243: EVENT: Outside#Temperature=23.10
151324: EVENT: Outside#Humidity=38.70
151423: DHT  : Temperature: 23.00
151426: DHT  : Humidity: 39.40
151459: DHT  : Temperature: 23.00
151461: DHT  : Humidity: 38.70
151477: EVENT: Moisture#All=3267.00
151651: DHT  : Temperature: 23.10
151654: DHT  : Humidity: 38.60
151699: ADC  : Analog value: 3258 = 3258.00
151716: EVENT: Leak#Analog=0.00
151812: ADC  : Analog value: 0 = 0.00
151841: ADC  : Analog value: 2640 = 2640
151871: EVENT: Bat#Analog=2641
151955: WD   : Uptime 3 ConnectFailures 0 FreeMem 139584 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
151957: WiFi : Scan not needed, good candidate present
151966: EVENT: Top#Temperature=23.00
152054: EVENT: Top#Humidity=39.40
152139: EVENT: Rules#Timer=1,1
152333: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
152355: ACT  : timerSet,1,1
152435: EVENT: Down#Temperature=23.00
152541: DHT  : Temperature: 23.00
152543: DHT  : Humidity: 39.40
152586: DHT  : Temperature: 23.00
152589: DHT  : Humidity: 38.70
152707: DHT  : Temperature: 23.10
152710: DHT  : Humidity: 38.60
152742: ADC  : Analog value: 3220 = 3220.00
152765: EVENT: Down#Humidity=38.70
152861: ADC  : Analog value: 0 = 0.00
152907: ADC  : Analog value: 2641 = 2641
152938: EVENT: Outside#Temperature=23.10
153023: EVENT: Outside#Humidity=38.70
153104: EVENT: Moisture#All=3225.00
153187: EVENT: Leak#Analog=0.00
153267: EVENT: Bat#Analog=2642
153375: DHT  : Temperature: 23.00
153378: DHT  : Humidity: 39.40
153399: EVENT: Rules#Timer=1,1
153571: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
153591: ACT  : timerSet,1,1
153674: EVENT: Top#Temperature=23.00
153832: DHT  : Temperature: 23.00
153834: DHT  : Humidity: 38.70
153873: DHT  : Temperature: 23.10
153876: DHT  : Humidity: 38.60
153908: ADC  : Analog value: 3253 = 3253.00
153938: ADC  : Analog value: 0 = 0.00
153980: ADC  : Analog value: 2636 = 2636
153995: EVENT: Top#Humidity=39.40
154094: EVENT: Down#Temperature=23.00
154195: EVENT: Down#Humidity=38.70
154295: EVENT: Outside#Temperature=23.10
154398: DHT  : Temperature: 23.00
154401: DHT  : Humidity: 39.40
154421: EVENT: Outside#Humidity=38.70
154514: DHT  : Temperature: 23.00
154517: DHT  : Humidity: 38.70
154560: DHT  : Temperature: 23.20
154563: DHT  : Humidity: 38.60
154597: EVENT: Moisture#All=3220.00
154692: ADC  : Analog value: 3253 = 3253.00
154723: ADC  : Analog value: 0 = 0.00
154766: ADC  : Analog value: 2641 = 2641
154777: EVENT: Rules#Timer=1,1
154976: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
155078: ACT  : timerSet,1,1
155136: EVENT: Leak#Analog=0.00
155267: EVENT: Bat#Analog=2643
155359: EVENT: Top#Temperature=23.00
155451: DHT  : Temperature: 23.00
155453: DHT  : Humidity: 39.40
155496: DHT  : Temperature: 23.00
155499: DHT  : Humidity: 38.70
155516: EVENT: Top#Humidity=39.40
155613: DHT  : Temperature: 23.10
155616: DHT  : Humidity: 38.60
155672: ADC  : Analog value: 3245 = 3245.00
155688: EVENT: Down#Temperature=23.00
155783: ADC  : Analog value: 0 = 0.00
155813: ADC  : Analog value: 2634 = 2634
155840: EVENT: Down#Humidity=38.70
155954: EVENT: Outside#Temperature=23.10
156041: EVENT: Outside#Humidity=38.60
156119: EVENT: Rules#Timer=1,1
156362: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
156382: ACT  : timerSet,1,1
156433: EVENT: Moisture#All=3219.00
156522: DHT  : Temperature: 23.00
156525: DHT  : Humidity: 39.40
156565: DHT  : Temperature: 23.00
156568: DHT  : Humidity: 38.70
156610: DHT  : Temperature: 23.10
156613: DHT  : Humidity: 38.60
156644: ADC  : Analog value: 3239 = 3239.00
156660: EVENT: Leak#Analog=0.00
156743: ADC  : Analog value: 0 = 0.00
156786: ADC  : Analog value: 2631 = 2631
156809: EVENT: Bat#Analog=2640
156892: EVENT: Top#Temperature=23.00
156963: EVENT: Top#Humidity=39.40
157060: EVENT: Down#Temperature=23.00
157133: EVENT: Down#Humidity=38.70
157236: EVENT: Outside#Temperature=23.10
157333: EVENT: Outside#Humidity=38.70
157496: DHT  : Temperature: 23.00
157499: DHT  : Humidity: 39.40
157512: EVENT: Rules#Timer=1,1
157681: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
157701: ACT  : timerSet,1,1
157768: DHT  : Temperature: 23.00
157770: DHT  : Humidity: 38.70
157784: EVENT: Moisture#All=3248.00
157879: DHT  : Temperature: 23.10
157881: DHT  : Humidity: 38.60
157916: ADC  : Analog value: 3248 = 3248.00
157946: ADC  : Analog value: 0 = 0.00
157982: ADC  : Analog value: 2640 = 2640
158006: EVENT: Leak#Analog=0.00
158094: EVENT: Bat#Analog=2643
158185: EVENT: Top#Temperature=23.00
158287: EVENT: Top#Humidity=39.40
158455: DHT  : Temperature: 23.00
158457: DHT  : Humidity: 39.40
158473: EVENT: Down#Temperature=23.00
158565: DHT  : Temperature: 23.00
158567: DHT  : Humidity: 38.70
158607: DHT  : Temperature: 23.10
158610: DHT  : Humidity: 38.60
158627: EVENT: Down#Humidity=38.70
158720: ADC  : Analog value: 3239 = 3239.00
158764: ADC  : Analog value: 0 = 0.00
158799: ADC  : Analog value: 2642 = 2642
158821: EVENT: Outside#Temperature=23.10
158903: EVENT: Rules#Timer=1,1
159089: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
159110: ACT  : timerSet,1,1
159173: EVENT: Outside#Humidity=38.70
159366: EVENT: Moisture#All=3249.00
159465: DHT  : Temperature: 23.10
159468: DHT  : Humidity: 39.40
159490: EVENT: Leak#Analog=0.00
159595: DHT  : Temperature: 23.00
159598: DHT  : Humidity: 38.70
159633: DHT  : Temperature: 23.20
159636: DHT  : Humidity: 38.60
159668: ADC  : Analog value: 3241 = 3241.00
159698: ADC  : Analog value: 0 = 0.00
159714: EVENT: Bat#Analog=2642
159813: ADC  : Analog value: 2642 = 2642
159845: EVENT: Top#Temperature=23.00
159936: EVENT: Top#Humidity=39.50
160018: EVENT: Down#Temperature=23.00
160098: EVENT: Down#Humidity=38.70
160250: EVENT: Rules#Timer=1,1
160445: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.10', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.51', 'Tempe
160465: ACT  : timerSet,1,1
160546: EVENT: Outside#Temperature=23.10
160650: DHT  : Temperature: 23.00
160652: DHT  : Humidity: 39.40
160689: DHT  : Temperature: 23.00
160691: DHT  : Humidity: 38.70
160727: DHT  : Temperature: 23.20
160730: DHT  : Humidity: 38.60
160772: ADC  : Analog value: 3229 = 3229.00
160802: ADC  : Analog value: 0 = 0.00
160833: ADC  : Analog value: 2640 = 2640
160857: EVENT: Outside#Humidity=38.70
160956: EVENT: Moisture#All=3239.00
161146: EVENT: Leak#Analog=0.00
161234: EVENT: Bat#Analog=2643
161315: EVENT: Top#Temperature=23.00
161423: DHT  : Temperature: 23.00
161425: DHT  : Humidity: 39.40
161443: EVENT: Top#Humidity=39.50
161543: DHT  : Temperature: 23.00
161546: DHT  : Humidity: 38.70
161588: DHT  : Temperature: 23.10
161591: DHT  : Humidity: 38.60
161609: EVENT: Down#Temperature=23.00
161689: EVENT: Rules#Timer=1,1
161880: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
161902: ACT  : timerSet,1,1
161966: ADC  : Analog value: 3267 = 3267.00
162091: ADC  : Analog value: 0 = 0.00
162128: ADC  : Analog value: 2640 = 2640
162144: EVENT: Down#Humidity=38.80
162243: EVENT: Outside#Temperature=23.10
162347: EVENT: Outside#Humidity=38.80
162441: DHT  : Temperature: 23.00
162443: DHT  : Humidity: 39.40
162483: DHT  : Temperature: 23.00
162486: DHT  : Humidity: 38.70
162504: EVENT: Moisture#All=3264.00
162603: DHT  : Temperature: 23.10
162606: DHT  : Humidity: 38.70
162661: ADC  : Analog value: 3248 = 3248.00
162677: EVENT: Leak#Analog=0.00
162770: ADC  : Analog value: 0 = 0.00
162800: ADC  : Analog value: 2640 = 2640
162828: EVENT: Bat#Analog=2641
162917: EVENT: Top#Temperature=23.00
162991: EVENT: Rules#Timer=1,1
163183: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
163284: ACT  : timerSet,1,1
163333: EVENT: Top#Humidity=39.60
163456: DHT  : Temperature: 23.00
163459: DHT  : Humidity: 39.40
163503: DHT  : Temperature: 23.00
163507: DHT  : Humidity: 38.70
163539: EVENT: Down#Temperature=23.00
163632: DHT  : Temperature: 23.20
163636: DHT  : Humidity: 38.60
163676: ADC  : Analog value: 3248 = 3248.00
163706: ADC  : Analog value: 0 = 0.00
163737: ADC  : Analog value: 2640 = 2640
163754: EVENT: Down#Humidity=38.80
163839: EVENT: Outside#Temperature=23.10
163951: EVENT: Outside#Humidity=38.80
164034: EVENT: Moisture#All=3234.00
164134: EVENT: Leak#Analog=0.00
164233: EVENT: Bat#Analog=2641
164302: EVENT: Rules#Timer=1,1
164498: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
164603: ACT  : timerSet,1,1
164665: EVENT: Top#Temperature=23.00
164758: DHT  : Temperature: 23.00
164761: DHT  : Humidity: 39.40
164794: DHT  : Temperature: 23.00
164797: DHT  : Humidity: 38.70
164838: DHT  : Temperature: 23.20
164841: DHT  : Humidity: 38.70
164873: ADC  : Analog value: 3231 = 3231.00
164912: ADC  : Analog value: 0 = 0.00
164943: ADC  : Analog value: 2636 = 2636
164968: EVENT: Top#Humidity=39.60
165070: EVENT: Down#Temperature=23.00
165191: EVENT: Down#Humidity=38.80
165271: EVENT: Outside#Temperature=23.10
165376: DHT  : Temperature: 23.00
165378: DHT  : Humidity: 39.40
165398: EVENT: Outside#Humidity=38.80
165496: DHT  : Temperature: 23.00
165498: DHT  : Humidity: 38.70
165541: DHT  : Temperature: 23.20
165544: DHT  : Humidity: 38.60
165562: EVENT: Moisture#All=3245.00
165658: ADC  : Analog value: 3238 = 3238.00
165783: ADC  : Analog value: 0 = 0.00
165799: EVENT: Leak#Analog=0.00
165893: ADC  : Analog value: 2643 = 2643
165903: EVENT: Rules#Timer=1,1
166098: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
166121: ACT  : timerSet,1,1
166190: EVENT: Bat#Analog=2640
166294: EVENT: Top#Temperature=23.00
166401: DHT  : Temperature: 23.00
166404: DHT  : Humidity: 39.40
166421: EVENT: Top#Humidity=39.60
166526: DHT  : Temperature: 23.00
166529: DHT  : Humidity: 38.70
166566: DHT  : Temperature: 23.10
166569: DHT  : Humidity: 38.60
166650: EVENT: Down#Temperature=23.00
166746: ADC  : Analog value: 3251 = 3251.00
166799: ADC  : Analog value: 0 = 0.00
166829: ADC  : Analog value: 2642 = 2642
166846: EVENT: Down#Humidity=38.80
166937: EVENT: Outside#Temperature=23.10
167022: EVENT: Outside#Humidity=38.80
167105: EVENT: Moisture#All=3251.00
167186: EVENT: Rules#Timer=1,1
167374: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
167395: ACT  : timerSet,1,1
167475: EVENT: Leak#Analog=0.00
167641: DHT  : Temperature: 23.00
167644: DHT  : Humidity: 39.40
167686: DHT  : Temperature: 23.00
167689: DHT  : Humidity: 38.70
167726: DHT  : Temperature: 23.10
167729: DHT  : Humidity: 38.70
167761: ADC  : Analog value: 3242 = 3242.00
167792: ADC  : Analog value: 0 = 0.00
167808: EVENT: Bat#Analog=2640
167904: ADC  : Analog value: 2639 = 2639
167942: EVENT: Top#Temperature=23.00
168030: EVENT: Top#Humidity=39.60
168111: EVENT: Down#Temperature=23.00
168228: EVENT: Down#Humidity=38.80
168309: EVENT: Outside#Temperature=23.10
168414: DHT  : Temperature: 23.00
168416: DHT  : Humidity: 39.40
168454: DHT  : Temperature: 23.00
168457: DHT  : Humidity: 38.70
168469: EVENT: Rules#Timer=1,1
168666: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
168688: ACT  : timerSet,1,1
168825: EVENT: Outside#Humidity=38.80
168929: DHT  : Temperature: 23.20
168931: DHT  : Humidity: 38.60
168963: ADC  : Analog value: 3265 = 3265.00
168993: ADC  : Analog value: 0 = 0.00
169024: ADC  : Analog value: 2642 = 2642
169055: EVENT: Moisture#All=3274.00
169158: EVENT: Leak#Analog=0.00
169242: EVENT: Bat#Analog=2635
169337: EVENT: Top#Temperature=23.00
169435: DHT  : Temperature: 23.00
169438: DHT  : Humidity: 39.40
169471: DHT  : Temperature: 23.00
169474: DHT  : Humidity: 38.70
169491: EVENT: Top#Humidity=39.60
169596: DHT  : Temperature: 23.20
169599: DHT  : Humidity: 38.70
169632: ADC  : Analog value: 3231 = 3231.00
169710: EVENT: Down#Temperature=23.00
169805: ADC  : Analog value: 0 = 0.00
169879: ADC  : Analog value: 2640 = 2640
169895: EVENT: Rules#Timer=1,1
170094: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
170116: ACT  : timerSet,1,1
170171: EVENT: Down#Humidity=38.80
170271: EVENT: Outside#Temperature=23.10
170394: DHT  : Temperature: 23.10
170397: DHT  : Humidity: 39.40
170421: EVENT: Outside#Humidity=38.80
170578: DHT  : Temperature: 23.00
170581: DHT  : Humidity: 38.70
170626: DHT  : Temperature: 23.10
170629: DHT  : Humidity: 38.60
170646: EVENT: Moisture#All=3231.00
170741: ADC  : Analog value: 3248 = 3248.00
170777: ADC  : Analog value: 0 = 0.00
170807: ADC  : Analog value: 2640 = 2640
170831: EVENT: Leak#Analog=0.00
170924: EVENT: Bat#Analog=2640
171004: EVENT: Top#Temperature=23.00
171087: EVENT: Top#Humidity=39.50
171168: EVENT: Rules#Timer=1,1
171354: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.10', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.51', 'Tempe
171374: ACT  : timerSet,1,1
171453: EVENT: Down#Temperature=23.00
171629: DHT  : Temperature: 23.00
171631: DHT  : Humidity: 39.40
171673: DHT  : Temperature: 23.00
171676: DHT  : Humidity: 38.70
171712: DHT  : Temperature: 23.10
171715: DHT  : Humidity: 38.70
171748: ADC  : Analog value: 3242 = 3242.00
171779: ADC  : Analog value: 0 = 0.00
171795: EVENT: Down#Humidity=38.80
171894: ADC  : Analog value: 2637 = 2637
171936: EVENT: Outside#Temperature=23.10
172033: EVENT: Outside#Humidity=38.80
172123: EVENT: Moisture#All=3234.00
172208: EVENT: Leak#Analog=0.00
172319: EVENT: Bat#Analog=2642
172426: DHT  : Temperature: 23.00
172429: DHT  : Humidity: 39.50
172445: EVENT: Rules#Timer=1,1
172630: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.50', 'DewPoint-Top':'8.45', 'Tempe
172652: ACT  : timerSet,1,1
172710: EVENT: Top#Temperature=23.00
172893: DHT  : Temperature: 23.00
172895: DHT  : Humidity: 38.70
172943: DHT  : Temperature: 23.20
172946: DHT  : Humidity: 38.70
172978: ADC  : Analog value: 3249 = 3249.00
173009: ADC  : Analog value: 0 = 0.00
173039: ADC  : Analog value: 2641 = 2641
173064: EVENT: Top#Humidity=39.50
173164: EVENT: Down#Temperature=23.00
173269: EVENT: Down#Humidity=38.80
173394: DHT  : Temperature: 23.00
173397: DHT  : Humidity: 39.40
173413: EVENT: Outside#Temperature=23.10
173516: DHT  : Temperature: 23.00
173519: DHT  : Humidity: 38.70
173554: DHT  : Temperature: 23.10
173557: DHT  : Humidity: 38.60
173574: EVENT: Outside#Humidity=38.80
173668: ADC  : Analog value: 3247 = 3247.00
173705: ADC  : Analog value: 0 = 0.00
173739: ADC  : Analog value: 2640 = 2640
173755: EVENT: Rules#Timer=1,1
173953: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
174070: ACT  : timerSet,1,1
174125: EVENT: Moisture#All=3246.00
174239: EVENT: Leak#Analog=0.00
174330: EVENT: Bat#Analog=2642
174418: DHT  : Temperature: 23.00
174421: DHT  : Humidity: 39.40
174456: DHT  : Temperature: 23.00
174460: DHT  : Humidity: 38.70
174485: EVENT: Top#Temperature=23.00
174568: DHT  : Temperature: 23.20
174571: DHT  : Humidity: 38.70
174617: ADC  : Analog value: 3237 = 3237.00
174640: EVENT: Top#Humidity=39.50
174720: ADC  : Analog value: 0 = 0.00
174750: ADC  : Analog value: 2641 = 2641
174777: EVENT: Down#Temperature=23.00
174852: EVENT: Down#Humidity=38.80
174997: EVENT: Outside#Temperature=23.10
175084: EVENT: Outside#Humidity=38.70
175156: EVENT: Rules#Timer=1,1
175338: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
175358: ACT  : timerSet,1,1
175441: EVENT: Moisture#All=3248.00
175546: DHT  : Temperature: 23.00
175548: DHT  : Humidity: 39.40
175590: DHT  : Temperature: 23.00
175593: DHT  : Humidity: 38.70
175630: DHT  : Temperature: 23.20
175633: DHT  : Humidity: 38.70
175672: ADC  : Analog value: 3225 = 3225.00
175689: EVENT: Leak#Analog=0.00
175785: ADC  : Analog value: 0 = 0.00
175906: ADC  : Analog value: 2639 = 2639
175930: EVENT: Bat#Analog=2638
176014: EVENT: Top#Temperature=23.00
176094: EVENT: Top#Humidity=39.50
176178: EVENT: Down#Temperature=23.00
176258: EVENT: Down#Humidity=38.80
176347: EVENT: Outside#Temperature=23.10
176438: DHT  : Temperature: 23.00
176441: DHT  : Humidity: 39.40
176461: EVENT: Rules#Timer=1,1
176632: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
176652: ACT  : timerSet,1,1
176752: DHT  : Temperature: 23.00
176755: DHT  : Humidity: 38.70
176771: EVENT: Outside#Humidity=38.70
176871: DHT  : Temperature: 23.10
176874: DHT  : Humidity: 38.70
176915: ADC  : Analog value: 3248 = 3248.00
176946: ADC  : Analog value: 0 = 0.00
176982: ADC  : Analog value: 2640 = 2640
177010: EVENT: Moisture#All=3240.00
177176: EVENT: Leak#Analog=0.00
177285: EVENT: Bat#Analog=2642
177378: DHT  : Temperature: 23.00
177381: DHT  : Humidity: 39.40
177405: EVENT: Top#Temperature=23.00
177489: DHT  : Temperature: 23.00
177492: DHT  : Humidity: 38.70
177535: DHT  : Temperature: 23.20
177538: DHT  : Humidity: 38.70
177557: EVENT: Top#Humidity=39.50
177639: ADC  : Analog value: 3248 = 3248.00
177679: ADC  : Analog value: 0 = 0.00
177696: EVENT: Down#Temperature=23.00
177778: ADC  : Analog value: 2641 = 2641
177795: EVENT: Rules#Timer=1,1
178000: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
178022: ACT  : timerSet,1,1
178083: EVENT: Down#Humidity=38.80
178262: EVENT: Outside#Temperature=23.10
178354: EVENT: Outside#Humidity=38.70
178458: DHT  : Temperature: 23.00
178461: DHT  : Humidity: 39.40
178486: EVENT: Moisture#All=3241.00
178585: DHT  : Temperature: 23.00
178588: DHT  : Humidity: 38.70
178630: DHT  : Temperature: 23.20
178633: DHT  : Humidity: 38.60
178666: ADC  : Analog value: 3232 = 3232.00
178705: ADC  : Analog value: 0 = 0.00
178721: EVENT: Leak#Analog=0.00
178817: ADC  : Analog value: 2642 = 2642
178880: EVENT: Bat#Analog=2641
178967: EVENT: Top#Temperature=23.00
179053: EVENT: Top#Humidity=39.50
179126: EVENT: Rules#Timer=1,1
179321: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
179413: ACT  : timerSet,1,1
179472: EVENT: Down#Temperature=23.00
179582: DHT  : Temperature: 23.00
179585: DHT  : Humidity: 39.40
179620: DHT  : Temperature: 23.00
179623: DHT  : Humidity: 38.70
179659: DHT  : Temperature: 23.20
179662: DHT  : Humidity: 38.60
179703: ADC  : Analog value: 3233 = 3233.00
179734: ADC  : Analog value: 0 = 0.00
179756: EVENT: Down#Humidity=38.70
179848: ADC  : Analog value: 2643 = 2643
179872: EVENT: Outside#Temperature=23.10
179971: EVENT: Outside#Humidity=38.70
180052: EVENT: Moisture#All=3243.00
180136: EVENT: Leak#Analog=0.00
180216: EVENT: Bat#Analog=2640
180296: EVENT: Top#Temperature=23.00
180476: DHT  : Temperature: 23.00
180478: DHT  : Humidity: 39.40
180525: EVENT: Top#Humidity=39.50
180624: DHT  : Temperature: 23.00
180626: DHT  : Humidity: 38.70
180638: EVENT: Rules#Timer=1,1
180831: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
180852: ACT  : timerSet,1,1
180925: DHT  : Temperature: 23.20
180928: DHT  : Humidity: 38.60
180960: ADC  : Analog value: 3254 = 3254.00
180991: ADC  : Analog value: 0 = 0.00
181011: EVENT: Down#Temperature=23.00
181107: ADC  : Analog value: 2643 = 2643
181138: EVENT: Down#Humidity=38.70
181238: EVENT: Outside#Temperature=23.10
181379: EVENT: Outside#Humidity=38.70
181478: DHT  : Temperature: 23.00
181481: DHT  : Humidity: 39.40
181523: DHT  : Temperature: 23.00
181525: DHT  : Humidity: 38.60
181542: EVENT: Moisture#All=3227.00
181642: DHT  : Temperature: 23.20
181645: DHT  : Humidity: 38.60
181676: ADC  : Analog value: 3233 = 3233.00
181713: ADC  : Analog value: 0 = 0.00
181743: ADC  : Analog value: 2641 = 2641
181759: EVENT: Leak#Analog=0.00
181849: EVENT: Bat#Analog=2640
181927: EVENT: Rules#Timer=1,1
182113: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
182133: ACT  : timerSet,1,1
182220: WD   : Uptime 3 ConnectFailures 0 FreeMem 123576 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
182222: WiFi : Scan not needed, good candidate present
182302: EVENT: Top#Temperature=23.00
182414: DHT  : Temperature: 23.10
182417: DHT  : Humidity: 39.40
182454: DHT  : Temperature: 23.00
182457: DHT  : Humidity: 38.70
182475: EVENT: Top#Humidity=39.50
182580: DHT  : Temperature: 23.20
182583: DHT  : Humidity: 38.60
182615: ADC  : Analog value: 3233 = 3233.00
182631: EVENT: Down#Temperature=23.00
182729: ADC  : Analog value: 0 = 0.00
182767: ADC  : Analog value: 2642 = 2642
182801: EVENT: Down#Humidity=38.80
182889: EVENT: Outside#Temperature=23.10
182978: EVENT: Outside#Humidity=38.70
183062: EVENT: Moisture#All=3243.00
183147: EVENT: Leak#Analog=0.00
183295: EVENT: Rules#Timer=1,1
183479: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.10', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.51', 'Tempe
183500: ACT  : timerSet,1,1
183558: EVENT: Bat#Analog=2643
183654: DHT  : Temperature: 23.10
183657: DHT  : Humidity: 39.40
183690: DHT  : Temperature: 23.00
183692: DHT  : Humidity: 38.60
183728: DHT  : Temperature: 23.10
183731: DHT  : Humidity: 38.70
183765: ADC  : Analog value: 3229 = 3229.00
183801: ADC  : Analog value: 0 = 0.00
183871: ADC  : Analog value: 2642 = 2642
183887: EVENT: Top#Temperature=23.00
183986: EVENT: Top#Humidity=39.50
184168: EVENT: Down#Temperature=23.00
184254: EVENT: Down#Humidity=38.70
184341: EVENT: Outside#Temperature=23.10
184450: DHT  : Temperature: 23.10
184453: DHT  : Humidity: 39.40
184477: EVENT: Outside#Humidity=38.70
184579: DHT  : Temperature: 23.00
184582: DHT  : Humidity: 38.70
184618: DHT  : Temperature: 23.20
184621: DHT  : Humidity: 38.60
184639: EVENT: Moisture#All=3226.00
184739: ADC  : Analog value: 3239 = 3239.00
184757: EVENT: Rules#Timer=1,1
184954: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.10', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.51', 'Tempe
184976: ACT  : timerSet,1,1
185154: ADC  : Analog value: 0 = 0.00
185184: ADC  : Analog value: 2640 = 2640
185199: EVENT: Leak#Analog=0.00
185301: EVENT: Bat#Analog=2642
185421: DHT  : Temperature: 23.00
185424: DHT  : Humidity: 39.40
185460: DHT  : Temperature: 23.00
185464: DHT  : Humidity: 38.70
185482: EVENT: Top#Temperature=23.00
185585: DHT  : Temperature: 23.20
185588: DHT  : Humidity: 38.60
185620: ADC  : Analog value: 3233 = 3233.00
185637: EVENT: Top#Humidity=39.50
185734: ADC  : Analog value: 0 = 0.00
185787: ADC  : Analog value: 2642 = 2642
185807: EVENT: Down#Temperature=23.00
185926: EVENT: Down#Humidity=38.70
186009: EVENT: Rules#Timer=1,1
186205: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
186306: ACT  : timerSet,1,1
186352: EVENT: Outside#Temperature=23.10
186454: DHT  : Temperature: 23.00
186457: DHT  : Humidity: 39.40
186493: DHT  : Temperature: 23.00
186496: DHT  : Humidity: 38.70
186555: DHT  : Temperature: 23.20
186558: DHT  : Humidity: 38.60
186576: EVENT: Outside#Humidity=38.70
186664: ADC  : Analog value: 3238 = 3238.00
186700: ADC  : Analog value: 0 = 0.00
186731: ADC  : Analog value: 2645 = 2645
186747: EVENT: Moisture#All=3242.00
186832: EVENT: Leak#Analog=0.00
186908: EVENT: Bat#Analog=2637
186980: EVENT: Top#Temperature=23.00
187074: EVENT: Top#Humidity=39.50
187151: EVENT: Down#Temperature=23.00
187254: EVENT: Down#Humidity=38.80
187315: EVENT: Rules#Timer=1,1
187498: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
187601: ACT  : timerSet,1,1
187680: DHT  : Temperature: 23.10
187682: DHT  : Humidity: 39.40
187698: EVENT: Outside#Temperature=23.10
187792: DHT  : Temperature: 23.00
187795: DHT  : Humidity: 38.70
187833: DHT  : Temperature: 23.20
187836: DHT  : Humidity: 38.60
187868: ADC  : Analog value: 3235 = 3235.00
187905: ADC  : Analog value: 0 = 0.00
187935: ADC  : Analog value: 2639 = 2639
187960: EVENT: Outside#Humidity=38.70
188067: EVENT: Moisture#All=3227.00
188154: EVENT: Leak#Analog=0.00
188244: EVENT: Bat#Analog=2634
188332: EVENT: Top#Temperature=23.00
188440: DHT  : Temperature: 23.00
188443: DHT  : Humidity: 39.40
188478: DHT  : Temperature: 23.00
188481: DHT  : Humidity: 38.70
188499: EVENT: Top#Humidity=39.40
188605: DHT  : Temperature: 23.10
188608: DHT  : Humidity: 38.60
188640: ADC  : Analog value: 3243 = 3243.00
188678: ADC  : Analog value: 0 = 0.00
188784: ADC  : Analog value: 2637 = 2637
188800: EVENT: Down#Temperature=23.00
188915: EVENT: Rules#Timer=1,1
189112: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.00', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.42', 'Tempe
189135: ACT  : timerSet,1,1
189191: EVENT: Down#Humidity=38.70
189295: EVENT: Outside#Temperature=23.10
189405: DHT  : Temperature: 23.10
189408: DHT  : Humidity: 39.40
189425: EVENT: Outside#Humidity=38.70
189531: DHT  : Temperature: 23.00
189534: DHT  : Humidity: 38.70
189570: DHT  : Temperature: 23.10
189573: DHT  : Humidity: 38.60
189595: EVENT: Moisture#All=3280.00
189765: ADC  : Analog value: 3275 = 3275.00
189820: ADC  : Analog value: 0 = 0.00
189850: ADC  : Analog value: 2642 = 2642
189866: EVENT: Leak#Analog=0.00
189957: EVENT: Bat#Analog=2633
190041: EVENT: Top#Temperature=23.00
190128: EVENT: Top#Humidity=39.50
190211: EVENT: Rules#Timer=1,1
190403: ACT  : Publish ****/json/Sensor_2, '{'Temperture-Top':'23.10', 'Humidity-Top':'39.40', 'DewPoint-Top':'8.51', 'Tempe
190425: ACT  : timerSet,1,1
190479: EVENT: Down#Temperature=23.00
190588: DHT  : Temperature: 23.00
190591: DHT  : Humidity: 39.40
190625: DHT  : Temperature: 23.00
Rule Set 2:

Code: Select all

on remote_sleep#SleepStatus do
logentry,"EV1: %eventvalue1%  EV2: %eventvalue2%"
endon
Q:Also I don't see what you're trying to tell in that screenshot as I don't see a logentry sent from the rules, or am I missing something?
A: My understanding is implementing logentry in the rules will show the values in the log. Potentially i didn't got the instruction right.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Switch ESP via MQTT in sleep Mode

#23 Post by TD-er » 14 Oct 2021, 10:30

Yep it should occur in the log.
If it doesn't, then the event is not being processed.

You can test it by generating the event yourself in the command field on the tools page:

Code: Select all

event,"remote_sleep#SleepStatus=123,456"
Or without any eventvalues, so you can see the difference in the logs:

Code: Select all

event,"remote_sleep#SleepStatus"

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests