Skip to content

Commit 7c9f53d

Browse files
committed
docs(configuration): text sensors are sensor sub-keys, not a platform
The Text Sensors section showed a `text_sensor: - platform: tigo_monitor` block, which cannot validate — there is no text_sensor.py in the component, and ESPHome fails with "Platform not found: 'text_sensor.tigo_monitor'". barcode/firmware_version/device_info are sub-keys of a `sensor:` entry; the component builds the text entities itself via text_sensor.new_text_sensor. Wrong since 2026-07-23. Verified both forms against `esphome config`: the documented one fails, the corrected one validates and mixes with the numeric sub-keys.
1 parent 350d042 commit 7c9f53d

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

site/src/content/docs/guides/configuration.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,13 @@ cards, each grouping the entities for its panels.
386386

387387
### Text Sensors
388388

389+
A panel's barcode, firmware version and device info are text entities, but they
390+
are declared like every other measurement — as sub-keys of a **`sensor:`** entry.
391+
There is no `text_sensor:` platform for `tigo_monitor`; the component creates the
392+
text entities itself.
393+
389394
```yaml
390-
text_sensor:
395+
sensor:
391396
- platform: tigo_monitor
392397
tigo_monitor_id: tigo_hub
393398
address: "1234"
@@ -397,6 +402,19 @@ text_sensor:
397402
device_info: {}
398403
```
399404

405+
They mix freely with the numeric sub-keys, so one entry per panel covers both:
406+
407+
```yaml
408+
sensor:
409+
- platform: tigo_monitor
410+
tigo_monitor_id: tigo_hub
411+
address: "1234"
412+
name: "Panel 1"
413+
power: {}
414+
temperature: {}
415+
barcode: {}
416+
```
417+
400418
### Binary Sensors
401419

402420
```yaml

0 commit comments

Comments
 (0)