mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove configuration details
This commit is contained in:
parent
e615755eb9
commit
ba13f13442
@ -3,35 +3,9 @@ homeassistant.components.switch.modbus
|
|||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for Modbus switches.
|
Support for Modbus switches.
|
||||||
|
|
||||||
Configuration:
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/switch.modbus.html
|
||||||
To use the Modbus switches you will need to add something like the following to
|
|
||||||
your configuration.yaml file.
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
platform: modbus
|
|
||||||
slave: 1
|
|
||||||
registers:
|
|
||||||
24:
|
|
||||||
bits:
|
|
||||||
0:
|
|
||||||
name: My switch
|
|
||||||
2:
|
|
||||||
name: My other switch
|
|
||||||
coils:
|
|
||||||
0:
|
|
||||||
name: My coil switch
|
|
||||||
|
|
||||||
VARIABLES:
|
|
||||||
|
|
||||||
- "slave" = slave number (ignored and can be omitted if not serial Modbus)
|
|
||||||
- "registers" contains a list of relevant registers to read from
|
|
||||||
- it must contain a "bits" section, listing relevant bits
|
|
||||||
- "coils" contains a list of relevant coils to read from/write to
|
|
||||||
|
|
||||||
- each named bit will create a switch
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import homeassistant.components.modbus as modbus
|
import homeassistant.components.modbus as modbus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user