mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-24 03:12:33 +10:00
run_state
This commit is contained in:
@@ -90,11 +90,11 @@ def scrape_inverter():
|
|||||||
try:
|
try:
|
||||||
if inverter.get('start_stop'):
|
if inverter.get('start_stop'):
|
||||||
if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run':
|
if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run':
|
||||||
inverter["power_state"] = "ON"
|
inverter["run_state"] = "ON"
|
||||||
else:
|
else:
|
||||||
inverter["power_state"] = "OFF"
|
inverter["run_state"] = "OFF"
|
||||||
else:
|
else:
|
||||||
inverter["power_state"] = "OFF"
|
inverter["run_state"] = "OFF"
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user