more G-Labs products

Author Topic: DHT-22 Temperature & Humidity Sensor not working (difference between DHT-11?)  (Read 13372 times)

November 29, 2014, 12:11:40 AM
Reply #15

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi jshan,

in the new r431 there's a little modification to the DHT-22 app that might fix the problem you encountered.
If you have a chance to test it please let me know if it's working now.
I tested it with an old Raspberry Pi model B and it's working.
Btw thanks for sharing your workaround, it's a good way to get HG talk with other applications as well.

g.

January 14, 2015, 05:44:30 PM
Reply #16

Boeky

  • **
  • Information
  • Jr. Member
  • Posts: 31
Hi Gene,

Today I updated my Homegenie Rapberry pi module to the latest r453 to test the DHT-22 Temperature senso wich never worked for me.
I have to say it runs a lot less stable than before :-s Actually my module isn't usable anymore -> MCP23017 stop working, HomeGenie.Data.ModuleParameter' does not contain a definition for `LastUpdateTime' anymore so my trigger programs don't work anymore,...
I used my module for a long time with no problems, updating it to r453 completely makes it unusable...


About the DHT-22

The DHT-22 doesn't work quite well : I set the update time to 10 seconds to see the result a little bit faster
It might go well several times (random) but I keep ending with the program that stops with the error :

Code: [Select]
17:30:11.16 Runtime.Error CR: Array index is out of range. 63 HomeAutomation.HomeGenie.Automation
17:30:10.785 Program.Status Disabled 63 HomeAutomation.HomeGenie.Automation
17:29:54.685 Sensor.Temperature 19.9 63 HomeAutomation.HomeGenie.Automation
17:29:54.683 Sensor.Humidity 49.0 63 HomeAutomation.HomeGenie.Automation
17:29:44.658 Sensor.Temperature 19.9 63 HomeAutomation.HomeGenie.Automation
17:29:44.657 Sensor.Humidity 49.0 63 HomeAutomation.HomeGenie.Automation
17:29:28.565 Sensor.Temperature 19.9 63 HomeAutomation.HomeGenie.Automation
17:29:28.564 Sensor.Humidity 48.9 63 HomeAutomation.HomeGenie.Automation


Also my other programs like the double MCP23017, that worked fine before the update, stop working after several minutes due to errors. I'll make a seperate post for those....


Kind Regards,

Christophe

January 14, 2015, 06:07:44 PM
Reply #17

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
There was a change to the history/statistics system in the last release.  I don't believe LastUpdateTime exists anymore.  The value is available, but it is referenced differently.  I'm not sure that this change has made it to the documentation yet.