Closed thunder2k closed 3 years ago
I'm having the same issue. Not even after driving around. Driving, sleeping, awake. These topics never get written to.
Same here. I am using the docker install (1.20.1) on a Pi4. When I look with mosquitto_sub -t teslamate/cars/1/shift_state
in the mosquitto container I never see it.
Same here... in the MQTTExplorer I can't find shift_state topic Thanks
EDIT : My issue was related to a reinstall of my host computer. As a result my IP address of my MQTT server running in Home Assistant changed. I ran docker-compose down. Updated the environment variables in my docker-compose file fixed it.
================================================================================== Running into the same problem as well. All my Teslamate MQTT topics have not been updated since November 23 it looks like. I'm not sure if its related the latest Teslamate update or if its related to the software updates on the Model S.
MQTT Explorer looks like this :
Teslamate output looks like something is broken as well :
Starting teslamate_grafana_1 ... done Starting teslamate_teslamate_1 ... done Starting teslamate_database_1 ... done Attaching to teslamate_grafana_1, teslamate_database_1, teslamate_teslamate_1 database_1 | database_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization database_1 | grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Starting Grafana" logger=server version=7.2.1 commit=72a6c64532 branch=HEAD compiled=2020-10-08T09:00:32+0000 grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/var/lib/grafana" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/var/log/grafana" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana-plugins" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.log.mode=console" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_DATA=/var/lib/grafana" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_LOGS=/var/log/grafana" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/var/lib/grafana-plugins" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_ANALYTICS_REPORTING_ENABLED=FALSE" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_USER=admin" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_PASSWORD=*****" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_DISABLE_GRAVATAR=true" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ALLOW_EMBEDDING=true" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_USERS_ALLOW_SIGN_UP=false" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_ANONYMOUS_ENABLED=true" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_BASIC_ENABLED=false" grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana-plugins grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="App mode production" logger=settings grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3 grafana_1 | t=2020-12-30T04:34:56+0000 lvl=warn msg="SQLite database file has broader permissions than it should" logger=sqlstore path=/var/lib/grafana/grafana.db mode=-rw-r--r-- expected=-rw-r----- grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Starting DB migrations" logger=migrator grafana_1 | t=2020-12-30T04:34:56+0000 lvl=info msg="Starting plugin search" logger=plugins grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="Registering plugin" logger=plugins name="Direct Input" grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="Registering plugin" logger=plugins name="Pie Chart" grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="Registering plugin" logger=plugins name="Map Panel" grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="Registering plugin" logger=plugins name=Discrete grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="Registering plugin" logger=plugins name=TrackMap database_1 | 2020-12-30 04:34:57.220 UTC [1] LOG: starting PostgreSQL 12.5 (Debian 12.5-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit database_1 | 2020-12-30 04:34:57.221 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 database_1 | 2020-12-30 04:34:57.222 UTC [1] LOG: listening on IPv6 address "::", port 5432 database_1 | 2020-12-30 04:34:57.230 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" database_1 | 2020-12-30 04:34:57.254 UTC [25] LOG: database system was shut down at 2020-12-30 04:33:09 UTC database_1 | 2020-12-30 04:34:57.258 UTC [1] LOG: database system is ready to accept connections grafana_1 | t=2020-12-30T04:34:57+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket= teslamate_1 | 04:35:00.537 [info] Migrations already up teslamate_1 | 04:35:08.585 [info] Version: 1.20.1 teslamate_1 | 04:35:09.097 [info] Refreshed api tokens teslamate_1 | 04:35:09.100 [info] Scheduling token refresh in 5 wk 5 d teslamate_1 | 04:35:09.103 [info] Running TeslaMateWeb.Endpoint with cowboy 2.8.0 at :::4000 (http) teslamate_1 | 04:35:09.104 [info] Access TeslaMateWeb.Endpoint at http://localhost teslamate_1 | 04:35:11.404 [info] Starting logger for 'Quicksilver' teslamate_1 | 04:35:13.381 car_id=1 [info] Start / :online teslamate_1 | 04:35:13.390 car_id=1 [info] Connecting ... teslamate_1 | 04:35:13.392 [error] GenServer TeslaMate.Mqtt.Publisher terminating teslamate_1 | (stop) :timeout_value teslamate_1 | (tortoise 0.9.5) lib/tortoise/connection.ex:328: Tortoise.Connection.connection/2 teslamate_1 | (tortoise 0.9.5) lib/tortoise.ex:269: Tortoise.publish/4 teslamate_1 | (teslamate 1.20.1) lib/teslamate/mqtt/publisher.ex:41: TeslaMate.Mqtt.Publisher.handle_call/3 teslamate_1 | (stdlib 3.12.1) gen_server.erl:661: :gen_server.try_handle_call/4 teslamate_1 | (stdlib 3.12.1) gen_server.erl:690: :gen_server.handle_msg/6 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | Last message (from #PID<0.4179.0>): {:publish, "teslamate/cars/1/update_available", "false", [retain: true, qos: 1]} teslamate_1 | 04:35:13.392 [error] Task #PID<0.4181.0> started from #PID<0.4169.0> terminating teslamate_1 | (stop) exited in: GenServer.call(TeslaMate.Mqtt.Publisher, {:publish, "teslamate/cars/1/battery_level", "65", [retain: true, qos: 1]}, 10000) teslamate_1 | (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started teslamate_1 | (elixir 1.10.4) lib/gen_server.ex:1013: GenServer.call/3 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | Function: &:erlang.apply/2 teslamate_1 | Args: [#Function<3.4852099/1 in TeslaMate.Mqtt.PubSub.VehicleSubscriber.handle_info/2>, [battery_level: 65]] teslamate_1 | 04:35:13.393 [error] Task #PID<0.4179.0> started from #PID<0.4169.0> terminating teslamate_1 | (stop) exited in: GenServer.call(TeslaMate.Mqtt.Publisher, {:publish, "teslamate/cars/1/update_available", "false", [retain: true, qos: 1]}, 10000) teslamate_1 | (EXIT) an exception was raised: teslamate_1 | (ErlangError) Erlang error: :timeout_value teslamate_1 | (tortoise 0.9.5) lib/tortoise/connection.ex:328: Tortoise.Connection.connection/2 teslamate_1 | (tortoise 0.9.5) lib/tortoise.ex:269: Tortoise.publish/4 teslamate_1 | (teslamate 1.20.1) lib/teslamate/mqtt/publisher.ex:41: TeslaMate.Mqtt.Publisher.handle_call/3 teslamate_1 | (stdlib 3.12.1) gen_server.erl:661: :gen_server.try_handle_call/4 teslamate_1 | (stdlib 3.12.1) gen_server.erl:690: :gen_server.handle_msg/6 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | (elixir 1.10.4) lib/gen_server.ex:1023: GenServer.call/3 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | Function: &:erlang.apply/2 teslamate_1 | Args: [#Function<3.4852099/1 in TeslaMate.Mqtt.PubSub.VehicleSubscriber.handle_info/2>, [update_available: false]] teslamate_1 | 04:35:13.393 [error] Task #PID<0.4180.0> started from #PID<0.4169.0> terminating teslamate_1 | (stop) exited in: GenServer.call(TeslaMate.Mqtt.Publisher, {:publish, "teslamate/cars/1/geofence", "Home", [retain: true, qos: 1]}, 10000) teslamate_1 | (EXIT) an exception was raised: teslamate_1 | (ErlangError) Erlang error: :timeout_value teslamate_1 | (tortoise 0.9.5) lib/tortoise/connection.ex:328: Tortoise.Connection.connection/2 teslamate_1 | (tortoise 0.9.5) lib/tortoise.ex:269: Tortoise.publish/4 teslamate_1 | (teslamate 1.20.1) lib/teslamate/mqtt/publisher.ex:41: TeslaMate.Mqtt.Publisher.handle_call/3 teslamate_1 | (stdlib 3.12.1) gen_server.erl:661: :gen_server.try_handle_call/4 teslamate_1 | (stdlib 3.12.1) gen_server.erl:690: :gen_server.handle_msg/6 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | (elixir 1.10.4) lib/gen_server.ex:1023: GenServer.call/3 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2 teslamate_1 | (elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | Function: &:erlang.apply/2 teslamate_1 | Args: [#Function<3.4852099/1 in TeslaMate.Mqtt.PubSub.VehicleSubscriber.handle_info/2>, [geofence: "Home"]] teslamate_1 | 04:35:13.394 [error] GenServer TeslaMate.Mqtt.Publisher terminating teslamate_1 | (stop) :timeout_value teslamate_1 | (tortoise 0.9.5) lib/tortoise/connection.ex:328: Tortoise.Connection.connection/2 teslamate_1 | (tortoise 0.9.5) lib/tortoise.ex:269: Tortoise.publish/4 teslamate_1 | (teslamate 1.20.1) lib/teslamate/mqtt/publisher.ex:41: TeslaMate.Mqtt.Publisher.handle_call/3 teslamate_1 | (stdlib 3.12.1) gen_server.erl:661: :gen_server.try_handle_call/4 teslamate_1 | (stdlib 3.12.1) gen_server.erl:690: :gen_server.handle_msg/6 teslamate_1 | (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1 | Last message (from #PID<0.4182.0>): {:publish, "teslamate/cars/1/rated_battery_range_km", "286.87", [retain: true, qos: 1]} teslamate_1 | 04:35:14.485 [error] GenServer {Tortoise.Registry, {Tortoise.Connection, "TESLAMATE_302E3338383"}} terminating teslamate_1 | (stop) :ehostunreach teslamate_1 | Last message: :connect teslamate_1 | 04:35:17.523 [info] GET / teslamate_1 | 04:35:17.527 [info] Sent 200 in 3ms teslamate_1 | 04:35:17.558 [error] GenServer {Tortoise.Registry, {Tortoise.Connection, "TESLAMATE_302E3338383"}} terminating teslamate_1 | (stop) :ehostunreach teslamate_1 | Last message: :connect teslamate_1 | 04:35:20.630 [error] GenServer {Tortoise.Registry, {Tortoise.Connection, "TESLAMATE_302E3338363"}} terminating teslamate_1 | ** (stop) :ehostunreach teslamate_1 | Last message: :connect ^CGracefully stopping... (press Ctrl+C again to force) Stopping teslamate_database_1 ... done Stopping teslamate_teslamate_1 ... done Stopping teslamate_grafana_1 ... done
Closing this duplicate in favour of #1336
Describe the bug
MQTT shift_state,speed,elevation,scheduled_charging_start_time topics are not present. Because shift_state is missing, sensor.tesla_park_brake is always false
All other topics are present and working correctly
Expected behavior
shift_state,speed,elevation,scheduled_charging_start_time are present
How to reproduce it (as minimally and precisely as possible):
Relevant entries from the logs
Screenshots
Data
Environment