My Home-IoT
Find a file
DAVe3283 f94e9b6b1e Add MAX31865 sensor support, fix MAX31855 sensor (#832)
* Add MAX31865 sensor support, fix MAX31855 sensor.

# MAX31865

Added support for the MAX31865 RTD-to-Digital Converter to measure PT100 and
similar RTDs. Verified with an Adafruit unit (product ID: 3328) and a PT100
probe.

# MAX31855

This was setup for incorrect SPI clock polarity and phase, and would return bad
data due to a race condition measuring on the wrong edge (verified with Saleae
Logic scope). Selecting the correct configuration fixes that problem.

Re-wrote the decode off the datasheet to handle error states better (sends NaN
as an update on failure to read temperature, which shows the value as Unknown
in Home Assistant).

Added the *optional* ability to monitor the internal high-precision temperature
sensor, which can be nice in some applications.

* Tests for MAX31855/MAX38165.

* Update style to match project rules.

Also fix CONF_REFERENCE_RESISTANCE and CONF_REFERENCE_TEMPERATURE being defined
multiple places. Missed this when I added them to const.py.

* Update style to match project rules.

Pylint line limit 101/100 ("missed it by that much").
Also apparently I can't read and patched the wrong line in max31855.cpp.

* Minor string/style cleanup.

There was a copy-paste leftover in max31855.cpp and max31865/sensor.py had
unnecessary whitespace.

* Improve MAX31865 fault detection and logging.

Log levels are more in-line with the documented descriptions.

Fault detection code is improved. A transient fault between reads is still
reported, but now only faults *during* a read cause the sensor to fail and
return NAN ("unknown" in Home Assistant).

* Update style to match project rules.

I just now realized the .clang-format and pylintrc files are included. D'oh!

* MAX31855 & MAX31865 code style alignment.

@OttoWinter caught some style mismatches, updated to match project better.

* Fix a lost '\' in max31865/sensor.py.
2019-11-06 13:56:43 +01:00
.github Add stale probot 2019-11-01 11:50:36 +01:00
docker Update docker base image to 2.0.1 (#785) 2019-10-21 22:55:16 +02:00
esphome Add MAX31865 sensor support, fix MAX31855 sensor (#832) 2019-11-06 13:56:43 +01:00
script Move native API enums to new namespace (#825) 2019-11-02 19:35:45 +01:00
tests Add MAX31865 sensor support, fix MAX31855 sensor (#832) 2019-11-06 13:56:43 +01:00
.clang-format 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
.clang-tidy 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
.dockerignore Fix docker build 2018-09-25 10:30:45 +02:00
.editorconfig Create .editorconfig (#524) 2019-05-08 15:37:18 +02:00
.gitignore Support voluptuous 0.11.7 / fix cpp-lint 2019-08-19 11:37:17 -07:00
.gitlab-ci.yml Update docker base image to 2.0.1 (#785) 2019-10-21 22:55:16 +02:00
.gitpod.yml Create .gitpod.yml (#508) 2019-05-01 20:37:55 +02:00
.travis.yml Py3 Updates 2019-10-18 16:58:29 +02:00
CODE_OF_CONDUCT.md Add Code of Conduct (Contributor Covenant) (#168) 2018-10-12 11:26:26 +02:00
CONTRIBUTING.md Rename esphomeyaml to esphome (#426) 2019-02-13 16:54:02 +01:00
LICENSE 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
MANIFEST.in Vl53l0x (#644) 2019-10-20 17:56:57 +02:00
platformio.ini Update platformio libraries (#837) 2019-11-05 22:28:19 +01:00
pylintrc Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
README.md Update README.md 2019-02-14 13:49:22 +01:00
requirements.txt Update and pin all requirements (#759) 2019-10-17 18:23:39 +02:00
requirements_test.txt Update and pin all requirements (#759) 2019-10-17 18:23:39 +02:00
setup.cfg Changes for 1.12 (#482) 2019-03-16 22:24:26 +01:00
setup.py Update and pin all requirements (#759) 2019-10-17 18:23:39 +02:00

ESPHome Build Status Discord Chat GitHub release

ESPHome Logo

Documentation: https://esphome.io/

For issues, please go to the issue tracker.

For feature requests, please see feature requests.