1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add internal_temperature component (#4330)

* Add cpu_temperature component

* Add tests

* Fix formatting

* Possible fix for "sensor not shown in HomeAssistant"

* Rename component to internal_temperature

* Update esphome/components/internal_temperature/internal_temperature.cpp

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>

* Update esphome/components/internal_temperature/internal_temperature.cpp

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>

* Update esphome/components/internal_temperature/internal_temperature.cpp

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>

* Update internal_temperature.h

* Remove unique_id

* Update ESP32 variant detection

---------

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
Mat931
2023-02-20 02:47:37 +00:00
committed by GitHub
parent f68d577986
commit ed801f7a27
8 changed files with 116 additions and 0 deletions

View File

@@ -324,6 +324,8 @@ mcp23s17:
deviceaddress: 1
sensor:
- platform: internal_temperature
name: "Internal Temperature"
- platform: ble_client
type: characteristic
ble_client_id: ble_foo

View File

@@ -373,6 +373,8 @@ select:
"Three": 3
sensor:
- platform: internal_temperature
name: "Internal Temperature"
- platform: selec_meter
total_active_energy:
name: SelecEM2M Total Active Energy

View File

@@ -37,3 +37,7 @@ switch:
- platform: output
output: pin_4
id: pin_4_switch
sensor:
- platform: internal_temperature
name: "Internal Temperature"