looking for this!
only need to publish the device_trackers on the Master to my Slave instance.
Id try:
mqtt_statestream:
base_topic: homeassistant_master
include:
domains:
- device_tracker
entities:
- phone1
- phone2
?
but now how to subscribe to those on the Slave system, and show them as device_trackers.?
Ive got 1 device_tracker now published via an automation:
- alias: 'Telefoon M BT'
id: 'Telefoon M BT'
trigger:
platform: state
entity_id: device_tracker.telefoon_m_bt
action:
service: mqtt.publish
data_template:
topic: 'telefoon_m_bt'
retain: true
payload: >
{{trigger.to_state.state}}
and created a sensor on the slave system:
homeassistent:
customize:
sensor.telefoon_m_mqtt_bt:
show_last_changed: true
templates:
icon: >
if (state === 'home') return 'mdi:bluetooth';
return 'mdi:bluetooth-off';
icon_color: >
if (state === 'home') return 'blue';
return 'grey';
_stateDisplay: >
if (state === 'home') return 'Connected';
return 'Not connected';
and finally the sensor:
sensor:
- platform: mqtt
name: Telefoon M Mqtt Bt
state_topic: 'telefoon_m_bt'
which works fine (creating a device_tracker in the slave didn’t btw…)
hoping that using state stream allows for not having to create automations for each device_tracker…
I can confirm all topics are created and I can see them in the Mqtt inspector (FX in my case), but, I am afraid I can only create sensors of these? I would have hoped to create device_trackers though, so please have a thought about that