configuration.yaml
mqtt:
- sensor:
name: "Generic Car Remote" state_topic: "rtl_433/generic_car_remote/events" value_template: "{{ value_json.command_name }}" json_attributes_topic: "rtl_433/generic_car_remote/events"
json_attributes_template: "{{ value_json | tojson }}"
automations.yaml
- id: '1750065345555'
alias: "Generic Car Remote Lock"
trigger:
platform: mqtt
topic: "rtl_433/generic_car_remote/events"
condition:
condition: template
value_template: "{{ trigger.payload_json.command_name == 'LOCK' }}"
action:
- service: notify.persistent_notification
data:
message: "Car locked at {{ now().strftime('%H:%M:%S') }}"
title: "Generic Car Remote"
- id: '1750065345556'
alias: "Generic Car Remote Unlock"
trigger:
platform: mqtt
topic: "rtl_433/generic_car_remote/events"
condition:
condition: template
value_template: "{{ trigger.payload_json.command_name == 'UNLOCK' }}"
action:
- service: notify.persistent_notification
data:
message: "Car unlocked at {{ now().strftime('%H:%M:%S') }}"
title: "Generic Car Remote"
Using MQTT Explorer I can see the topic updating