Skip to content

Commit

Permalink
Update services.yaml
Browse files Browse the repository at this point in the history
update read and write
  • Loading branch information
CrazyUs3r authored Jul 4, 2024
1 parent 8ad860a commit 6a6a0fe
Showing 1 changed file with 89 additions and 7 deletions.
96 changes: 89 additions & 7 deletions custom_components/solarman/services.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,77 @@
read_holding_register:
name: Read Holding Register (Modbus Function Code 3)
description: Read a single register value

fields:
device:
name: Device
description: The Device
example: "inverter_roof"
required: true
selector:
device:
filter:
- integration: solarman
register:
name: Register
description: Modbus register address
example: "16384"
required: true
selector:
number:
min: 0
max: 65535
mode: box

read_multiple_holding_registers:
name: Read Multiple Holding Registers (Modbus Function Code 3)
description: Read values from multiple consecutive registers at once.

fields:
device:
name: Device
description: The Device
example: "inverter_roof"
required: true
selector:
device:
filter:
- integration: solarman
register:
name: Register
description: Modbus register address
example: "16384"
required: true
selector:
number:
min: 0
max: 65535
mode: box
count:
name: Count
description: Count of registers to read
example: "4"
required: true
selector:
number:
min: 1
max: 65535
mode: box

write_holding_register:
name: Write Holding Register (Modbus Function Code 6)
description: NOTE USE WITH CARE!
description: NOTE USE WITH CARE! (Some devices might not accept Code 6 in this case try to use 'Write Multiple Holding Registers')

fields:
device:
name: Device
description: The Device
example: "inverter_roof"
required: true
selector:
device:
filter:
- integration: solarman
register:
name: Register
description: Modbus register address
Expand All @@ -11,9 +80,8 @@ write_holding_register:
selector:
number:
min: 0
max: 65535
max: 65535
mode: box

value:
name: Values
description: Value to write
Expand All @@ -25,9 +93,18 @@ write_holding_register:

write_multiple_holding_registers:
name: Write Multiple Holding Registers (Modbus Function Code 16)
description: NOTE USE WITH CARE!
description: NOTE USE WITH CARE! (Some devices might not accept Code 16 in this case try to use 'Write Holding Register')

fields:
device:
name: Device
description: The Device
example: "inverter_roof"
required: true
selector:
device:
filter:
- integration: solarman
register:
name: Register
description: Modbus register address
Expand All @@ -36,9 +113,8 @@ write_multiple_holding_registers:
selector:
number:
min: 0
max: 65535
max: 65535
mode: box

values:
name: Values
description: Values to write
Expand All @@ -48,4 +124,10 @@ write_multiple_holding_registers:
- 3
required: true
selector:
object:
number:
min: 0
max: 65535
mode: box
object:


0 comments on commit 6a6a0fe

Please sign in to comment.