From 8885762c8d762ab78ca1cd33383e10e531643079 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Wed, 22 Sep 2021 19:18:52 +0200 Subject: [PATCH] Description of restart service in modbus (#19170) Co-authored-by: Martin Hjelmare --- source/_integrations/modbus.markdown | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/_integrations/modbus.markdown b/source/_integrations/modbus.markdown index 3eda25ead86..01731750fd7 100644 --- a/source/_integrations/modbus.markdown +++ b/source/_integrations/modbus.markdown @@ -181,7 +181,7 @@ Remark: `name:`is required for multiple connections, because it needs to be uniq ## Modbus services -The Modbus integration provides two generic services in addition to the platform-specific services. +The Modbus integration provides two generic write services in addition to the platform-specific services. | Service | Description | | ------- | ----------- | @@ -198,6 +198,19 @@ Description: | value | (write_register) A single value or an array of 16-bit values. Single value will call modbus function code 0x06. Array will call modbus function code 0x10. Values might need reverse ordering. E.g., to set 0x0004 you might need to set `[4,0]`, this depend on the byte order of your CPU | | state | (write_coil) A single boolean or an array of booleans. Single boolean will call modbus function code 0x05. Array will call modbus function code 0x0F | +The Modbus integration also provides communication stop/restart services. These services will not do any reconfiguring, but simply stop/start the modbus communication layer. + +| Service | Description | +| ------- | ----------- | +| modbus.stop | Stop communication | +| modbus.restart | Restart communication (Stop first if running) | + +Description: + +| Attribute | Description | +| --------- | ----------- | +| hub | Hub name (defaults to 'modbus_hub' when omitted) | + # configure Modbus platforms Modbus platform entities are configured within the Modbus configuration.