Skip to content

Commit

Permalink
BAT status check removed because their content is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Oberhofer committed Nov 2, 2023
1 parent 890800e commit b8b2609
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/modules/devices/rct/bat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,10 @@ def update(self, rct_client: RCT) -> None:
watt1 = rct_client.add_by_name(my_tab, 'g_sync.p_acc_lp')
watt2 = rct_client.add_by_name(my_tab, 'battery.stored_energy')
watt3 = rct_client.add_by_name(my_tab, 'battery.used_energy')
stat1 = rct_client.add_by_name(my_tab, 'battery.bat_status')
stat2 = rct_client.add_by_name(my_tab, 'battery.status')
stat3 = rct_client.add_by_name(my_tab, 'battery.status2')

# read all parameters
rct_client.read(my_tab)

if (stat1.value + stat2.value + stat3.value) > 0:
raise FaultState.error("Alarm Status Speicher ist ungleich 0.")

bat_state = BatState(
power=watt1.value * -1,
soc=socx.value * 100,
Expand Down

0 comments on commit b8b2609

Please sign in to comment.