mqtt sensor

mail@pastecode.io avatar
unknown
json
a year ago
978 B
1
Indexable
Never
{
    "mqtt": [
        {
            "sensor": {
                "name": "Temperature",
                "unit_of_measurement": "°C",
                "suggested_display_precision": 1,
                "state_topic": "home/cinemaduino/state",
                "value_template": "{{ value_json.temperature }}"
            }
        },
        {
            "sensor": {
                "name": "Heat Temp.",
                "unit_of_measurement": "°C",
                "suggested_display_precision": 1,
                "state_topic": "home/cinemaduino/state",
                "value_template": "{{ value_json.heat }}"
            }
        },
        {
            "sensor": {
                "name": "Humidity",
                "unit_of_measurement": "%",
                "suggested_display_precision": 1,
                "state_topic": "home/cinemaduino/state",
                "value_template": "{{ value_json.humidity }}"
            }
        }
    ],
    "platform": "mqtt"
}