13 Commits

Author SHA1 Message Date
gernot-h
90dc4577dc 52_I2C_HDC1008.pm: fix "PERL WARNING: Use of uninitialized value"
This fixes "PERL WARNING: Use of uninitialized value in concatenation
(.) or string at ./FHEM/52_I2C_HDC1008.pm line 180". The {type} element
seems to be completely unused in the rest of the code, no idea what the
intention of the original author was when adding it here.

Thanks to joco for reporting! (Forum: #115543)



git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23153 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2020-11-13 19:44:16 +00:00
gernot-h
48720778da 52_I2C_HDC1008.pm: Fix "temperature" reading (again)
Ouch, my last change from Aug, 1st (r22515) broke update of temperature
reading. Fix and simplify the temperature and humidity reading code -
hopefully finally.


git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2020-08-13 19:03:12 +00:00
gernot-h
c4cb9186ba 52_I2C_HDC1008.pm: Fix "temperature" reading update
This was updated twice on each sensor read with strange trigger settings
causing problems when used with "event-min-interval".


git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22515 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2020-08-01 18:44:37 +00:00
rudolfkoenig
06272160ae 10_UNIRoll.pm et al:fix =end html type errors (Forum #101114)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20792 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2019-12-20 17:32:00 +00:00
gernot-h
177c6044f9 52_I2C_HDC1008.pm: add TODO for useless exception handling
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16756 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-18 19:15:41 +00:00
gernot-h
c397dc7659 52_I2C_HDC1008.pm: further plausibility check for read values
According to datasheet of HDC1008 and HDC1080, least two bits of temp
and hum register shall always be "0", so ignore value if we see another
value there. This seems to finally eliminate sporadic readings of 125°C
and/or 100% rH.



git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16705 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-07 21:10:32 +00:00
gernot-h
c6a7dde4a5 52_I2C_HDC1008.pm: missing part of "read temperature and humidity in one step"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-07 21:06:27 +00:00
gernot-h
ba7bcc1477 52_I2C_HDC1008.pm: improve and restructure I2C error handling
The code used to ignore I2C write errors reported by the IODev (e.g.
when triggering a measurement) and just continued. While the subsequent
read should fail if sensor doesn't have values, it sometimes didn't for
me, leading to sporadic reading of 125°C and/or 100% rH. In case of
write errors, just retry current step until it succeeds.



git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16703 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-07 20:58:27 +00:00
gernot-h
c70d41e9be 52_I2C_HDC1008.pm: read temperature and humidity in one step
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16702 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-07 20:45:34 +00:00
gernot-h
c2b68c6a96 52_I2C_HDC1008.pm: maintainer change (Forum #87546)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16701 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2018-05-07 20:33:42 +00:00
schlawiano
0df1faa315 52_I2C_GY30_BH1750FVI: gibt bessere Variante
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-06-02 14:54:51 +00:00
schlawiano
e872dc294e 52_I2C_HDC1008: Bereinigung des Quelltextes. Kleiner Syntaxfehler
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11564 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-05-30 12:34:01 +00:00
schlawiano
835c62b382 I2C_HDC1008: added new module for measurement temperature and humidity via i2c-bus
I2C_GY30_BH1750FVI: added new module for light intensity via via i2c-bus

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11531 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-05-27 14:03:44 +00:00