Hello… I have two HA instances and want to transfer the state (‘home’ or ‘not_home’) of a device_tracker from one HA to the other one using MQTT (mqtt externally hosted)… On the first HA tracking the device, I added the following lines in configuration.yaml:
mqtt_statestream:
base_topic: homeassistant
publish_attributes: true
publish_timestamps: true
include:
entities:
- device_tracker.gsm1
State and attributes of that entity in HA:
device_tracker.gsm1 not_home
source_type: gps
battery_level: 95
latitude: 51.4606581
longitude: 5.3636211
gps_accuracy: 14
velocity: 0
tid: DB
The data (state and attributes) are correctly appearing in the MQTT Broker like this (I just list here the state): homeassistant/device_tracker/gsm1/state not_home
The goal is to display via lovelace on the first HA instance the state of a device_tracker located on the second HA instance (those two instances of HA are not in the same location: one is in Belgium and the other in France).
My question: how can I get from MQTT the state of that device in a device_tracker format on the other HA instance ? Maybe I am using an incorrect method to do that so any help would be really appreciated… Thanks !