ufozone / ha-zcs-mower

ZCS Lawn Mower Robots (Ambrogio, Techline, Wiper) platform as a Custom Component for Home Assistant.
MIT License
19 stars 0 forks source link

Lawn mover status expired #20

Closed sirfalo closed 1 year ago

sirfalo commented 1 year ago

HI

I tried via forum, but seems here it is better place: I have problem with my L35 Deluxe After configuration of integration - I have status ERROR - EXPIRED In logs I have such info:

2023-08-02 23:39:30.148 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:30.149 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'command': 'api.authenticate', 'params': {'appId': 'xxxxx', 'appToken': 'DJMYYngGNEit40vA', 'thingKey': 'xxxxx'}}}
2023-08-02 23:39:31.011 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:31.011 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'success': True, 'params': {'orgKey': 'ZUCCHETTICENTROSISTEMI', 'sessionId': '6537a8e8afa7e9d90e1b290e4d2dff9e'}}}
2023-08-02 23:39:31.012 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:31.012 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'command': 'thing.find', 'params': {'key': 'xxxxx'}}, 'auth': {'sessionId': '6537a8e8afa7e9d90e1b290e4d2dff9e'}}
2023-08-02 23:39:31.049 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:31.050 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'success': True, 'params': {'id': '64cacd12ba2b5769b479f719', 'orgId': '5853bd6cba2b57724c0c1341', 'ownerOrgId': '5853bd6cba2b57724c0c1341', 'permission': 'rw', 'name': 'auto:xxxxx', 'key': 'xxxxx', 'sessionRef': 'd9ca31acdf7aeb4a1b4408e47f3002f532fdcfb6d8a2247225dbdb5d115e0ef8', 'defId': '58a16f20447cfb2b8430be67', 'defName': 'Client', 'tags': ['client', 'ambrogio'], 'lastSeen': '2023-08-02T21:39:30.283Z', 'lastCommunication': '2023-08-02T21:39:30.283Z', 'tunnelActualHost': '127.0.0.1', 'tunnelVirtualHost': '127.0.0.1', 'createdBy': 'AUTOREG', 'createdOn': '2023-08-02T21:39:30.283Z', 'updatedBy': 'AUTOREG', 'updatedOn': '2023-08-02T21:39:30.283Z', 'defKey': 'client', 'connInfo': {'protocol': 'HTTPS', 'remoteAddr': '109.196.50.213:33408'}, 'connected': True, 'appId': True}}}
2023-08-02 23:39:31.050 DEBUG (MainThread) [custom_components.zcsmower] {'client_key': 'xxxxx', 'trace_position_enable': False, 'trace_position_interval_default': 3600, 'trace_position_interval_infinity': 600, 'wake_up_interval_default': 1800, 'wake_up_interval_infinity': 300, 'camera_enable': False, 'map_image_path': '', 'map_marker_path': '', 'map_gps_top_left': '', 'map_gps_bottom_right': '', 'map_history_enable': True, 'map_draw_lines': True, 'map_points': 100, 'lawn_mowers': {}}
2023-08-02 23:39:40.116 INFO (MainThread) [custom_components.zcsmower] 
2023-08-02 23:39:50.887 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:50.887 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'command': 'api.authenticate', 'params': {'appId': 'xxxxx', 'appToken': 'DJMYYngGNEit40vA', 'thingKey': 'xxxxx'}}}
2023-08-02 23:39:51.016 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:51.016 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'success': True, 'params': {'orgKey': 'ZUCCHETTICENTROSISTEMI', 'sessionId': 'acb6dd4371487673290aa058819db26e'}}}
2023-08-02 23:39:51.016 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:51.017 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'command': 'thing.find', 'params': {'imei': '359785020768936'}}, 'auth': {'sessionId': 'acb6dd4371487673290aa058819db26e'}}
2023-08-02 23:39:51.067 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:51.067 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'success': True, 'params': {'id': '5d283daaba2b577ad69d5ac9', 'orgId': '5853bd6cba2b57724c0c1341', 'ownerOrgId': '5853bd6cba2b57724c0c1341', 'permission': 'rw', 'name': 'auto:359785020768936', 'key': '359785020768936', 'defId': '58a16f20447cfb2b8430be69', 'defName': 'Robot', 'tags': ['robot', 'ambrogio'], 'lastSeen': '2021-07-12T08:01:56.248Z', 'lastCommunication': '2021-07-12T08:01:56.248Z', 'locUpdated': '2021-07-12T08:00:52Z', 'loc': {'lat': 50.135107, 'lng': 18.747576, 'geohash': 'u2vm4wgd4jmf', 'fixType': 'network', 'speed': 0, 'addr': {'street': 'Wolności', 'city': 'Jaśkowice', 'state': 'Silesian Voivodeship', 'zipCode': '43-180', 'country': 'PL'}, 'since': '2021-07-12T08:00:21Z'}, 'module': {'make': 'Telit', 'model': 'GE910-GNSS', 'fwVersion': '13.00.109'}, 'tunnelActualHost': '127.0.0.1', 'tunnelVirtualHost': '127.0.0.1', 'attrs': {'apn': {'ts': '2021-07-12T08:00:24.741Z', 'since': '2020-03-15T13:07:56.022Z', 'value': 'nxt17.net'}, 'robot_client1': {'ts': '2020-02-12T13:08:04.125Z', 'since': '2020-02-12T13:08:04.125Z', 'value': 'ERDD8jrYVfRv6rt4BuESvIVblaJ3'}, 'robot_client4': {'ts': '2020-03-15T14:41:13.711Z', 'since': '2020-03-15T14:41:13.711Z', 'value': 'h3J6eVHucwV4eudwi1153u8sfUL2'}, 'robot_serial': {'ts': '2019-07-12T07:58:46.746Z', 'since': '2019-07-12T07:58:46.746Z', 'value': 'AM035DK919040577'}}, 'properties': {'geofence_location_counter': {'ts': '2020-08-19T18:07:01.963Z', 'value': 5, 'corrId': 'geofence'}, 'robot_error': {'ts': '2021-07-09T13:16:55.934Z', 'value': 166}}, 'alarms': {'connection_state': {'ts': '2021-07-12T08:01:56.248Z', 'since': '2021-07-12T08:01:56.248Z', 'state': 0}, 'data_th': {'ts': '2020-09-21T10:13:17.126Z', 'since': '2019-07-12T08:04:11.612Z', 'state': 0}, 'infinity_plan_status': {'ts': '2021-07-12T08:00:24.754Z', 'since': '2020-09-09T07:02:23.473Z', 'state': 3}, 'robot_state': {'ts': '2021-07-12T08:00:44.192Z', 'since': '2021-07-12T08:00:44.192Z', 'state': 9}}, 'apiCounts': {'daily': 0, 'monthToDate': 0, 'total': 4138}, 'createdBy': 'AUTOREG', 'createdOn': '2019-07-12T07:58:34.772Z', 'updatedBy': '359785020768936', 'updatedOn': '2021-06-12T12:18:24.411Z', 'defKey': 'robot', 'connected': False, 'appId': True}}}
2023-08-02 23:39:51.067 DEBUG (MainThread) [custom_components.zcsmower] {'client_key': 'xxxxx', 'trace_position_enable': False, 'trace_position_interval_default': 3600, 'trace_position_interval_infinity': 600, 'wake_up_interval_default': 1800, 'wake_up_interval_infinity': 300, 'camera_enable': False, 'map_image_path': '', 'map_marker_path': '', 'map_gps_top_left': '', 'map_gps_bottom_right': '', 'map_history_enable': True, 'map_draw_lines': True, 'map_points': 100, 'lawn_mowers': {'359785020768936': {'name': 'L35 Deluxe'}}}
2023-08-02 23:39:51.068 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:51.068 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'command': 'api.authenticate', 'params': {'appId': 'xxxxx', 'appToken': 'DJMYYngGNEit40vA', 'thingKey': 'xxxxx'}}}
2023-08-02 23:39:51.111 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:51.111 DEBUG (MainThread) [custom_components.zcsmower] {'auth': {'success': True, 'params': {'orgKey': 'ZUCCHETTICENTROSISTEMI', 'sessionId': '88cc577294dc72727d898f53a6b80607'}}}
2023-08-02 23:39:51.111 DEBUG (MainThread) [custom_components.zcsmower] API.request:
2023-08-02 23:39:51.111 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'command': 'thing.list', 'params': {'show': ['id', 'key', 'name', 'connected', 'lastSeen', 'lastCommunication', 'loc', 'properties', 'alarms', 'attrs', 'createdOn', 'storage', 'varBillingPlanCode'], 'hideFields': True, 'keys': ['359785020768936']}}, 'auth': {'sessionId': '88cc577294dc72727d898f53a6b80607'}}
2023-08-02 23:39:51.164 DEBUG (MainThread) [custom_components.zcsmower] API.response:
2023-08-02 23:39:51.164 DEBUG (MainThread) [custom_components.zcsmower] {'data': {'success': True, 'params': {'count': 1, 'result': [{'alarms': {'connection_state': {'ts': '2021-07-12T08:01:56.248Z', 'since': '2021-07-12T08:01:56.248Z', 'state': 0}, 'data_th': {'ts': '2020-09-21T10:13:17.126Z', 'since': '2019-07-12T08:04:11.612Z', 'state': 0}, 'infinity_plan_status': {'ts': '2021-07-12T08:00:24.754Z', 'since': '2020-09-09T07:02:23.473Z', 'state': 3}, 'robot_state': {'ts': '2021-07-12T08:00:44.192Z', 'since': '2021-07-12T08:00:44.192Z', 'state': 9}}, 'attrs': {'apn': {'ts': '2021-07-12T08:00:24.741Z', 'since': '2020-03-15T13:07:56.022Z', 'value': 'nxt17.net'}, 'robot_client1': {'ts': '2020-02-12T13:08:04.125Z', 'since': '2020-02-12T13:08:04.125Z', 'value': 'ERDD8jrYVfRv6rt4BuESvIVblaJ3'}, 'robot_client4': {'ts': '2020-03-15T14:41:13.711Z', 'since': '2020-03-15T14:41:13.711Z', 'value': 'h3J6eVHucwV4eudwi1153u8sfUL2'}, 'robot_serial': {'ts': '2019-07-12T07:58:46.746Z', 'since': '2019-07-12T07:58:46.746Z', 'value': 'AM035DK919040577'}}, 'connected': False, 'createdOn': '2019-07-12T07:58:34.772Z', 'id': '5d283daaba2b577ad69d5ac9', 'key': '359785020768936', 'lastCommunication': '2021-07-12T08:01:56.248Z', 'lastSeen': '2021-07-12T08:01:56.248Z', 'loc': {'addr': {'city': 'Jaśkowice', 'country': 'PL', 'state': 'Silesian Voivodeship', 'street': 'Wolności', 'zipCode': '43-180'}, 'fixType': 'network', 'geohash': 'u2vm4wgd4jmf', 'lat': 50.135107, 'lng': 18.747576, 'since': '2021-07-12T08:00:21Z', 'speed': 0}, 'locUpdated': '2021-07-12T08:00:52Z', 'name': 'auto:359785020768936', 'properties': {'geofence_location_counter': {'ts': '2020-08-19T18:07:01.963Z', 'value': 5, 'corrId': 'geofence'}, 'robot_error': {'ts': '2021-07-09T13:16:55.934Z', 'value': 166}}, 'varBillingPlanCode': ''}]}}}
2023-08-02 23:39:51.164 DEBUG (MainThread) [custom_components.zcsmower] _async_update_data
2023-08-02 23:39:51.164 DEBUG (MainThread) [custom_components.zcsmower] {'359785020768936': {'imei': '359785020768936', 'name': 'L35 Deluxe', 'infinity': 'deactivated', 'state': 'expired', 'icon': 'mdi:clock-alert', 'working': False, 'available': True, 'error': None, 'location': {}, 'location_history': None, 'serial': 'AM035DK919040577', 'manufacturer': 'Ambrogio Robot', 'model': 'L35 Deluxe', 'sw_version': None, 'connected': False, 'last_communication': datetime.datetime(2021, 7, 12, 10, 1, 56, 248000, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_seen': datetime.datetime(2021, 7, 12, 10, 1, 56, 248000, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_pull': datetime.datetime(2023, 8, 2, 23, 39, 51, 164853, tzinfo=zoneinfo.ZoneInfo(key='Europe/Warsaw')), 'last_state': 'expired', 'last_wake_up': None, 'last_trace_position': None}}
2023-08-02 23:39:51.165 DEBUG (MainThread) [custom_components.zcsmower] Finished fetching zcsmower data in 0.097 seconds (success: True)
2023-08-02 23:39:51.171 INFO (MainThread) [custom_components.zcsmower] Map camera disabled

Info from diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Warsaw",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "powercalc": {
      "version": "v1.5.0",
      "requirements": [
        "numpy>=1.21.1"
      ]
    },
    "localtuya": {
      "version": "5.0.0",
      "requirements": []
    },
    "thermal_comfort": {
      "version": "2.1.1",
      "requirements": []
    },
    "auto_backup": {
      "version": "1.3.2",
      "requirements": []
    },
    "virtual": {
      "version": "0.8.0b1",
      "requirements": []
    },
    "zcsmower": {
      "version": "0.9.5",
      "requirements": [
        "numpy>=1.21.6",
        "pillow==9.5.0"
      ]
    },
    "weather_data": {
      "version": "0.2.1",
      "requirements": [
        "xmltodict==0.12.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zcsmower",
    "name": "ZCS Lawn Mower Robot",
    "after_dependencies": [
      "recorder"
    ],
    "codeowners": [
      "@ufozone"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/ufozone/ha-zcs-mower",
    "integration_type": "hub",
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/ufozone/ha-zcs-mower/issues",
    "requirements": [
      "numpy>=1.21.6",
      "pillow==9.5.0"
    ],
    "version": "0.9.5",
    "is_built_in": false
  },
  "data": {
    "config_entry_data": {
      "entry_id": "942efd6c49da6e7aeb84618a9fba6534",
      "version": 7,
      "domain": "zcsmower",
      "title": "My Garage",
      "data": {},
      "options": {
        "client_key": "**REDACTED**",
        "trace_position_enable": "**REDACTED**",
        "trace_position_interval_default": 3600,
        "trace_position_interval_infinity": 600,
        "wake_up_interval_default": 1800,
        "wake_up_interval_infinity": 300,
        "camera_enable": "**REDACTED**",
        "map_image_path": "",
        "map_marker_path": "",
        "map_gps_top_left": "",
        "map_gps_bottom_right": "",
        "map_history_enable": "**REDACTED**",
        "map_draw_lines": true,
        "map_points": 100,
        "lawn_mowers": {
          "359785020768936": {
            "name": "L35 Deluxe"
          }
        }
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "coordinator_data": {
      "359785020768936": {
        "imei": "359785020768936",
        "name": "L35 Deluxe",
        "infinity": "deactivated",
        "state": "expired",
        "icon": "mdi:clock-alert",
        "working": false,
        "available": true,
        "error": null,
        "location": {},
        "location_history": [],
        "serial": "AM035DK919040577",
        "manufacturer": "Ambrogio Robot",
        "model": "L35 Deluxe",
        "sw_version": null,
        "connected": false,
        "last_communication": "2021-07-12T10:01:56.248000+02:00",
        "last_seen": "2021-07-12T10:01:56.248000+02:00",
        "last_pull": "2023-08-02T23:20:30.883612+02:00",
        "last_state": "expired",
        "last_wake_up": null,
        "last_trace_position": null
      }
    }
  }
}
ufozone commented 1 year ago

All the information says that your lawn mower no longer has a valid Connect Module plan. This is only included in the device purchase price for two years and must then be renewed annually. If the renewal is a few months overdue, only the manufacturer or an accredited reseller can reactivate the Connect Module.

What does your mobile app say about the connection status and the Connect Module runtime?

sirfalo commented 1 year ago

Hi Yes, you are right. I was actually sure that this works also with bluetooth... Sorry for problem and thank you.