Hi,
I’ve started using owntracks, together with cloudmqtt. Added 2 devices, but how can i add 2 devices in configuration.yaml?
1 for each device…
if i copy broker till password it says it’s duplicated. thanks for help!
Hi,
I’ve started using owntracks, together with cloudmqtt. Added 2 devices, but how can i add 2 devices in configuration.yaml?
1 for each device…
if i copy broker till password it says it’s duplicated. thanks for help!
You mean the devices you want to track? Those are under known devices (unless something’s changed in a week or so and I missed it).
HA subscribes to topics that are published from the device to the broker. With Owntracks HA subs to the owntracks/ topic and just gets messages from devices sending messages to your brokers to tell them where they (physically) are.
Sound confusing? That’s MQTT for beginners.
You would set them up under device_tracker:
# Example configuration.yaml entry
device_tracker:
- platform: mqtt
devices:
paulus_oneplus: location/paulus
annetherese_n4: location/annetherese
P.S.
The devices would be the username from CloudMQTT Console under Users and ACL _Device ID from the device’s you configured for use with CloudMQTT.
for now i have:
device_tracker:
so if i understand it right - if i have 2 devices - phone1 and phone2, it should be:
device_tracker:
?
Yes, just as the Example states.
My config.
device_tracker:
- platform: mqtt
devices:
note4_n4: /location/anything
note5_n5: /location/generic_name