When I click on the gear for my mqtt sensor, I get this popup:
There are a number of topics related to this but I didn’t find an actual answer of how to do it.
This is the definition of my sensor in mqtt.yaml:
sensor:
- name: "DWA Temperature"
state_topic: "davea/feeds/temperature"
suggested_display_precision: 1
device_class: temperature
unit_of_measurement: "°F"
value_template: "{{ value_json.temperature | int }}"
json_attributes_topic: "davea/pyportal/feed"
json_attributes_template: >
{ "humidity": {{ value_json.humidity }}",
"relative_humidity": {{ value_json.relative_humidity }}"}
Please let me know if this should be posted in a different category