#Send Entity's Data to MQTT topic

1 messages · Page 1 of 1 (latest)

sullen flume
#

Hi all, I want to send my location from the HA Companion App to a MQTT topic for a personal project.

I just can't seem to figure out how to attach the actual entity attributes to the automation. Everything is setup- just a matter of attaching the data to the automation.

glacial bolt
#
      - service: mqtt.publish
        data:
          topic: location/person1
          payload: >-
            {{ states('device_tracker.sm_a546b') }}