jonkristian / alko

AL-KO Robolinho component for Home Assistant
MIT License
17 stars 3 forks source link

Error codes description text #15

Open sikysikov opened 2 months ago

sikysikov commented 2 months ago

Hi, I asked AL-KO support to provide error codes description texts. They refused to share that but sent me link where description can be found for each code: https://alko-garden.com/robolinho-error-codes

It is not working for me anymore, but here I am sharing what I managed to get, you can add this code to your configuration.yaml

The description was auto-translated from my language, so you are welcome to improve that.

template:
  - sensor:
      - name: "ALKO error text"
        unique_id: "alko_error_text"
        icon: "mdi:information"
        state: >
          {% set mapper =  {
             '999' : 'OK',
             '1' : 'Tilt sensor activated',
             '2' : 'Lift sensor has been activated',
             '3' : 'Impact sensor damaged',
             '4' : 'Blades stop',
             '5' : 'Impact Sensor Activated',
             '6' : 'Impact Sensor Connection',
             '7' : 'No loop signal',
             '8' : 'Weak loop signal',
             '9' : 'Delimiter sensor error',
             '10' : 'Mower outside the defined area',
             '11' : 'Mower outside the defined area',
             '19' : 'Not calibrated',
             '20' : 'Motor power supply error',
             '21' : 'Motor power supply error',
             '22' : 'Motor power failure',
             '23' : 'Motor power supply error',
             '24' : 'Motor Power Error',
             '25' : 'Motor power supply error',
             '26' : 'Motor power supply error',
             '27' : 'Motor power supply error',
             '28' : 'Motor power supply error',
             '29' : 'Motor power supply error',
             '30' : 'Motor power supply error',
             '31' : 'Motor power supply error',
             '32' : 'Motor power supply error',
             '33' : 'Motor Power Error',
             '34' : 'Motor power supply error',
             '35' : 'Motor Power Error',
             '36' : 'Motor Power Error',
             '37' : 'Motor power supply error',
             '38' : 'Battery is discharged',
             '39' : 'Left drive motor error',
             '39' : 'Left drive motor error',
             '40' : 'Left drive motor error',
             '41' : 'Left drive motor error',
             '42' : 'Left drive motor error',
             '43' : 'Left drive motor error',
             '44' : 'Left drive motor error',
             '45' : 'Left drive motor overcurrent',
             '46' : 'Left drive motor overcurrent',
             '47' : 'Left drive motor overheated',
             '48' : 'Left drive motor error',
             '49' : 'Left drive motor error',
             '51' : 'Left drive motor error',
             '52' : 'Left drive motor error',
             '53' : 'Left drive motor error',
             '54' : 'Left drive motor error',
             '55' : 'Left drive motor error',
             '56' : 'Left drive motor error',
             '57' : 'Left drive motor error',
             '58' : 'Left drive motor error',
             '59' : 'Right drive motor error',
             '59' : 'Right drive motor error',
             '60' : 'Right drive motor error',
             '61' : 'Right drive motor error',
             '62' : 'Right drive motor error',
             '63' : 'Right drive motor error',
             '64' : 'Right drive motor error',
             '65' : 'Right drive motor overcurrent',
             '66' : 'Right drive motor overcurrent',
             '67' : 'Right drive motor overheated',
             '68' : 'Right drive motor error',
             '69' : 'Right drive motor error',
             '70' : 'Right drive motor error',
             '71' : 'Right drive motor error',
             '72' : 'Right drive motor error',
             '73' : 'Right drive motor error',
             '74' : 'Right drive motor error',
             '75' : 'Right drive motor error',
             '76' : 'Right drive motor error',
             '77' : 'Right drive motor error',
             '78' : 'Right drive motor error',
             '79' : 'Blades motor error',
             '80' : 'Blades motor error',
             '81' : 'Blades motor error',
             '82' : 'Blades motor error',
             '83' : 'Blades motor error',
             '84' : 'Blades motor error',
             '85' : 'Blades motor overcurrent',
             '86' : 'Blades motor error',
             '87' : 'Blades motor error',
             '88' : 'Blades motor error',
             '89' : 'Blades motor error',
             '90' : 'Blades motor error',
             '91' : 'Blades motor error',
             '92' : 'Blades motor error',
             '93' : 'Blades motor error',
             '94' : 'Blades motor error',
             '95' : 'Blades motor error',
             '96' : 'Blades motor error',
             '97' : 'Blades motor error',
             '98' : 'Blades motor error',
             '99' : 'Auto release not possible',
             '100' : 'Failed to release mower',
             '101' : 'Reversal failed',
             '102' : 'Wrong PIN',
             '103' : 'Base station contacts error',
             '104' : 'Battery overheated',
             '105' : 'Battery overheated',
             '106' : 'Battery overheated',
             '107' : 'Battery temperature too low',
             '108' : 'Battery temperature too low',
             '109' : 'Blades motor overheated',
             '110' : 'Blades motor overheated',
             '111' : 'Blades motor control error',
             '112' : 'Left drive motor error',
             '113' : 'Right drive motor error',
             '114' : 'Blades motor error',
             '115' : 'Left drive motor error',
             '116' : 'Right drive motor error',
             '117' : 'Blades motor error',
             '118' : 'Delimiter cable delimited',
             '119' : 'Right impact sensor activated',
             '120' : 'Left impact sensor activated',
             '125' : 'Release failed',
             '126' : 'Left drive motor overheated',
             '127' : 'Right drive motor overheated',
             '128' : 'Mower stuck',
             '129' : 'Left wheel motor blocked',
             '130' : 'Right wheel motor blocked',
             '132' : 'Failed to set mowing height',
             '133' : 'Blades motor blocked',
             '134' : 'Mower stuck',
             '135' : 'Disconnected battery'} %}
          {% set state =  states.sensor.operation_error.state %}
          {{ mapper[state] if state in mapper else 'Unknown' }}