Skip to content

Commit 23c5390

Browse files
authored
Update home_assistant_add_sensor.txt
1 parent 50cf7c0 commit 23c5390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/home_assistant_add_sensor.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Example configuration.yaml entry
22

33
## on top of autodiscovered sensors any parameter present in JSON file can be added like below
4-
4+
## if device name is 'pytes' the topic is like below
55
mqtt:
66
sensor:
77
- name: pytes_uptime
8-
state_topic: "homeassistant/sensor/pytes_esp/state"
9-
value_template: '{{ value_json.serial_stat.uptime }}'
8+
state_topic: "pytes_serial/pytes/serial_stat"
9+
value_template: '{{ value_json.uptime }}'
1010
unit_of_measurement: ''

0 commit comments

Comments
 (0)