Skip to content

Commit 9c0dc8d

Browse files
authored
Add via_device doc for mqtt-discovery components (home-assistant#12671)
1 parent 210e206 commit 9c0dc8d

11 files changed

+44
-0
lines changed

source/_integrations/alarm_control_panel.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ device:
9090
description: 'The firmware version of the device.'
9191
required: false
9292
type: string
93+
via_device:
94+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
95+
required: false
96+
type: string
9397
json_attributes_template:
9498
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the JSON dictionary from messages received on the `json_attributes_topic`. Usage example can be found in [MQTT sensor](/integrations/sensor.mqtt/#json-attributes-template-configuration) documentation."
9599
required: false

source/_integrations/binary_sensor.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ device:
6565
description: The firmware version of the device.
6666
required: false
6767
type: string
68+
via_device:
69+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
70+
required: false
71+
type: string
6872
device_class:
6973
description: Sets the [class of the device](/integrations/binary_sensor/#device-class), changing the device state and icon that is displayed on the frontend.
7074
required: false

source/_integrations/camera.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ device:
5353
description: The firmware version of the device.
5454
required: false
5555
type: string
56+
via_device:
57+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
58+
required: false
59+
type: string
5660
name:
5761
description: The name of the camera.
5862
required: false

source/_integrations/climate.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ device:
9696
description: 'The firmware version of the device.'
9797
required: false
9898
type: string
99+
via_device:
100+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
101+
required: false
102+
type: string
99103
fan_mode_command_topic:
100104
description: The MQTT topic to publish commands to change the fan mode.
101105
required: false

source/_integrations/cover.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ device:
7474
description: The firmware version of the device.
7575
required: false
7676
type: string
77+
via_device:
78+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
79+
required: false
80+
type: string
7781
device_class:
7882
description: Sets the [class of the device](/integrations/cover/), changing the device state and icon that is displayed on the frontend.
7983
required: false

source/_integrations/device_trigger.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,8 @@ device:
7272
description: The firmware version of the device.
7373
required: false
7474
type: string
75+
via_device:
76+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
77+
required: false
78+
type: string
7579
{% endconfiguration %}

source/_integrations/fan.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ device:
6565
description: The firmware version of the device.
6666
required: false
6767
type: string
68+
via_device:
69+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
70+
required: false
71+
type: string
6872
json_attributes_template:
6973
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the JSON dictionary from messages received on the `json_attributes_topic`. Usage example can be found in [MQTT sensor](/integrations/sensor.mqtt/#json-attributes-template-configuration) documentation."
7074
required: false

source/_integrations/light.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ device:
115115
description: 'The firmware version of the device.'
116116
required: false
117117
type: string
118+
via_device:
119+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
120+
required: false
121+
type: string
118122
effect_command_topic:
119123
description: "The MQTT topic to publish commands to change the light's effect state."
120124
required: false

source/_integrations/lock.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ device:
6565
description: 'The firmware version of the device.'
6666
required: false
6767
type: string
68+
via_device:
69+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
70+
required: false
71+
type: string
6872
json_attributes_template:
6973
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the JSON dictionary from messages received on the `json_attributes_topic`. Usage example can be found in [MQTT sensor](/integrations/sensor.mqtt/#json-attributes-template-configuration) documentation."
7074
required: false

source/_integrations/sensor.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ device:
5555
description: The firmware version of the device.
5656
required: false
5757
type: string
58+
via_device:
59+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
60+
required: false
61+
type: string
5862
device_class:
5963
description: The [type/class](/integrations/sensor/#device-class) of the sensor to set the icon in the frontend.
6064
required: false

source/_integrations/switch.mqtt.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ device:
6565
description: The firmware version of the device.
6666
required: false
6767
type: string
68+
via_device:
69+
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
70+
required: false
71+
type: string
6872
icon:
6973
description: Icon for the switch.
7074
required: false

0 commit comments

Comments
 (0)