Skip to content

Commit aeb7420

Browse files
authored
Wiki: remove sites moved to openWB Wiki, samples: add local modbus id var (#2850)
* remove sites moved to openWB Wiki * smaples: add local modbus id var
1 parent b452c90 commit aeb7420

5 files changed

Lines changed: 2 additions & 111 deletions

File tree

docs/IO-Geräte & -Aktionen.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

docs/Identifikation.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/Steuerbare Verbrauchseinrichtungen nach §14a.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

docs/samples/sample_modbus/sample_modbus/counter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def initialize(self) -> None:
2828
self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config))
2929

3030
def update(self):
31+
unit = self.component_config.configuration.modbus_id
3132
power = self.client.read_holding_registers(reg, ModbusDataType.INT_32, unit=unit)
3233
imported, exported = self.sim_counter.sim_count(power)
3334

docs/samples/sample_modbus/sample_modbus/inverter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def initialize(self) -> None:
2828
self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config))
2929

3030
def update(self) -> None:
31+
unit = self.component_config.configuration.modbus_id
3132
power = self.client.read_holding_registers(reg, ModbusDataType.INT_32, unit=unit)
3233
exported = self.sim_counter.sim_count(power)[1]
3334

0 commit comments

Comments
 (0)