-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostics Update #101
Diagnostics Update #101
Conversation
… closed and 1 indicates it is open.
…configured to be 0 for closed and 1 for open.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See minor comments below, and add some logger warnings in the case where switch configs do not supply the expected diagnostics fields
lna_temp: Optional[float] = None | ||
antenna_path_enabled: Optional[bool] = None | ||
noise_diode_path_enabled: Optional = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type annotation should be Optional[bool]
if "power_monitor28v" in all_switch_status: | ||
switch_diag["power_sensors"].append( | ||
{ | ||
"name": "28v Monitor", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest capitalizing "V" for Volts in all the power monitor diagnostics object names, e.g. "28V Monitor"
This modifies the diagnostics metadata and upgrades the preselector library version. Most of the changes are in the SPU object. Now the SPU contains sigan_powered, preselector_powered, humidity_sensors, temperature_sensors, power_sensors, door_closed, temperature_control_powered, heating, cooling, battery_backup, low_battery, battery_healthy, ups_healthy. This also moves the action_runtime into the computer diagnostics and changes the scos_uptime and scos_start to software_uptime and software_start. The acquire_sea_data_product actions has also been modified to look for specific states and sensors in the switches. If it finds them, it will add them to the appropriate metadata. The sea action has been modified to collect status on all switches and look for specific sensors and states. If they are not found they will not be added to the diagnostics.