You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea why this sensor reports state.lastupdated, which equals to 'none' (string of four letters instead of typical None). The sensor is operational and detects presence many times during the day.
But generally these kind of status produces the following validation error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/rzarajczyk/Library/Caches/pypoetry/virtualenvs/hue2mqtt-FuKMssS5-py3.8/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/Users/rzarajczyk/Library/Caches/pypoetry/virtualenvs/hue2mqtt-FuKMssS5-py3.8/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/rzarajczyk/Library/Caches/pypoetry/virtualenvs/hue2mqtt-FuKMssS5-py3.8/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/rzarajczyk/Library/Caches/pypoetry/virtualenvs/hue2mqtt-FuKMssS5-py3.8/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/rzarajczyk/Private/hue2mqtt-python/hue2mqtt/app.py", line 24, in app
loop.run_until_complete(hue2mqtt.run())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/Users/rzarajczyk/Private/hue2mqtt-python/hue2mqtt/hue2mqtt.py", line 109, in run
await self.main(websession)
File "/Users/rzarajczyk/Private/hue2mqtt-python/hue2mqtt/hue2mqtt.py", line 219, in main
sensor = SensorInfo(id=id, **sensor_raw.raw)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 16 validation errors for SensorInfo
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> rotaryevent
field required (type=value_error.missing)
state -> expectedrotation
field required (type=value_error.missing)
state -> expectedeventduration
field required (type=value_error.missing)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> dark
field required (type=value_error.missing)
state -> daylight
field required (type=value_error.missing)
state -> lightlevel
field required (type=value_error.missing)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> temperature
field required (type=value_error.missing)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> humidity
field required (type=value_error.missing)
state -> lastupdated
invalid datetime format (type=value_error.datetime)
state -> open
field required (type=value_error.missing)
The text was updated successfully, but these errors were encountered:
I had the same or at least very similar errors and was able to solve them with an adapted scheme. Try the newest release that includes (pull request #19), maybe it fixes the errors for you...
The Hue Bridge reports the following status for Motion Sensor:
I have no idea why this sensor reports
state.lastupdated
, which equals to'none'
(string of four letters instead of typical None). The sensor is operational and detects presence many times during the day.But generally these kind of status produces the following validation error:
The text was updated successfully, but these errors were encountered: