mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
update header
This commit is contained in:
parent
f84b3a509d
commit
fce16c6cdd
@ -1,4 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
|
homeassistant.components.modbus
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for Modbus sensors.
|
Support for Modbus sensors.
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
@ -22,16 +24,28 @@ sensor:
|
|||||||
0:
|
0:
|
||||||
name: My coil switch
|
name: My coil switch
|
||||||
|
|
||||||
VARIABLES:
|
Variables:
|
||||||
|
|
||||||
- "slave" = slave number (ignored and can be omitted if not serial Modbus)
|
slave
|
||||||
- "unit" = unit to attach to value (optional, ignored for boolean sensors)
|
*Required
|
||||||
- "registers" contains a list of relevant registers to read from
|
Slave number (ignored and can be omitted if not serial Modbus).
|
||||||
it can contain a "bits" section, listing relevant bits
|
|
||||||
- "coils" contains a list of relevant coils to read from
|
|
||||||
|
|
||||||
- each named register will create an integer sensor
|
unit
|
||||||
- each named bit will create a boolean sensor
|
*Required
|
||||||
|
Unit to attach to value (optional, ignored for boolean sensors).
|
||||||
|
|
||||||
|
registers
|
||||||
|
*Required
|
||||||
|
Contains a list of relevant registers to read from. It can contain a
|
||||||
|
"bits" section, listing relevant bits.
|
||||||
|
|
||||||
|
coils
|
||||||
|
*Optional
|
||||||
|
Contains a list of relevant coils to read from.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
- Each named register will create an integer sensor.
|
||||||
|
- Each named bit will create a boolean sensor.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
Loading…
x
Reference in New Issue
Block a user