Wemos D1 mini and Shelly1, nothing else!

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rickitaly
New 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: 8643
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: 3415
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 (PayPal.me)

rickitaly
New 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
New 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.

Sminter4
Normal user
Posts: 18
Joined: 04 Aug 2021, 23:25

Re: Wemos D1 mini and Shelly1, nothing else!

#6 Post by Sminter4 » 08 May 2023, 15:31

Hello, I have the same issue as you. I would like to query a special parameter on a Shelly device with a Wemos d1 mini + Espeasy. E.g. the temperature. And that without any other intermediary instance.

With http://192.168.178.144/status/
I could use a browser to read the parameter among many others.

Now I have two challenges.
1) How can I start such a request via ESPEasy?
2) How can I filter out the correct parameter from the response?

Is there perhaps an answer to this since 2021?

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

Re: Wemos D1 mini and Shelly1, nothing else!

#7 Post by Ath » 08 May 2023, 20:54

Not much in that area has changed, though PostToHTTP and PutToHTTP commands have been added, and there is an Issue in the GH Issue tracker with a very similar request: https://github.com/letscontrolit/ESPEasy/issues/4539
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests