Replies: 32 comments
-
Hi,
good luck |
Beta Was this translation helpful? Give feedback.
-
I have other 2 projects with 2x 8 Ds build by myself and i don't have any problems with 1-wire connection (8266 to mqtt and arduino with display). Changing pullup res no resolved problem. |
Beta Was this translation helpful? Give feedback.
-
interesting. Saw this too. We could add a check in the code to ignore this value. @MichaelDvP ? |
Beta Was this translation helpful? Give feedback.
-
85 degrees are in valid range of sensor measurement, ignoring it will also skip correct measurements. Checked the logged sensors, sensors publishes on change, so there is no value missing. Not a single 85°C value in this year (before the sensors are not named and logs stored with ID). |
Beta Was this translation helpful? Give feedback.
-
I think just one of your 8 sensors is faulty. |
Beta Was this translation helpful? Give feedback.
-
Yesterday i enabled "clean session" in mqtt settings, and now only 2 sensors have glitches 85degC... maybe i don't understand ems-esp software algorithm? |
Beta Was this translation helpful? Give feedback.
-
I have a lot of different kind of DS sensors and try to change it, cable harness, etc... In other post i wrote, that it doesn't matter. I have other 2 projests with 8 DS sensors - i connected existed with all cable harnesses (connected to EMS) to this hardware and all is ok. In each project sensors works in parasite mode. |
Beta Was this translation helpful? Give feedback.
-
Mqtt settings have no inflluence on dallas. What port are you using (add settings), The default port have an internal pull-up, no need to add one. What resistance do you have added? What power do you use (parasite/3.3/5V)? |
Beta Was this translation helpful? Give feedback.
-
With EMS default hardware pullup resistor only up to 4 sensors working propelly. When I added more - i have no readings from all sensor. I added external pullup - sensor now working ok, but glitches :). Power - parasite, and sensors i have, working propely in parasite power - believe me! I have in my house 2 projects (EMS and ESP8266) and in other house one with the same kind of sensors, but connected to Arduino with long, long cheap cable harnesses (parallel with grid 230v cables), and all it's ok. |
Beta Was this translation helpful? Give feedback.
-
From the datasheet:
|
Beta Was this translation helpful? Give feedback.
-
OK, any solution? |
Beta Was this translation helpful? Give feedback.
-
BTW - here is my lovelace with eight DS and other sensors from Bosch (productivity env.) And from oher location: And lovelace from my backup server: |
Beta Was this translation helpful? Give feedback.
-
Nice but useless pictures, my questions about settings and resistance value are still not answered. |
Beta Was this translation helpful? Give feedback.
-
4,7kOhm in parallel with default - finnaly, as usual. |
Beta Was this translation helpful? Give feedback.
-
This is the 8 sens. connected from ems-esp to arduino with his harness in parasite power. Works nice. |
Beta Was this translation helpful? Give feedback.
-
@gaszu - do you have any issues with frequent restarts or RX errors on the EMS bus? I am still getting DS18B20 errors, but have an ongoing intermittent issue with the power supply. This shows up as excessive restarts and RX Incomplete errors. I suspect it may also be causing the DS18B20 errors. Hence my interest in whether you are seeing these too. |
Beta Was this translation helpful? Give feedback.
-
NO, i don't have any RX errors. |
Beta Was this translation helpful? Give feedback.
-
No. I've found a solution. I've changed mqtt publish intervals to "0" - meens auto. No glitches. |
Beta Was this translation helpful? Give feedback.
-
That's interesting, so all intervals or just the one for "Temperature Sensors"? |
Beta Was this translation helpful? Give feedback.
-
All |
Beta Was this translation helpful? Give feedback.
-
and there were all set to 10 seconds before? Can you put them all back to 10 except Temperature Sensor and see if that works without errors? It'll help pinpoint where the actual bug is. |
Beta Was this translation helpful? Give feedback.
-
ok, i've changed. We have to wait 1-2 days ok? |
Beta Was this translation helpful? Give feedback.
-
Perfect. Thanks |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've taken the coward's way out of this for now and added some bad code to my sensor.yaml...
I may need to tweak the settings but this should will replace any outlier spikes with the median of the four previous samples, whilst hopefully allowing valid data through. I had no idea this could be implemented that easily in HA with the filter integration. I will continue to monitor the raw data but it will, at least, tidy up my dashboard graphs for now. |
Beta Was this translation helpful? Give feedback.
-
With this setup i have 1, 2 glitches per day. IT is acceptable. But with 3.4.1b2 is another problem. After restart no automatic mqtt conn. I have to go to mqtt settings tab, click save, than mqtt conecrs to my ha server. On previous versions i hadn't any problem. |
Beta Was this translation helpful? Give feedback.
-
Ok so somehow the wifi connectivity with MQTT is interfering with the Dallas sensors. EMS-ESP sends a lot of data out very frequently. The way to solve this is for me or Michael to recreate a similar scenario by stringing together some sensors and load testing it. For the MQTT reconnect, I haven't seen this behaviour. Can you log a new GH issue for that? |
Beta Was this translation helpful? Give feedback.
-
I've disabled wifi long time ago. Now I've only Ethernet connected (100/1000). |
Beta Was this translation helpful? Give feedback.
-
ah ok. still, we need to simulate this somehow as myself, Michael and Kees are not experiencing the same issue. It looks like MQTT is interfering with the Dallas reads |
Beta Was this translation helpful? Give feedback.
-
Hi!




I have a EMS-ESP for over 5 months connected to Home Assistant, im always stay up to date with firmware. I've connected 8 DS sesnsors with additional pullup resistor. Frequently i have readings of all sensors 85deg Celsius for few seconds (85deg C in the same time for all sensors). I try to change, harness, manufacturer and number of sensor - it doesn't matter. All the time the same... I've try to connect EMS gateway to my HA by wifi or Lan - no change. It looks like in attachment :
All the time glitches....
I have no problem with lan connection, no mqtt errors and no errors in log. All works perfectly, but that strength random readings...
EMS-ESP Version
v3.4.0b11
Device (Platform / SDK)
ESP32 / v3.3.5-1-g85c43024c
System Uptime
006+21:52:05.112
CPU Frequency
240 MHz
Heap (Free / Max Alloc)
143 396 / 72 208 bytes
Flash Chip (Size / Speed)
4 194 304 bytes / 40 MHz
File System (Used / Total)
24 576 / 65 536 bytes (40 960 bytes free)
Beta Was this translation helpful? Give feedback.
All reactions