2017-08-06 18:33:52 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.gtfs_realtime
2017-08-06 18:33:53 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform gtfs_realtime
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
return fut.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/var/opt/homeassistant/custom_components/sensor/gtfs_realtime.py", line 68, in setup_platform
departure.get(CONF_NAME)
File "/var/opt/homeassistant/custom_components/sensor/gtfs_realtime.py", line 83, in __init__
self.update()
File "/var/opt/homeassistant/custom_components/sensor/gtfs_realtime.py", line 128, in update
self.data.update()
File "/usr/local/lib/python3.4/dist-packages/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/var/opt/homeassistant/custom_components/sensor/gtfs_realtime.py", line 142, in update
positions = self._get_vehicle_positions() if self._vehicle_position_url else {}
File "/var/opt/homeassistant/custom_components/sensor/gtfs_realtime.py", line 187, in _get_vehicle_positions
feed.ParseFromString(response.content)
File "/usr/local/lib/python3.4/dist-packages/google/protobuf/message.py", line 185, in ParseFromString
self.MergeFromString(serialized)
File "/usr/local/lib/python3.4/dist-packages/google/protobuf/internal/python_message.py", line 1008, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "/usr/local/lib/python3.4/dist-packages/google/protobuf/internal/python_message.py", line 1034, in InternalParse
new_pos = local_SkipField(buffer, new_pos, end, tag_bytes)
File "/usr/local/lib/python3.4/dist-packages/google/protobuf/internal/decoder.py", line 868, in SkipField
return WIRETYPE_TO_SKIPPER[wire_type](buffer, pos, end)
File "/usr/local/lib/python3.4/dist-packages/google/protobuf/internal/decoder.py", line 838, in _RaiseInvalidWireType
raise _DecodeError('Tag had invalid wire type.')
google.protobuf.message.DecodeError: Tag had invalid wire type..
my config
sensor 2:
- platform: gtfs_realtime
trip_update_url: 'http://gtfs.ovapi.nl/new/gtfs-realtime-OVapi.proto'
vehicle_position_url: 'http://gtfs.ovapi.nl/new/gtfs-realtime-OVapi.proto'
departures:
- name: 401 to station
route: 1762
stopid: 417133
- name: 402 to station
route: 1761
stopid: 417133
- name: 403 to station
route: 42344
stopid: 417133
Worked once (I think by mistake) but after a reboot it never showed again and came up with these error messages…