Comments (8)
It's interesting seeing that they stay true to form with their error codes. Unpleasant catastrophic failure is 999 on the API, and likewise when the ECU needs replacing on their bikes it's error 99 that flashes on the display.
from ha-super-soco-custom.
Prior to this error, I'd attempted deleting the entity for last warning to see if it would come back. I've now reloaded the integration and the entity has indeed returned, but I have more errors:
Logger: homeassistant
Source: components/sensor/__init__.py:532
First occurred: 12:16:44 (1 occurrences)
Last logged: 12:16:44
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 521, in state
if value.tzinfo is None:
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 970, in _async_registry_updated
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 590, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 532, in state
raise ValueError(
ValueError: Invalid datetime: sensor.bike_last_warning has timestamp device class but provides state unknown:<class 'str'> resulting in ''str' object has no attribute 'tzinfo''
and an almost identical one:
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:532
Integration: Sensor (documentation, issues)
First occurred: 12:16:44 (2 occurrences)
Last logged: 12:16:44
Error adding entities for domain sensor with platform super_soco_custom
Error while setting up super_soco_custom platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 521, in state
if value.tzinfo is None:
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 850, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 590, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 532, in state
raise ValueError(
ValueError: Invalid datetime: sensor.bike_last_warning has timestamp device class but provides state unknown:<class 'str'> resulting in ''str' object has no attribute 'tzinfo''
from ha-super-soco-custom.
Hi, Andy! Thanks for reporting these errors. I'm indeed getting the 1st one too. I'll take a look at both of them when I have some spare time.
from ha-super-soco-custom.
As you mention this is a problem with the API server (on their end). It even crashes when you try to fetch the warning messages in the official app v1.0.7 (going to menu > Message > Alarm Message), which is the latest version afaik.
When intercepting traffic from the app you can see that it simply returns this response with no further details:
{
"success": false,
"status": 999,
"message": "System Error",
"data": null
}
I'm afraid that we'll have to wait for an API fix from Vmoto Soco.
from ha-super-soco-custom.
Nice easter egg indeed (if that's in fact an intended thing), but to be honest their lack of respect for any HTTP and REST standards makes me wanna cry inside.
from ha-super-soco-custom.
I forgot to mention: that response (and every other response for that matter) actually comes as 200 OK. And many other things I've seen. 🤷
from ha-super-soco-custom.
It looks like the warnings endpoint started working again today, but I'm unable to reconnect the HA integration and check because it's not sending the SMS code. Can someone please confirm?
from ha-super-soco-custom.
I can confirm that the last warning entity is available again.
from ha-super-soco-custom.
Related Issues (19)
- Publish API implementation separately into Pip HOT 1
- Speed reading is wrong sometimes HOT 1
- Invalid authentication HOT 6
- App Vmoto Soco HOT 5
- Stuck in the Reconfiguration V1.0.0 Beta HOT 5
- Failed to setup - 1.0.0 Beta 10 HOT 8
- Timestamps on things like last warning are several hours in the future HOT 5
- Hour in moto HOT 2
- Speed information lost HOT 9
- Need to reload integration all the time HOT 5
- Source API documentation HOT 1
- Vmoto Servers not sending sign in SMS code HOT 4
- Notifications have started arriving in Chinese HOT 4
- Vmoto app HOT 27
- Additional data points from API HOT 1
- Propose changing name to "Vmoto and Super Soco" HOT 2
- Workflows targeting `main` but primary branch called `master` HOT 1
- e-mail login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-super-soco-custom.