My emonpi has been working fine for over a year with six DS18B20 sensors. Recently they stopped reporting any value. After a hard restart they resumed working fine.
Until now. They are not being recognised by the emonpi on boot up. And thus no values. Nothing had been changed, nothing added or updated.
Any ideas? Thanks.
[Confusing first sentence removed - Moderator (RW)]
We have heard reports of sensors failing, of course if only one has failed but it’s preventing the OneWire bus from working, then none will be recognised.
I’d suggest you first take a look generally for physical damage, then look at the connectors (for tarnish or other corrosion) - though after only a year that’s not all that likely; and then try to find if any are working, and take it from there. Bear in mind that they are only detected at power-up of the “emon” part of the emonPi, so rebooting isn’t good enough, it must be powered down and powered up again.
In the heading, you mention emonTx. If you have one, it would be easier to use that rather than your emonPi.
I thought there probably wasn’t an emonTx, but then I thought it was worth mentioning it just in case David was hinting that he had those things but the temperature sensors were only relevant to the emonPi. Certainly, if he’s got an emonTx, trying the sensors one by one in that and resetting it each time is a lot easier than shutting down and starting up the emonPi each time.
Hi, cause narrowed down to connector block from Sheepwalk electronics.
By connecting in a single sensor direct to the emonpi (all connections via RJ45) confirmed no problem on emonpi. Moved that single sensor to first connector block whereupon it was not recognized (all other connections to that block removed). Swapped for another connector block - success. Extended the line to next connector block and again all worked.
The connector block that did not work had accumulated quite a quantity of fluff across the pcb and its solder terminals. It was in use near the hot water tank with stock of towels, sheets, etc. Buried as these things ever are.
Using the dubious connector in place of the transferred block returned the sensor count to zero on bootup.
So I need a new connector block. Not sure there is much to fail in the connector block but failed it certainly has.
As a request for further info, is the recognition of sensors logged in any of the log flies under /var/log?
I think wrapping the new connector in a plastic bag might be a good idea.
All the temperature reading and conversion happens inside the “emon” part of the emonPi, only the actual numeric values are passed into the Raspberry Pi itself. I don’t think the sketch inside the “emon” front end allows for anything other than an automatic search for sensors, as explained in Learn→Electricity Monitoring→Temperature, neither does it appear to send a helpful error code like the emonTx does, so all I’d expect you to see is values of zero being recorded.
And to clarify - that means any sensor except pulse: voltage, current & temperature.
I had wrapped the connector that was moved because it was near the cooker in the kitchen but didn’t think the failed one needed the precaution. Live and learn.