esphome/esphome
Sybren A. Stüvel 97c1c34708
Add support for TMP1075 temperature sensor (#4776)
* Add support for TMP1075 temperature sensor

TMP1075 is a temperature sensor with I2C interface in industry standard
LM75 form factor and pinout.

https://www.ti.com/product/TMP1075

Example YAML:

```yaml
sensor:
  - platform: tmp1075
    name: TMP1075 Temperature
    id: radiator_temp
    update_interval: 10s
    i2c_id: i2c_bus_1
    conversion_rate: 27.5ms
    alert:
      limit_low: 50
      limit_high: 75
      fault_count: 1
      polarity: active_high
```

* Add myself as codeowner of the TMP1075 component

* Include '°C' unit when logging low/high limit setting

* Reformat

No functional changes.

* Fix logging: use %.4f for temperatures, not %d

* Fix config initialisation

* Use relative include for `tmp1075.h`

* Apply formatting changes suggested by script/clang-tidy for ESP32

* Add YAML to test1.yaml

* Fix test1.yaml by giving TMP1075 a name

* Less verbose logging (debug -> verbose level)

* Schema: reduce accuracy_decimals to 2

* I2C address as hexadecimal

* Proper name for enum in Python

The enum on the C++ side was renamed (clang-tidy) but I forgot to take that
into account in the Python code.

* Expose 'alert function' to the code generator/YAML params and remove 'shutdown'

Shutdown mode doesn't work the way I expect it, so remove it until someone
actually asks for it.

Also 'alert mode' was renamed to 'alert function' for clarity.

* Move simple setters to header file

* Remove `load_config_();` function
2023-05-26 00:01:21 -05:00
..
components Add support for TMP1075 temperature sensor (#4776) 2023-05-26 00:01:21 -05:00
core Keep Unit of Measurement in Flash. (#4719) 2023-05-10 11:42:55 +12:00
dashboard allow to use MQTT for discovery of IPs if mDNS is no option (#3887) 2023-05-17 16:29:56 +12:00
__init__.py
__main__.py Print ESPHome version when running commands (#4883) 2023-05-23 21:56:15 +00:00
automation.py Fix parallel invocations of repeat action (#4480) 2023-02-26 22:23:04 +00:00
codegen.py Add ability to await safe mode in codegen (#4529) 2023-03-07 21:29:45 +00:00
config_helpers.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
config_validation.py Allow substitutions to be valid names (#4726) 2023-05-17 16:33:08 +12:00
config.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
const.py Allow substitutions to be valid names (#4726) 2023-05-17 16:33:08 +12:00
coroutine.py Bump python min to 3.9 (#3871) 2022-10-05 20:09:27 +13:00
cpp_generator.py Bump pylint from 2.15.10 to 2.16.2 (#4426) 2023-02-13 22:55:36 +00:00
cpp_helpers.py EntityBase: Move ObjectId to Flash (#4569) 2023-03-28 09:00:34 +00:00
cpp_types.py Add int16 to codegen (#4507) 2023-03-04 07:19:51 +00:00
espota2.py Improve OTA error messages adding return codes (#3698) 2022-08-16 21:51:05 +12:00
final_validate.py Bump python min to 3.9 (#3871) 2022-10-05 20:09:27 +13:00
git.py Remove idf components before checking if any in config (#4506) 2023-03-05 20:17:32 +00:00
helpers.py allow to use MQTT for discovery of IPs if mDNS is no option (#3887) 2023-05-17 16:29:56 +12:00
loader.py Allow AUTO_LOAD to be a function (#4550) 2023-03-12 22:43:31 +00:00
log.py Only show timestamp for dashboard access logs (#2540) 2021-10-18 15:31:00 +13:00
mqtt.py allow to use MQTT for discovery of IPs if mDNS is no option (#3887) 2023-05-17 16:29:56 +12:00
pins.py adds gpio INPUT_OUTPUT_OPEN_DRAIN (#4360) 2023-02-07 12:55:35 +13:00
platformio_api.py Fix outdated filter string in platformio_api (#4587) 2023-03-19 19:11:18 +00:00
schema_extractors.py Language schema 202204 (#3492) 2022-06-17 13:46:20 +12:00
storage_json.py allow to use MQTT for discovery of IPs if mDNS is no option (#3887) 2023-05-17 16:29:56 +12:00
types.py Bump python min to 3.9 (#3871) 2022-10-05 20:09:27 +13:00
util.py Fix type annotation on extract_registry_entry_config (#3623) 2022-10-12 15:15:03 +13:00
voluptuous_schema.py Remove a bunch of unnecessary pylint disabling (#4079) 2022-11-24 11:09:19 +13:00
vscode.py Remove a bunch of unnecessary pylint disabling (#4079) 2022-11-24 11:09:19 +13:00
wizard.py Add friendly_name to device (#4296) 2023-01-17 10:28:09 +13:00
writer.py Rp2040 pio ledstrip (#4818) 2023-05-22 10:31:27 +12:00
yaml_util.py Merge components in packages (#3555) 2023-02-07 14:08:40 +13:00
zeroconf.py mDNS updates (#4399) 2023-02-09 10:25:44 +13:00