Fix options for error sensor in Husqvarna Automower (#149901)

This commit is contained in:
Thomas55555 2025-08-03 20:05:23 +02:00 committed by GitHub
parent 4318e29ce8
commit 627785edc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 35 additions and 36 deletions

View File

@ -71,10 +71,10 @@ ERROR_KEYS = [
"cutting_drive_motor_2_defect", "cutting_drive_motor_2_defect",
"cutting_drive_motor_3_defect", "cutting_drive_motor_3_defect",
"cutting_height_blocked", "cutting_height_blocked",
"cutting_height_problem",
"cutting_height_problem_curr", "cutting_height_problem_curr",
"cutting_height_problem_dir", "cutting_height_problem_dir",
"cutting_height_problem_drive", "cutting_height_problem_drive",
"cutting_height_problem",
"cutting_motor_problem", "cutting_motor_problem",
"cutting_stopped_slope_too_steep", "cutting_stopped_slope_too_steep",
"cutting_system_blocked", "cutting_system_blocked",
@ -117,7 +117,6 @@ ERROR_KEYS = [
"no_accurate_position_from_satellites", "no_accurate_position_from_satellites",
"no_confirmed_position", "no_confirmed_position",
"no_drive", "no_drive",
"no_error",
"no_loop_signal", "no_loop_signal",
"no_power_in_charging_station", "no_power_in_charging_station",
"no_response_from_charger", "no_response_from_charger",
@ -169,8 +168,8 @@ ERROR_KEYS = [
] ]
ERROR_KEY_LIST = list( ERROR_KEY_LIST = sorted(
dict.fromkeys(ERROR_KEYS + [state.lower() for state in ERROR_STATES]) set(ERROR_KEYS) | {state.lower() for state in ERROR_STATES} | {"no_error"}
) )
INACTIVE_REASONS: list = [ INACTIVE_REASONS: list = [

View File

@ -205,10 +205,10 @@
'cutting_drive_motor_2_defect', 'cutting_drive_motor_2_defect',
'cutting_drive_motor_3_defect', 'cutting_drive_motor_3_defect',
'cutting_height_blocked', 'cutting_height_blocked',
'cutting_height_problem',
'cutting_height_problem_curr', 'cutting_height_problem_curr',
'cutting_height_problem_dir', 'cutting_height_problem_dir',
'cutting_height_problem_drive', 'cutting_height_problem_drive',
'cutting_height_problem',
'cutting_motor_problem', 'cutting_motor_problem',
'cutting_stopped_slope_too_steep', 'cutting_stopped_slope_too_steep',
'cutting_system_blocked', 'cutting_system_blocked',
@ -219,6 +219,9 @@
'docking_sensor_defect', 'docking_sensor_defect',
'electronic_problem', 'electronic_problem',
'empty_battery', 'empty_battery',
'error',
'error_at_power_up',
'fatal_error',
'folding_cutting_deck_sensor_defect', 'folding_cutting_deck_sensor_defect',
'folding_sensor_activated', 'folding_sensor_activated',
'geofence_problem', 'geofence_problem',
@ -255,6 +258,7 @@
'no_loop_signal', 'no_loop_signal',
'no_power_in_charging_station', 'no_power_in_charging_station',
'no_response_from_charger', 'no_response_from_charger',
'off',
'outside_working_area', 'outside_working_area',
'poor_signal_quality', 'poor_signal_quality',
'reference_station_communication_problem', 'reference_station_communication_problem',
@ -268,6 +272,7 @@
'slope_too_steep', 'slope_too_steep',
'sms_could_not_be_sent', 'sms_could_not_be_sent',
'stop_button_problem', 'stop_button_problem',
'stopped',
'stuck_in_charging_station', 'stuck_in_charging_station',
'switch_cord_problem', 'switch_cord_problem',
'temporary_battery_problem', 'temporary_battery_problem',
@ -283,6 +288,8 @@
'unexpected_cutting_height_adj', 'unexpected_cutting_height_adj',
'unexpected_error', 'unexpected_error',
'upside_down', 'upside_down',
'wait_power_up',
'wait_updating',
'weak_gps_signal', 'weak_gps_signal',
'wheel_drive_problem_left', 'wheel_drive_problem_left',
'wheel_drive_problem_rear_left', 'wheel_drive_problem_rear_left',
@ -300,13 +307,6 @@
'wrong_loop_signal', 'wrong_loop_signal',
'wrong_pin_code', 'wrong_pin_code',
'zone_generator_problem', 'zone_generator_problem',
'error_at_power_up',
'error',
'fatal_error',
'off',
'stopped',
'wait_power_up',
'wait_updating',
]), ]),
}), }),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
@ -372,10 +372,10 @@
'cutting_drive_motor_2_defect', 'cutting_drive_motor_2_defect',
'cutting_drive_motor_3_defect', 'cutting_drive_motor_3_defect',
'cutting_height_blocked', 'cutting_height_blocked',
'cutting_height_problem',
'cutting_height_problem_curr', 'cutting_height_problem_curr',
'cutting_height_problem_dir', 'cutting_height_problem_dir',
'cutting_height_problem_drive', 'cutting_height_problem_drive',
'cutting_height_problem',
'cutting_motor_problem', 'cutting_motor_problem',
'cutting_stopped_slope_too_steep', 'cutting_stopped_slope_too_steep',
'cutting_system_blocked', 'cutting_system_blocked',
@ -386,6 +386,9 @@
'docking_sensor_defect', 'docking_sensor_defect',
'electronic_problem', 'electronic_problem',
'empty_battery', 'empty_battery',
'error',
'error_at_power_up',
'fatal_error',
'folding_cutting_deck_sensor_defect', 'folding_cutting_deck_sensor_defect',
'folding_sensor_activated', 'folding_sensor_activated',
'geofence_problem', 'geofence_problem',
@ -422,6 +425,7 @@
'no_loop_signal', 'no_loop_signal',
'no_power_in_charging_station', 'no_power_in_charging_station',
'no_response_from_charger', 'no_response_from_charger',
'off',
'outside_working_area', 'outside_working_area',
'poor_signal_quality', 'poor_signal_quality',
'reference_station_communication_problem', 'reference_station_communication_problem',
@ -435,6 +439,7 @@
'slope_too_steep', 'slope_too_steep',
'sms_could_not_be_sent', 'sms_could_not_be_sent',
'stop_button_problem', 'stop_button_problem',
'stopped',
'stuck_in_charging_station', 'stuck_in_charging_station',
'switch_cord_problem', 'switch_cord_problem',
'temporary_battery_problem', 'temporary_battery_problem',
@ -450,6 +455,8 @@
'unexpected_cutting_height_adj', 'unexpected_cutting_height_adj',
'unexpected_error', 'unexpected_error',
'upside_down', 'upside_down',
'wait_power_up',
'wait_updating',
'weak_gps_signal', 'weak_gps_signal',
'wheel_drive_problem_left', 'wheel_drive_problem_left',
'wheel_drive_problem_rear_left', 'wheel_drive_problem_rear_left',
@ -467,13 +474,6 @@
'wrong_loop_signal', 'wrong_loop_signal',
'wrong_pin_code', 'wrong_pin_code',
'zone_generator_problem', 'zone_generator_problem',
'error_at_power_up',
'error',
'fatal_error',
'off',
'stopped',
'wait_power_up',
'wait_updating',
]), ]),
}), }),
'context': <ANY>, 'context': <ANY>,
@ -1568,10 +1568,10 @@
'cutting_drive_motor_2_defect', 'cutting_drive_motor_2_defect',
'cutting_drive_motor_3_defect', 'cutting_drive_motor_3_defect',
'cutting_height_blocked', 'cutting_height_blocked',
'cutting_height_problem',
'cutting_height_problem_curr', 'cutting_height_problem_curr',
'cutting_height_problem_dir', 'cutting_height_problem_dir',
'cutting_height_problem_drive', 'cutting_height_problem_drive',
'cutting_height_problem',
'cutting_motor_problem', 'cutting_motor_problem',
'cutting_stopped_slope_too_steep', 'cutting_stopped_slope_too_steep',
'cutting_system_blocked', 'cutting_system_blocked',
@ -1582,6 +1582,9 @@
'docking_sensor_defect', 'docking_sensor_defect',
'electronic_problem', 'electronic_problem',
'empty_battery', 'empty_battery',
'error',
'error_at_power_up',
'fatal_error',
'folding_cutting_deck_sensor_defect', 'folding_cutting_deck_sensor_defect',
'folding_sensor_activated', 'folding_sensor_activated',
'geofence_problem', 'geofence_problem',
@ -1618,6 +1621,7 @@
'no_loop_signal', 'no_loop_signal',
'no_power_in_charging_station', 'no_power_in_charging_station',
'no_response_from_charger', 'no_response_from_charger',
'off',
'outside_working_area', 'outside_working_area',
'poor_signal_quality', 'poor_signal_quality',
'reference_station_communication_problem', 'reference_station_communication_problem',
@ -1631,6 +1635,7 @@
'slope_too_steep', 'slope_too_steep',
'sms_could_not_be_sent', 'sms_could_not_be_sent',
'stop_button_problem', 'stop_button_problem',
'stopped',
'stuck_in_charging_station', 'stuck_in_charging_station',
'switch_cord_problem', 'switch_cord_problem',
'temporary_battery_problem', 'temporary_battery_problem',
@ -1646,6 +1651,8 @@
'unexpected_cutting_height_adj', 'unexpected_cutting_height_adj',
'unexpected_error', 'unexpected_error',
'upside_down', 'upside_down',
'wait_power_up',
'wait_updating',
'weak_gps_signal', 'weak_gps_signal',
'wheel_drive_problem_left', 'wheel_drive_problem_left',
'wheel_drive_problem_rear_left', 'wheel_drive_problem_rear_left',
@ -1663,13 +1670,6 @@
'wrong_loop_signal', 'wrong_loop_signal',
'wrong_pin_code', 'wrong_pin_code',
'zone_generator_problem', 'zone_generator_problem',
'error_at_power_up',
'error',
'fatal_error',
'off',
'stopped',
'wait_power_up',
'wait_updating',
]), ]),
}), }),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
@ -1735,10 +1735,10 @@
'cutting_drive_motor_2_defect', 'cutting_drive_motor_2_defect',
'cutting_drive_motor_3_defect', 'cutting_drive_motor_3_defect',
'cutting_height_blocked', 'cutting_height_blocked',
'cutting_height_problem',
'cutting_height_problem_curr', 'cutting_height_problem_curr',
'cutting_height_problem_dir', 'cutting_height_problem_dir',
'cutting_height_problem_drive', 'cutting_height_problem_drive',
'cutting_height_problem',
'cutting_motor_problem', 'cutting_motor_problem',
'cutting_stopped_slope_too_steep', 'cutting_stopped_slope_too_steep',
'cutting_system_blocked', 'cutting_system_blocked',
@ -1749,6 +1749,9 @@
'docking_sensor_defect', 'docking_sensor_defect',
'electronic_problem', 'electronic_problem',
'empty_battery', 'empty_battery',
'error',
'error_at_power_up',
'fatal_error',
'folding_cutting_deck_sensor_defect', 'folding_cutting_deck_sensor_defect',
'folding_sensor_activated', 'folding_sensor_activated',
'geofence_problem', 'geofence_problem',
@ -1785,6 +1788,7 @@
'no_loop_signal', 'no_loop_signal',
'no_power_in_charging_station', 'no_power_in_charging_station',
'no_response_from_charger', 'no_response_from_charger',
'off',
'outside_working_area', 'outside_working_area',
'poor_signal_quality', 'poor_signal_quality',
'reference_station_communication_problem', 'reference_station_communication_problem',
@ -1798,6 +1802,7 @@
'slope_too_steep', 'slope_too_steep',
'sms_could_not_be_sent', 'sms_could_not_be_sent',
'stop_button_problem', 'stop_button_problem',
'stopped',
'stuck_in_charging_station', 'stuck_in_charging_station',
'switch_cord_problem', 'switch_cord_problem',
'temporary_battery_problem', 'temporary_battery_problem',
@ -1813,6 +1818,8 @@
'unexpected_cutting_height_adj', 'unexpected_cutting_height_adj',
'unexpected_error', 'unexpected_error',
'upside_down', 'upside_down',
'wait_power_up',
'wait_updating',
'weak_gps_signal', 'weak_gps_signal',
'wheel_drive_problem_left', 'wheel_drive_problem_left',
'wheel_drive_problem_rear_left', 'wheel_drive_problem_rear_left',
@ -1830,13 +1837,6 @@
'wrong_loop_signal', 'wrong_loop_signal',
'wrong_pin_code', 'wrong_pin_code',
'zone_generator_problem', 'zone_generator_problem',
'error_at_power_up',
'error',
'fatal_error',
'off',
'stopped',
'wait_power_up',
'wait_updating',
]), ]),
}), }),
'context': <ANY>, 'context': <ANY>,