13.1.18. DZG_GSH01¶
Module that collects power and energy measurements from an GSH01 powermeter
For a detailed handwritten documentation see here
13.1.18.1. Provides¶
main:powermeter
Implementation of the driver functionality
config:
powermeter_device_id:
description:The powermeter’s address on the serial bus, 255 is broadcast
type:integer
serial_port:
description:Serial port the hardware is connected to
type:string
default:/dev/ttyUSB0
baudrate:
description:Baudrate
type:integer
parity:
description:Parity bit: 0: None, 1: Odd, 2: Even
type:integer
rs485_direction_gpio:
description:GPIO to use for direction switching. Set to -1 to disable.
type:integer
num_of_retries:
description:Number of retries sent via serial interface. Set to 0 to disable retry.
type:integer
ignore_echo:
description:On some hardware every message that is sent is read back, this setting filters the sent message in the reply.
type:boolean
max_clock_diff_s:
description:Maximal time difference (in seconds) between meter clock and system clock, until new set_time command is sent
type:integer
publish_device_data:
description:Regularly publish device data not covered by the “powermeter” interface (for debugging purposes).
type:boolean
publish_device_diagnostics:
description:Regularly publish device diagnostics (e.g. log messages, errors, SW/HW revisions; for debugging purposes).
type:boolean
config:
powermeter_device_id:integer <optional>
default: 255
The powermeter’s address on the serial bus, 255 is broadcast
serial_port:string <optional>
default: “/dev/ttyUSB0”
Serial port the hardware is connected to
baudrate:integer <optional>
default: 115200
Baudrate
parity:integer <optional>
default: 0
Parity bit: 0: None, 1: Odd, 2: Even
rs485_direction_gpio:integer <optional>
default: -1
GPIO to use for direction switching. Set to -1 to disable.
num_of_retries:integer <optional>
default: 0
Number of retries sent via serial interface. Set to 0 to disable retry.
ignore_echo:boolean <optional>
default: False
On some hardware every message that is sent is read back, this setting filters the sent message in the reply.
max_clock_diff_s:integer <optional>
default: 60
Maximal time difference (in seconds) between meter clock and system clock, until new set_time command is sent
publish_device_data:boolean <optional>
default: False
Regularly publish device data not covered by the “powermeter” interface (for debugging purposes).
publish_device_diagnostics:boolean <optional>
default: False
Regularly publish device diagnostics (e.g. log messages, errors, SW/HW revisions; for debugging purposes).