Wemos D1 mini and Shelly1, nothing else!

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rickitaly
Normal user
Posts: 4
Joined: 01 Dec 2019, 12:19

Wemos D1 mini and Shelly1, nothing else!

#1 Post by rickitaly » 21 May 2021, 15:37

Hello,
im developing a simple application with a Wemos D1 mini with ESPEASY and a Shelly1 (12VDC powered, original firmware, with a Temperature probe add-on) for an irrigation system.
I connect to the ESPEASY a Nextion display and some soil moisture sensors, together with a flow meter. The Shelly 1 command the solenoid for irrigation.
I am able from the Nextion to interact with all the devices and also with the Shelly thanks to the http commands i can manage with the ESPEASY rules and some Dummy device.
The only thing i miss is a way to get the env.temperature back from the Shelly Temp add-on somehow. Data is exposed by the shelly in the json i have at ip/status.
Is there a way for ESPEASY to get that value? As you can see i have no additional devices (and i would like to avoid it) so no MQTT broker available..
Thanks!

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

Re: Wemos D1 mini and Shelly1, nothing else!

#2 Post by TD-er » 21 May 2021, 15:52

Have you seen the ESPEasy p2p functionality?
https://espeasy.readthedocs.io/en/lates ... #c013-page
This allows you to send task values among other nodes as if the sensor was connected to that other node too.
Only drawback is that you need to use the same task index on both nodes. (and pay close attention to the documented steps, so make sure the unit nr is unique and not 0, nor 255)

Or you can send ESPEasy commands via p2p using the sendto command from rules.

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

Re: Wemos D1 mini and Shelly1, nothing else!

#3 Post by Ath » 21 May 2021, 15:59

Well, using the Shelly1 with original firmware will inhibit the use of an ESPEasy controller to read values.
And ESPEasy currently doesn't have anything to read a http source, and parse the result, so I think it is going to be quite an adventure to get that value out.

NB: This Shelly documentation page shows how you can get the values, we just can't process it using ESPEasy...
/Ton

rickitaly
Normal user
Posts: 4
Joined: 01 Dec 2019, 12:19

Re: Wemos D1 mini and Shelly1, nothing else!

#4 Post by rickitaly » 21 May 2021, 17:48

TD-er wrote: 21 May 2021, 15:52 Have you seen the ESPEasy p2p functionality?
https://espeasy.readthedocs.io/en/lates ... #c013-page
This allows you to send task values among other nodes as if the sensor was connected to that other node too.
Only drawback is that you need to use the same task index on both nodes. (and pay close attention to the documented steps, so make sure the unit nr is unique and not 0, nor 255)

Or you can send ESPEasy commands via p2p using the sendto command from rules.
Thanks for your answer!
How can i use this protocol to interface with a Shelly1 with original firmware?

rickitaly
Normal user
Posts: 4
Joined: 01 Dec 2019, 12:19

Re: Wemos D1 mini and Shelly1, nothing else!

#5 Post by rickitaly » 21 May 2021, 17:50

Ath wrote: 21 May 2021, 15:59 Well, using the Shelly1 with original firmware will inhibit the use of an ESPEasy controller to read values.
And ESPEasy currently doesn't have anything to read a http source, and parse the result, so I think it is going to be quite an adventure to get that value out.

NB: This Shelly documentation page shows how you can get the values, we just can't process it using ESPEasy...
Yes indeed the value is exposed and easy to get, on either MQTT, CoAP and HTTP. I could even set 2 limit values and trigger some action (like lower-upper temp actions) but still no possiblity to "push" the value.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests