Skip to content

Commit 656f615

Browse files
authored
Update homematic.markdown config variables style
Per home-assistant#6385 updating the configuration description.
1 parent 488b34f commit 656f615

File tree

1 file changed

+82
-20
lines changed

1 file changed

+82
-20
lines changed

source/_components/homematic.markdown

Lines changed: 82 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,90 @@ homematic:
3434
3535
Configuration variables (global):
3636
37-
- **interfaces** (*Required*): Configuration for each XML-RPC interface to integrate into Home Assistant.
38-
- **hosts** (*Optional*): Configuration for each Hub (CCU/Homegear) to integrate into Home Assistant.
39-
- **local_ip** (*Optional*): IP of device running Home Assistant. Override auto-detected value for exotic network setups.
40-
- **local_port** (*Optional*): Port for connection with Home Assistant. By default it is randomly assigned.
37+
{% configuration %}
38+
interfaces:
39+
description: Configuration for each XML-RPC interface to integrate into Home Assistant.
40+
required: true
41+
type: list
42+
hosts:
43+
description: Configuration for each Hub (CCU/Homegear) to integrate into Home Assistant.
44+
required: false
45+
type: list
46+
local_ip:
47+
description: IP of device running Home Assistant. Override auto-detected value for exotic network setups.
48+
required: false
49+
type: string
50+
local_port:
51+
description: Port for connection with Home Assistant. By default it is randomly assigned.
52+
required: false
53+
type: int
54+
{% endconfiguration %}
4155
4256
Configuration variables (interface):
4357
44-
- **host** (*Required*): IP address or Hostname of CCU/Homegear device or Hass.io add-on.
45-
- **port** (*Optional*): Port of CCU/Homegear XML-RPC Server. Wireless: 2001, wired: 2000, IP: 2010, thermostatgroups: 9292.
46-
- **callback_ip** (*Optional*): Set this, if Home Assistant is reachable under a different IP from the CCU (NAT, Docker etc.).
47-
- **callback_port** (*Optional*): Set this, if Home Assistant is reachable under a different port from the CCU (NAT, Docker etc.).
48-
- **resolvenames** (*Optional*): [`metadata`, `json`, `xml`] Try to fetch device names. Defaults to `false` if not specified.
49-
- **jsonport** (*Optional*): Port of CCU JSON-RPC Server. The default is 80, but it may be different when running CCU virtually via Docker.
50-
- **username** (*Optional*): When fetching names via JSON-RPC, you need to specify a user with guest-access to the CCU.
51-
- **password** (*Optional*): When fetching names via JSON-RPC, you need to specify the password of the user you have configured above.
52-
- **path** (*Optional*): Set to `/groups` when using port 9292.
58+
{% configuration %}
59+
host:
60+
description: IP address or Hostname of CCU/Homegear device or Hass.io add-on.
61+
required: true
62+
type: string
63+
port:
64+
description: Port of CCU/Homegear XML-RPC Server. Wireless: 2001, wired: 2000, IP: 2010, thermostatgroups: 9292.
65+
required: false
66+
type: int
67+
callback_ip:
68+
description: Set this, if Home Assistant is reachable under a different IP from the CCU (NAT, Docker etc.).
69+
required: false
70+
type: string
71+
callback_port:
72+
description: Set this, if Home Assistant is reachable under a different IP from the CCU (NAT, Docker etc.).
73+
required: false
74+
type: int
75+
resolvenames:
76+
description: Try to fetch device names. Defaults to `false` if not specified.
77+
required: false
78+
type: map
79+
default: false
80+
keys:
81+
metadata:
82+
description: Homegear provides device-names through the metadata devices have internally. When using an HM-CFG-LAN interface, you typically use a configuration software ("HomeMatic-Komponenten konfigurieren" is the name of the shortcut on your desktop by default) to pair and configure your devices. If you have paired devices, you'll see them listed in a table. The leftmost column (Name) is prefilled with default names. You can click such a name and enter whatever you like.
83+
json:
84+
description: The CCU allows to fetch details of the paired devices via JSON-RPC. For this to work you need to add valid credentials to your component-configuration. Guest-access is sufficient to query for device names.
85+
xml:
86+
description: If you use a CCU, there is an add-on called the "XML-API". With it installed, you are able to fetch all kinds of information from you CCU using XML-RPC. We can leverage this and fetch the names of devices set within the CCU. We don't support authentication with this method.
87+
jsonport:
88+
description: Port of CCU JSON-RPC Server. The default is 80, but it may be different when running CCU virtually via Docker.
89+
required: false
90+
type: int
91+
username:
92+
description: When fetching names via JSON-RPC, you need to specify a user with guest-access to the CCU.
93+
required: false
94+
type: string
95+
password:
96+
description: When fetching names via JSON-RPC, you need to specify the password of the user you have configured above.
97+
required: false
98+
type: string
99+
path:
100+
description: Set to `/groups` when using port 9292.
101+
required: false
102+
type: string
103+
{% endconfiguration %}
53104

54105
Configuration variables (host):
55106

56-
- **host** (*Required*): IP address of CCU/Homegear device.
57-
- **username** (*Optional*): When fetching names via JSON-RPC, you need to specify a user with guest-access to the CCU.
58-
- **password** (*Optional*): When fetching names via JSON-RPC, you need to specify the password of the user you have configured above.
107+
{% configuration %}
108+
host:
109+
description: IP address of CCU/Homegear device.
110+
required: true
111+
type: string
112+
username:
113+
description: When fetching names via JSON-RPC, you need to specify a user with guest-access to the CCU.
114+
required: false
115+
type: string
116+
password:
117+
description: When fetching names via JSON-RPC, you need to specify the password of the user you have configured above.
118+
required: false
119+
type: string
120+
{% endconfiguration %}
59121

60122
#### Example configuration with multiple protocols and some other options set:
61123

@@ -95,9 +157,9 @@ homematic:
95157

96158
We use three approaches to fetch the names of devices. Each assumes you have properly named your devices in your existing Homematic setup. As a general advice: Use ASCII for your devices names. Home Assistant won't include non-ASCII characters in entity-names.
97159

98-
1. `json`: The CCU allows to fetch details of the paired devices via JSON-RPC. For this to work you need to add valid credentials to your component-configuration. Guest-access is sufficient to query for device names.
99-
2. `xml`: If you use a CCU, there is an add-on called the "XML-API". With it installed, you are able to fetch all kinds of information from you CCU using XML-RPC. We can leverage this and fetch the names of devices set within the CCU. We don't support authentication with this method.
100-
3. `metadata`: Homegear provides device-names through the metadata devices internally have. When using an HM-CFG-LAN interface, you typically use a configuration software ("HomeMatic-Komponenten konfigurieren" is the name of the shortcut on your desktop by default) to pair and configure your devices. If you have paired devices, you'll see them listed in a table. The leftmost column (Name) is prefilled with default names. You can click such a name and enter whatever you like.
160+
1. `json`
161+
2. `xml`
162+
3. `metadata`
101163

102164
Resolving names can take some time. So when you start Home Assistant you won't see you devices at first. For a setup with 20+ devices it can take up to a minute until all devices show up in the UI.
103165

@@ -320,7 +382,7 @@ When the connection to your HomeMatic CCU or Homegear is lost, Home Assistant wi
320382
string now = system.Date("%d.%m.%Y %H:%M:%S");
321383
obj.State(now);
322384
```
323-
385+
324386
The HomeMatic CCU will execute all active programs which meet their conditions (none in this case) on every reboot.
325387

326388
3. Set up a template sensor in Home Assistant, which contains the value of the system variable:

0 commit comments

Comments
 (0)