MQTTCarPresence icon indicating copy to clipboard operation
MQTTCarPresence copied to clipboard

MQTT autodiscovery

Open Bluhme1 opened this issue 2 years ago • 4 comments

Hi Thanks for your great work

The car presence module isn't shown in the Mosquito integration. I get data into MQTT. I can see data in MQTT Explorer, so everything is working ok.

But why can't I see this module in the auto discovered list on Mosquito

/Lars

Bluhme1 avatar May 27 '22 16:05 Bluhme1

I'm in the same position now. I am not able to get HA to see the sensors, as auto discover does not seem to find them.

Edit: My problem was my firewall. It's working now.

audioeptesicus avatar Dec 27 '22 19:12 audioeptesicus

Same here

sledzik1984 avatar Dec 28 '22 21:12 sledzik1984

if its not finding it, just be aware that it doesn't show up as a device, just entities.

broyuken avatar Apr 03 '23 19:04 broyuken

So Mosquitto has the data, home assistant runs on a different IP though, so it was not able to see and update it, even with the MQTT Integration. I was able to manually add the the sensors with the below config, then add the automation on these and it seems to be working. In case anyone else has to do it manually here is the code snippets I used. The automations.yaml file should be basically the same as what they have in this repo.

In configuration.yaml

mqtt:
  binary_sensor:
    - name: "Bike MQTT Connectivity"
      state_topic: "motorcycle/binary_sensor/BikePresence/state"
  sensor:
    - name: "Bike Wifi Signal Strength"
      state_topic: "motorcycle/sensor/BikePresence-signal/state"
      unit_of_measurement: "dBm"
      value_template: "{{ value }}"
    - name: "Bike Device Uptime"
      state_topic: "motorcycle/sensor/BikePresence-uptime/state"
      unit_of_measurement: "ms"
      value_template: "{{ value }}"

requiem240sx avatar Jun 01 '23 03:06 requiem240sx