Hi,
I want to configure an entity from a MQTT events topic, in this case from rtl_433.
Is this possible?
I have the following information:
"topic":"rtl_433/9b13b3f4-rtl433/events"
"payload":{"time":"2021-04-08 18:42:31.770809","protocol":10,"model":"Acurite-Rain","id":10,"rain_mm":1854.0,"mod":"ASK","freq":433.96755,"rssi":-2.5854,"snr":9.6643,"noise":-12.2497}
I already tried this in configuration.yaml, but I’m not sure if this is correct anc it doesn’t work:
- platform: mqtt
name: Acurite 896 Rain Gauge event
state_topic: "rtl_433/9b13b3f4-rtl433/events"
unique_id: Acurite 896 Rain Gauge event
unit_of_measurement: "mm"
value_template: "{{ value_json.payload.rain_mm }}"