mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Add docs for switch to device_id for LCN actions (#35600)
* Add docs for switch to device_id for LCN actions * Fix nipick comments * Remove addres_to_device_id action
This commit is contained in:
parent
8e6c94ea52
commit
4db3365a47
@ -106,10 +106,10 @@ To delete multiple devices at once, enable selection mode. Select the desired e
|
||||
|
||||
### Configuring entities
|
||||
|
||||
Entities configured for all devices are listed on the **Entities** tab.
|
||||
Entities configured for all devices are listed on the **Entities** tab.
|
||||
|
||||
To view entities for a specific device (module or group), in the **Modules / Groups** tab, select the device entry.
|
||||
- **Result**: The **Entities** tab opens, showing entities of the selected device.
|
||||
- **Result**: The **Entities** tab opens, showing entities of the selected device.
|
||||
- To apply custom filters, enable the filter option.
|
||||
|
||||

|
||||
@ -128,13 +128,13 @@ To view entities for a specific device (module or group), in the **Modules / Gro
|
||||
#### Deleting entities
|
||||
|
||||
To delete a single entity, select the trash can icon next to it.
|
||||
- **Result**: This removes the entity from the list and from Home Assistant.
|
||||
- **Result**: This removes the entity from the list and from Home Assistant.
|
||||
|
||||
To delete multiple entities, enable selection mode, select the desired entries, and select **Delete Selected** in the upper right.
|
||||
|
||||
#### Displaying entity properties
|
||||
|
||||
Once an entity is created, you can view and configure its properties.
|
||||
Once an entity is created, you can view and configure its properties.
|
||||
|
||||
Select the entity in the entity list.
|
||||
- This opens the Home Assistant dialog for entity properties, allowing you to configure the entity as you would from the general Home Assistant entity configuration panel.
|
||||
@ -431,13 +431,15 @@ For an explanation of the attributes refer to the corresponding [events](#events
|
||||
In order to directly interact with the LCN system, and invoke commands which are not covered by the implemented platforms, the following actions can be used.
|
||||
Refer to the [Performing actions](/docs/scripts/service-calls) page for examples on how to use them.
|
||||
|
||||
When actions are linked to a particular device, the device is identified by its `device_id`. This `device_id` is a unique identifier supplied by Home Assistant.
|
||||
|
||||
### Action: `output_abs`
|
||||
|
||||
Set absolute brightness of output port in percent.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | --------------------------------- | --------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `output` | No | Output port of module | [OUTPUT_PORT](#ports) |
|
||||
| `brightness` | Yes | Absolute brightness in percent | 0..100 |
|
||||
| `transition` | Yes | Transition (ramp) time in seconds | 0..486 |
|
||||
@ -447,7 +449,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.output_abs
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
output: output1
|
||||
brightness: 100
|
||||
transition: 0
|
||||
@ -457,9 +459,9 @@ data:
|
||||
|
||||
Set relative brightness of output port in percent.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | --------------------------------- | --------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `output` | No | Output port of module | [OUTPUT_PORT](#ports) |
|
||||
| `brightness` | Yes | Relative brightness in percent | -100..100 |
|
||||
| `transition` | Yes | Transition (ramp) time in seconds | 0..486 |
|
||||
@ -469,7 +471,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.output_rel
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
output: output1
|
||||
brightness: 30
|
||||
```
|
||||
@ -478,9 +480,9 @@ data:
|
||||
|
||||
Toggle output port.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | --------------------------------- | --------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `output` | No | Output port of module | [OUTPUT_PORT](#ports) |
|
||||
| `transition` | Yes | Transition (ramp) time in seconds | 0..486 |
|
||||
|
||||
@ -489,7 +491,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.output_toggle
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
output: output1
|
||||
transition: 0
|
||||
```
|
||||
@ -501,17 +503,17 @@ Each character represents the state change of a relay (1=on, 0=off, t=toggle, -=
|
||||
|
||||
Example states: `t---001-`
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | ------ |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `state` | No | Relay states as string |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `state` | No | Relay states as string ||
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
action: lcn.relays
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
state: t---001-
|
||||
```
|
||||
|
||||
@ -519,9 +521,9 @@ data:
|
||||
|
||||
Set the LED status.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | -------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `state` | No | LED state as string | [LED_STATE](#states) |
|
||||
|
||||
Example:
|
||||
@ -529,7 +531,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.led
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
led: led6
|
||||
state: blink
|
||||
```
|
||||
@ -540,9 +542,9 @@ Set the absolute value of a variable or setpoint.
|
||||
If `value` is not defined, it is assumed to be 0.
|
||||
If `unit_of_measurement` is not defined, it is assumed to be `native`.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | ------------------------------------------------------------------ |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `variable` | No | Variable name | [VARIABLE](#variables-and-units), [SETPOINT](#variables-and-units) |
|
||||
| `value` | Yes | Variable value | _any positive number_ |
|
||||
| `unit_of_measurement` | Yes | Variable unit | [VAR_UNIT](#variables-and-units) |
|
||||
@ -552,7 +554,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.var_abs
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
variable: var1
|
||||
value: 75
|
||||
unit_of_measurement: %
|
||||
@ -569,9 +571,9 @@ Set the relative value of a variable or setpoint.
|
||||
If `value` is not defined, it is assumed to be 0.
|
||||
If `unit_of_measurement` is not defined, it is assumed to be `native`.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `variable` | No | Variable name | [VARIABLE](#variables-and-units), [SETPOINT](#variables-and-units), [THRESHOLD](#variables-and-units) |
|
||||
| `value` | Yes | Variable value | _any positive or negative number_ |
|
||||
| `unit_of_measurement` | Yes | Variable unit | [VAR_UNIT](#variables-and-units) |
|
||||
@ -581,7 +583,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.var_rel
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
variable: var1
|
||||
value: 10
|
||||
unit_of_measurement: %
|
||||
@ -596,9 +598,9 @@ Otherwise the module might show unexpected behavior or return error messages.
|
||||
|
||||
Reset value of variable or setpoint.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | ------------------------------------------------------------------ |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `variable` | No | Variable name | [VARIABLE](#variables-and-units), [SETPOINT](#variables-and-units) |
|
||||
|
||||
Example:
|
||||
@ -606,7 +608,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.var_reset
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
variable: var1
|
||||
```
|
||||
|
||||
@ -620,9 +622,9 @@ Otherwise the module might show unexpected behavior or return error messages.
|
||||
Locks a regulator setpoint.
|
||||
If `state` is not defined, it is assumed to be `False`.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | -------------------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `setpoint` | No | Setpoint name | [SETPOINT](#variables-and-units) |
|
||||
| `state` | Yes | Lock state | true, false |
|
||||
|
||||
@ -631,7 +633,7 @@ Example:
|
||||
```yaml
|
||||
action: lcn.lock_regulator
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
setpoint: r1varsetpoint
|
||||
state: true
|
||||
```
|
||||
@ -644,9 +646,9 @@ If `state` is not defined, it is assumed to be `hit`.
|
||||
The command allows the sending of keys immediately or deferred. For a deferred sending the attributes `time` and `time_unit` have to be specified. For deferred sending, the only key state allowed is `hit`.
|
||||
If `time_unit` is not defined, it is assumed to be `seconds`.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | --------------------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `keys` | No | Keys string |
|
||||
| `state` | Yes | Keys state | [KEY_STATE](#states) |
|
||||
| `time` | Yes | Deferred time | 0.. |
|
||||
@ -658,7 +660,7 @@ Send keys immediately:
|
||||
```yaml
|
||||
action: lcn.send_keys
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
keys: a1a5d8
|
||||
state: hit
|
||||
```
|
||||
@ -667,7 +669,7 @@ Send keys deferred:
|
||||
```yaml
|
||||
action: lcn.send_keys
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
keys: a1a5d8
|
||||
time: 5
|
||||
time_unit: s
|
||||
@ -681,10 +683,10 @@ The key lock states are defined as a string with eight characters. Each characte
|
||||
The command allows the locking of keys for a specified time period. For a time period, the attributes `time` and `time_unit` have to be specified. For a time period, only table `a` is allowed.
|
||||
If `time_unit` is not defined, it is assumed to be `seconds`.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | --------------------------------- |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `table` | Yes | Table with keys to lock |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `table` | Yes | Table with keys to lock ||
|
||||
| `state` | No | Key lock states as string | [KEY_STATE](#states) |
|
||||
| `time` | Yes | Time period to lock | 0.. |
|
||||
| `time_unit` | Yes | Time unit | [TIME_UNIT](#variables-and-units) |
|
||||
@ -695,7 +697,7 @@ Lock keys forever:
|
||||
```yaml
|
||||
action: lcn.lock_keys
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
table: a
|
||||
state: 1---t0--
|
||||
```
|
||||
@ -704,7 +706,7 @@ Lock keys for a specified time period:
|
||||
```yaml
|
||||
action: lcn.lock_keys
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
state: 1---t0--
|
||||
time: 10
|
||||
time_unit: s
|
||||
@ -716,19 +718,18 @@ Send dynamic text to LCN-GTxD displays.
|
||||
The displays support four rows for text messages.
|
||||
Each row can be set independently and can store up to 60 characters (encoded in UTF-8).
|
||||
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ---------------------------------- | ------ |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `row` | No | Text row 1..4 |
|
||||
| `text` | No | Text to send for the specified row |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `row` | No | Text row 1-4 ||
|
||||
| `text` | No | Text to send for the specified row ||
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
action: lcn.dyn_text
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
row: 1
|
||||
text: "text in row 1"
|
||||
```
|
||||
@ -737,17 +738,17 @@ data:
|
||||
|
||||
Send arbitrary PCK command. Only the command part of the PCK command has to be specified in the `pck` string.
|
||||
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| Data attribute | Optional | Description | Values |
|
||||
| ---------------------- | -------- | ----------------------------- | ------ |
|
||||
| `address` | No | [LCN address](#lcn-addresses) |
|
||||
| `pck` | No | PCK command |
|
||||
| `device_id` | No | Home Assistant device id ||
|
||||
| `pck` | No | PCK command ||
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
action: lcn.pck
|
||||
data:
|
||||
address: myhome.0.7
|
||||
device_id: 91aa039a2fb6e0b9f9ec7eb219a6b7d2
|
||||
pck: PIN4
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user