Skip to content

Commit

Permalink
Update home_assistant_add_sensor.txt
Browse files Browse the repository at this point in the history
update based on latest MQTT topics definition
  • Loading branch information
chinezbrun authored May 3, 2024
1 parent 14cf6c0 commit 2d52281
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/home_assistant_add_sensor.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Example configuration.yaml entry

## example of one additional sensor. check MQTT Explorer to find out full list of sensors and respective topics
## on top of autodiscovered sensors any parameter present in JSON file can be added like below

mqtt:
sensor:
- name: pytes_uptime
state_topic: "homeassistant/sensor/pytes/state"
value_template: '{{ value_json.serial_stat.uptime }}'
state_topic: "pytes_serial/pytes/serial_stat"
value_template: '{{ value_json.uptime}}'
unit_of_measurement: ''

0 comments on commit 2d52281

Please sign in to comment.