Skip to content

Instantly share code, notes, and snippets.

@pwillard
Created May 16, 2024 15:02
Show Gist options
  • Save pwillard/bc1ca320832d61193e26b5a2839bb679 to your computer and use it in GitHub Desktop.
Save pwillard/bc1ca320832d61193e26b5a2839bb679 to your computer and use it in GitHub Desktop.
My mqtt.yaml file
sensor:
- name: "lab temperature"
unique_id: "d2828a3e-1392-11ef-9262-0242ac120002"
state_topic: "homeassistant/lab/sensordata"
unit_of_measurement: '°F'
value_template: "{{ value_json.temperature }}"
- name: "lab humidity"
unique_id: "0ab62a0a-1393-11ef-9262-0242ac120002"
state_topic: "homeassistant/lab/sensordata"
unit_of_measurement: '%'
value_template: "{{ value_json.humidity }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment