.. _everest_modules_CarloGavazzi_EM580: ################## CarloGavazzi_EM580 ################## | Carlo Gavazzi EM580 powermeter ************************* Handwritten Documentation ************************* .. include:: index.inc ************************ Auto-Generated Reference ************************ Provides ======== | **main**: :ref:`powermeter ` | Implementation of the driver functionality | **config:** | **powermeter_device_id**: *integer* | *default: 1* | The powermeter's address on the serial bus | **communication_retry_count**: *integer* | *default: 3* | Number of retries for communication operations before giving up. | **communication_retry_delay_ms**: *integer* | *default: 500* | Delay in milliseconds between retry attempts. | **communication_error_pause_delay_s**: *integer* | *default: 10* | Delay in seconds before retrying communication in the live measurement thread after a failure. Default 10 seconds. Applies to initial communication too. | **initial_connection_retry_count**: *integer* | *default: 10* | Number of retries for initial connection/signature config read during module initialization. 0 means infinite retries. | **initial_connection_retry_delay_ms**: *integer* | *default: 2000* | Delay in milliseconds between retry attempts during initialization. | **timezone_offset_minutes**: *integer* | *default: 0* | Timezone offset from UTC in minutes (e.g., 60 for UTC+1, -300 for UTC-5). Range -1440 to +1440 minutes. Default is 0 (UTC). Ignored when use_system_timezone is enabled. | **live_measurement_interval_ms**: *integer* | *default: 1000* | Interval in milliseconds between live powermeter reads and publishes. Default 1000 ms (once per second). Allowed range 500-60000 ms (twice per second to once per minute). | **device_state_read_interval_ms**: *integer* | *default: 10000* | Interval in milliseconds between reading the device state bitfield (VendorError reporting) and, when monitor_transaction_state is enabled, the OCMF transaction state while a transaction is active. Default 10000 ms (once per 10 seconds). Allowed range 500-60000 ms. | **public_key_format**: *string* | *default: "binary"* | The key format to use for the public key. | enum: | - binary | - der | **monitor_transaction_state**: *boolean* | *default: False* | When enabled, reads the OCMF state at device_state_read_interval_ms while a transaction is active. If the device reports READY (transaction closed on the meter side, e.g. after a brief power loss), raises powermeter/VendorError so the charging session can be stopped when fail_on_powermeter_errors is enabled in the EvseManager module. | **use_system_timezone**: *boolean* | *default: False* | When enabled, the timezone offset written to the device follows the time zone of the host (TZ or /etc/localtime), including daylight saving time changes, and timezone_offset_minutes is ignored. The offset is checked at device_state_read_interval_ms and a change is written right away, also during a transaction: every OCMF reading carries its own offset. | **startup_transaction_state_timeout_s**: *integer* | *default: 30* | Maximum time in seconds a start or stop transaction request waits at start up until the device is configured and its transaction state (a running or closed transaction and its id) is known. EvseManager stops the transaction of the previous session at start up, possibly before that; without the wait such a stop does not find the transaction and its OCMF file is not returned. Waited for once only. The default of 30 s covers a device that answers but is slow to configure, including a few retries; a device that does not answer is not configured within any reasonable wait. 0 disables the wait. | **temperature_sensor**: :ref:`temperature_sensor ` | Internal temperature readings from the EM580 device Requirements ============ | **modbus**: :ref:`serial_communication_hub ` 1 ******** Metadata ******** Authors ======= | florin.mihut@pionix.com License ======= | https://opensource.org/licenses/Apache-2.0