MQTTCarPresence
MQTTCarPresence copied to clipboard
MQTT autodiscovery
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
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.
Same here
if its not finding it, just be aware that it doesn't show up as a device, just entities.
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 }}"