.. _everest_modules_LemDCBM400600: ############# LemDCBM400600 ############# | Module implementing the LEM DCBM 400/600 power meter driver adapter via HTTP. ************************* Handwritten Documentation ************************* .. include:: index.inc ************************ Auto-Generated Reference ************************ Module Configuration ==================== | **ip_address**: *string* | IP Address of the power meter API. | **port**: *integer* | *default: 80* | Port of the power meter API. | **interface**: *string* | *default: ""* | Bind to a specific network interface. If left empty, the module will bind to all interfaces. | **meter_tls_certificate**: *string* | *default: ""* | The DCBM's HTTPS certificate, in PEM format. If provided, HTTPS will be used. If left empty, regular HTTP will be used. Note that this does not affect the default port - specify a port explicitly if you wish to use a port other than 80. | **http_connection_reuse**: *boolean* | *default: True* | Reuse HTTP(S) connections to the power meter across requests. This avoids a TCP connect (and, with TLS, a full TLS handshake) for every poll. Disable to restore the previous behavior of one fresh connection per request, e.g. if the device misbehaves with keep-alive connections. | **ntp_server_1_ip_addr**: *string* | *default: ""* | The IPv4 address (in 4-octet form W.X.Y.Z) of the first NTP server to use for time sync. If this is left empty, NTP will not be configured on the DCBM - its time will be synced with EVerest's system time instead. | **ntp_server_1_port**: *integer* | *default: 123* | The port (1-65535) of the first NTP server. | **ntp_server_2_ip_addr**: *string* | *default: ""* | The IPv4 address (in 4-octet form W.X.Y.Z) of the second NTP server to use for time sync. This is ignored if ntp_server_1_ip_addr is empty. | **ntp_server_2_port**: *integer* | *default: 123* | The port (1-65535) fof the second NTP server. | **meter_timezone**: *string* | *default: "+00:00"* | The timezone offset (ignored if NTP servers are set) - it can go from -11 to +14 for hours and 00, 15, 30, 45 for minutes | **meter_dst**: *string* | *default: "{"activated": false, "offset": 60, "start": {"order": "last", "day": "sunday", "month": "march", "hour": "T01:00Z"}, "end": {"order": "last", "day": "sunday", "month": "october", "hour": "T01:00Z" }}"* | The Daylight Saving Time (DST) settings (ignored if NTP is set) | **resilience_initial_connection_retries**: *integer* | *default: 25* | For the controller resilience, the number of retries to connect to the powermeter at module initialization. | **resilience_initial_connection_retry_delay**: *integer* | *default: 10000* | For the controller resilience, the delay in milliseconds before a retry attempt at module initialization.. | **resilience_transaction_request_retries**: *integer* | *default: 3* | For the controller resilience, the number of retries to connect to the powermeter at a transaction start or stop request. | **resilience_transaction_request_retry_delay**: *integer* | *default: 250* | For the controller resilience, the delay in milliseconds before a retry attempt at a transaction start or stop request. | **cable_id**: *integer* | *default: 0* | The cable loss compensation level to use. This allows compensating the measurements of the DCBM with a resistance. | **tariff_id**: *integer* | *default: 0* | Used for a unique transaction tariff designation | **transaction_body_format**: *string* | *default: "LEM"* | Body format of the v1 transaction start request (POST /v1/legal). LEM: as documented by LEM - tariffId as a number, cableId included. AST: for the AST DC650 with its K220031 Ethernet display unit, which implements the LEM API but answers the LEM body with 400 Bad Request. It needs tariffId as a string and no cableId field (cable loss compensation is configured on the device via /v1/settings cableConf). AST also confirms a transaction stop through /v1/status, because the device's stop response carries no transactionStatus. Ignored for v2-capable devices. | enum: | - LEM | - AST | **IT**: *integer* | *default: -1* | OCMF Identification Type (set on device at startup via /settings/ocmfId/IT). Values per LEM DCBM Communication Protocol 4.2.10.3: 0=NONE, 1=DENIED, 2=UNDEFINED, 3=ISO14443, 4=ISO15693, 5=EMAID, 6=EVCCID, 7=EVCOID, 8=ISO7812, 9=CARD_TXN_NR, 10=CENTRAL, 11=CENTRAL_1, 12=CENTRAL_2, 13=LOCAL, 14=LOCAL_1, 15=LOCAL_2, 16=PHONE_NUMBER, 17=KEY_CODE. A value of -1 means the field is not set on the device. By setting this value you can control the content of the ID field of OCMF record. If this value is not set, ID is set to the transaction id. Please check the device documentation for more details. | WARNING: The device documentation states: "For correct usage the IT fields shall be set once to the corresponding protocol used (or kept to NONE as per default value), and not be changed during the lifetime of the DCBM due to current software limitation." | **SC**: *integer* | *default: 0* | SC (OCMF/transaction fields) | **UV**: *string* | *default: ""* | User SW Version (OCMF/transaction fields) | **UD**: *string* | *default: ""* | UD (OCMF/transaction fields) | **temperature_warning_level_C**: *number* | *default: 5000* | Temperature warning threshold in degrees Celsius. If the maximum of temperatureH and temperatureL exceeds this value for at least temperature_min_time_as_valid_ms, a VendorWarning is raised. Charging continues. Default of 5000 effectively disables this. | **temperature_error_level_C**: *number* | *default: 5000* | Temperature error threshold in degrees Celsius. If the maximum of temperatureH and temperatureL exceeds this value for at least temperature_min_time_as_valid_ms, a VendorError is raised. Charging is stopped. Default of 5000 effectively disables this. | **temperature_hysteresis_K**: *number* | *default: 3* | Hysteresis in Kelvin for clearing temperature warnings and errors. A warning is cleared when max temperature drops below warning_level - hysteresis. An error is cleared when max temperature drops below error_level - hysteresis. | **temperature_min_time_as_valid_ms**: *integer* | *default: 5000* | Minimum time in milliseconds that the temperature must continuously exceed the warning or error level before the corresponding event is raised. | **command_timeout_ms**: *integer* | *default: 5000* | The timeout in milliseconds for a HTTP command to the LEM power meter. | **poll_interval_ms**: *integer* | *default: 1000* | The interval in milliseconds between polls of the live measurements. Only a poll that returns a new measurement publishes the powermeter var; the device refreshes about once per second, so a shorter interval reduces the delay until a new measurement is published, not the measurement rate. | **transaction_ocmf_fetch_interval_s**: *integer* | *default: 0* | While a transaction is active, the current OCMF record is periodically fetched from the device as a fallback, so a signed meter value is available even if the device becomes unreachable at transaction stop. This option throttles that fetch to at most once every N seconds. The default of 0 fetches on every poll (previous behavior). | **min_import_current_A**: *number* | *default: 0* | Minimum current in Ampere in import direction (charging, the direction accumulated in the DCBM's energyImportTotal register) the meter can measure within its accuracy class. Take this value from the device datasheet. Published via the capabilities var of the powermeter interface. A value of 0 means no restriction. | **min_export_current_A**: *number* | *default: 0* | Minimum current in Ampere in export direction (discharging, the direction accumulated in the DCBM's energyExportTotal register) the meter can measure within its accuracy class. Take this value from the device datasheet. Published via the capabilities var of the powermeter interface. A value of 0 means no restriction. Provides ======== | **main**: :ref:`powermeter ` | This is the main unit of the module ******** Metadata ******** Authors ======= | Valentin Dimov, valentin.dimov@pionix.de | Fabian Klemm, fabian.klemm@pionix.de License ======= | https://opensource.org/licenses/Apache-2.0