Files
esphome-dev/esphome/components
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
..
2022-11-24 13:12:55 +13:00
2023-01-26 17:20:45 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-01-17 10:36:44 +13:00
2023-01-18 10:42:43 +13:00
2022-11-24 13:12:55 +13:00
2023-05-10 11:16:14 +12:00
2023-04-12 21:28:02 +00:00
2023-03-07 04:25:14 +00:00
2022-12-06 23:25:19 +13:00
2022-11-24 13:12:55 +13:00
2023-02-23 02:05:33 +00:00
2022-11-24 13:12:55 +13:00
2023-05-22 22:28:35 +00:00
2023-05-10 11:38:18 +12:00
2023-01-18 10:42:47 +13:00
2023-05-01 16:18:31 +12:00
2023-03-20 03:38:41 +00:00
2023-02-23 01:31:35 +00:00
2022-11-24 13:12:55 +13:00
2023-02-13 15:53:40 +13:00
2023-05-10 11:38:18 +12:00
2022-11-24 13:12:55 +13:00
2023-05-02 09:51:48 +12:00
2023-04-22 07:41:12 +00:00
2022-01-08 21:35:55 +13:00
2023-04-27 13:17:09 +12:00
2023-04-04 02:34:14 +00:00
2022-11-24 13:12:55 +13:00
2022-02-21 12:23:26 +13:00
2023-05-10 11:38:18 +12:00
2023-04-12 02:29:06 +00:00
2023-05-01 16:00:21 +12:00
2022-12-22 18:39:25 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-05-22 10:31:27 +12:00
2023-03-20 03:38:41 +00:00
2023-03-20 03:38:41 +00:00
2022-11-24 13:12:55 +13:00
2022-06-07 22:43:46 +12:00
2022-11-24 13:12:55 +13:00
2023-03-20 03:38:41 +00:00
2022-04-13 10:19:48 +12:00
2022-05-19 12:47:33 +12:00
2023-03-20 03:38:41 +00:00
2023-02-03 07:53:46 +13:00
2023-03-08 01:11:12 +00:00
2023-05-10 11:38:18 +12:00
2023-05-08 10:36:17 +12:00
2023-05-18 11:36:52 +12:00
2022-04-26 09:50:36 +12:00
2022-04-13 10:19:48 +12:00
2023-01-18 10:43:16 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-05-22 22:28:35 +00:00
2023-01-18 10:17:31 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-09-14 16:51:20 +12:00
2023-03-20 03:38:41 +00:00
2023-05-17 09:30:14 +12:00
2023-05-17 16:29:21 +12:00
2023-05-17 16:29:21 +12:00
2022-10-19 13:44:26 +13:00