#HA MQTT Subscribe to a non HA Topic?

1 messages · Page 1 of 1 (latest)

wooden island
#

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

#

It shows unknown

vernal bone
#

Did you review the HA logs?

wooden island
#

Logger: homeassistant.helpers.translation
Source: helpers/translation.py:226
First occurred: 2:37:46 PM (1 occurrences)
Last logged: 2:37:46 PM

Failed to load integration for translation: Integration 'MQTT' not found.

#

Is it called something else?

wooden island
#

Tried to add it again just for fun

#

Tried to disable it and reenable it went ok but still nothing... Restarted HA I don't see that same error in the log any more yet still it doesn't see it updating lock/unlock

#

Oh I just found this error
Log details (ERROR)
Logger: homeassistant.components.mqtt
Source: helpers/config_validation.py:990
integration: MQTT (documentation, issues)
First occurred: 3:45:10 PM (4 occurrences)
Last logged: 3:45:10 PM

The 'color_mode' option has been removed, please remove it from your configuration

#

not sure what color_mode is

#

I guess maybe look in the configuration files for something hiding

#

grep -rnw --include="*.yaml" --include="*.yml" 'color_mode' .

#

didn't seem to find anything

#

maybe I will update dev and hope for magic.

vernal bone
#

probably from a light entity coming from MQTT discovery

wooden island
#

I had an old light.yaml so I removed that and updated to beta 2025.8.3

#

the color log error went away before I removed the light.yaml

#

but still no mqtt updating rtl_433 sensor

#

Oh it's working now
sensor.generic_car_remote
Generic Car Remote
UNLOCK friendly_name: Generic Car Remote
command_name: UNLOCK
id: 000022e1356c
model: Chrysler-CarRemote
remote_id: 13
rolling_code: 1e6c087b0fee
timestamp: 2025-08-25 16:05:30

#

Sweet now I need to connect this to my door lock

#

I guess just old dragons in the code some place.