mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
teleinfo: use text_sensor and sensor. (#1403)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
@@ -888,25 +888,11 @@ sensor:
|
||||
name: 'AQI'
|
||||
calculation_type: 'CAQI'
|
||||
- platform: teleinfo
|
||||
uart_id: uart0
|
||||
tags:
|
||||
- tag_name: 'HCHC'
|
||||
sensor:
|
||||
name: 'hchc'
|
||||
unit_of_measurement: 'Wh'
|
||||
icon: mdi:flash
|
||||
- tag_name: 'HCHP'
|
||||
sensor:
|
||||
name: 'hchp'
|
||||
unit_of_measurement: 'Wh'
|
||||
icon: mdi:flash
|
||||
- tag_name: 'PAPP'
|
||||
sensor:
|
||||
name: 'papp'
|
||||
unit_of_measurement: 'VA'
|
||||
icon: mdi:flash
|
||||
update_interval: 60s
|
||||
historical_mode: true
|
||||
tag_name: "HCHC"
|
||||
name: "hchc"
|
||||
unit_of_measurement: "Wh"
|
||||
icon: mdi:flash
|
||||
teleinfo_id: myteleinfo
|
||||
- platform: mcp9808
|
||||
name: 'MCP9808 Temperature'
|
||||
update_interval: 15s
|
||||
@@ -1975,6 +1961,7 @@ display:
|
||||
row_start: 0
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
tm1651:
|
||||
id: tm1651_battery
|
||||
clk_pin: GPIO23
|
||||
@@ -2163,6 +2150,10 @@ text_sensor:
|
||||
- platform: version
|
||||
name: 'ESPHome Version No Timestamp'
|
||||
hide_timestamp: True
|
||||
- platform: teleinfo
|
||||
tag_name: "OPTARIF"
|
||||
name: "optarif"
|
||||
teleinfo_id: myteleinfo
|
||||
|
||||
sn74hc595:
|
||||
- id: 'sn74hc595_hub'
|
||||
@@ -2193,3 +2184,9 @@ canbus:
|
||||
lambda: 'return x[0] == 0x11;'
|
||||
then:
|
||||
light.toggle: ${roomname}_lights
|
||||
|
||||
teleinfo:
|
||||
id: myteleinfo
|
||||
uart_id: uart0
|
||||
update_interval: 60s
|
||||
historical_mode: true
|
||||
|
Reference in New Issue
Block a user