-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Shelly addon / sensor module #7469
Comments
As the module 'clicks' onto the standard available GPIO pins of the Shelly 1, I would assume the module communicates with serial communication over the RX/TX pins. As no useful other GPIO pin is available for the click on module. Which sadly makes it a bit more work to implement I guess. But would be really nice if it can get support in Tasmota. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Let someone buy it, crack it open and report pin lay-out. |
I have some at home. |
@vergoossen Nice, thanks, is it however possible for you to get some better/sharper pictures? |
What kind of pictures do you want, what do you want to see? |
Guess that I just mean sharper close-ups so that you can clearly see all paths & chip text + orientations? |
Way better. No we know the 8-pin chip is a TexasInstruments ISO7221 Dual channel Digital Isolator. GPIO03 is connected to pin 2 and would become an input. Both pins 6 and 7 are connected together and fed through to the second pin on the connector where the DS18B20 is connected. So it seems in order to talk to the DS18B20 we will need a driver sending data to the DS18B20 via GPIO00 and receiving data from the DS18B20 via GPIO03. |
Hmm, that sounds like a lot of work? |
At first it would be a separate driver for any sensor where it is even questionable if it would work for other sensors considering the two pin to one wire construction. |
Looks to me like a nice hobby project for someone who loves Shelly and sensors ;-) |
Haha yes, unfortunately I can't write C, only "web languages". |
Maybe it's not that simple, but: |
No it's not that simple. The single wire protocol used by DS18B20 is timing dependant. What you could try is
Seeing what I wrote there is much more to it. I think I make a basic writeup for this sensor for Shelly and let you test. Hold on. |
Ok, first post was wrong. The TI is mono directional. So theo is right. We need two different GPIOs to to transmit and receive. I'm still not sure where VCC and GND are located on the external connector. 1,2 are the GPIOs, 3 should be VCC and the rest GND. The Suotek is a transformer but I can't find a datasheet to the exact type but this looks really close http://www.suotek.com/en/products_view.asp?id=102. http://www.ti.com/lit/ds/sllsea0h/sllsea0h.pdf is the 6501 close to the suotek transformer. |
Experimental DS18x20 for Shelly (#7469)
Give the latest commit a try. You will have to compile yourself and make the changes I mentionend above in either |
Do I still need to configure something in web interface? |
Turn seriallog off |
I suggest you start reading this issue from the top down and proceed to the one you just entered. |
I guess more should work up to 8 but it all depends on how you connected them and if the shelly can power them. To rule out the fourth being broken did you already swap it with the third? |
Is it possible to connect jsn-sr04t to shelly 1PM using shelly addon and above tasmota extension ? |
You can connect anything but there is no driver support for this device using the shelly addon. |
Fix missing picture. Add info about the supported "Temperature Sensor AddOn for Shelly 1/1PM" with link to the discussion arendst/Tasmota#7469 . Still TODO - add proper template info for using the addon with ds18B20.
Purely out of academic interest (for now): Would it be possible to connect an LCD module via the 1-wire interface with the addon? I'm thinking room thermostat which drives radiator valves, with a thermometer and a display, and maybe some buttons. |
Hi, |
@pilot1981 I don't know tasmota, but the add-on implements the 1-wire bus, so you need to make your reed switches talk to that, and have a driver in tasmota that supports that. Shelly supports 1 reed switch that simply shorts the signal to ground (I believe), so then you can only have 1 |
Would it be easy to change the maximum amount of DS18B20 sensors in the software? |
And what do you think the limit is ? |
As Shelly is limiting it to 3 sensors, I was thinking it was just copied those settings for example. |
@barbudor so you are able to use n.18 DS18B20 attached to the same shelly 1 using TASMOTA firmware? I think limit is related only to array dimension defined in TASMOTA firmware... |
The max limit is defined using Nothing stops you to change that to a different value but you will have to re-compile your binary. An issue regarding Shelly is the fact that the hardware implementation uses two GPIO's to communicate with the DS18X20 devices making timing a problem resulting probably in the in-ability to support 18 devices. |
Would it be possible to use the XKC-Y25-NPN as well? |
Hi all, I have connected to my Shelly 1pm temperature sensors DS18B20 via the addon sensor module. Now the timers do not work anymore. I had set up 16 timers to control (on/off) of my circulation pump. Likewise, the WEB interface responds very poorly, manual switching also does not work safely, obviously the 1pm restarts again and again. I'm using follwing Template: {"NAME":"Shelly 1PM Temp","GPIO":[1,1,0,1,192,2720,0,0,0,0,0,224,0,4736],"FLAG":0,"BASE":18} Who knows similar problems or what am I doing wrong? Please for help! |
Hi, that seems to be an excess in power consumption. Do you have restarts when you disconnect the sensor? |
Is it possible to use 2xDHT22 (AM2032) sensors in Shelly 1 with Add-on & Tasmota? |
Hey, have you been able to run at least on DHT22 with the Shelly1 Add-On based on Tasmota? |
Yes, sure. But there's not much sense for me to run Tasmota on Shelly as device itself unlike other ESP's does not physically support connectivity of more than 1 humidity sensor. |
my experience was, that the wifi connection in the 1pm is far more stable wenn running tasmota as when the original firmware is installed. This matters when the sensor is in a cellar or behind concrete walls for example. |
Hello, thanks for your input. For my application, it is OK to have one DHT22. (bathroom - thermostat + ventilation control) |
As of 1/24/2024, DS18x20 is supported. See current development branch. See updated template as well |
It was already supported for a long time, as this thread relates to ESP8266, not ESP32 and the "plus" variant of Shelly devices where it got to be supported very recently. |
my bad, I apologise, I made a confusion because of numerous opened tabs in internet browser. |
Have you looked for this feature in other issues and in the docs?
Yes, couldn't find anything.
Is your feature request related to a problem? Please describe.
https://shop.shelly.cloud/temperature-sensor-addon-for-shelly-1-1pm-wifi-smart-home-automation#312
Tried to assign al gpio's to ds18b20 sensor, but it doesn't work. I think this module needs an additonal driver.
Describe the solution you'd like
Should be nice if Tasmota can support this module, it's great to attach inwall / in switchbox sensors.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: