Closed gajustempus closed 3 years ago
I've already tried removing and re-installing the adapter.
environment information: Plattform: linux RAM: 3.7 GB Node.js: v14.17.0 NPM: 7.12.1
These messages should not prevent the car to go to sleep, there must be another reason for this. But then I would need more log.
Which version of the adapter do you have, and which version of iobroker? The show up in the latest version of iobroker. I've made a fix for these messages in the latest version on github, so if you use this, you should not get them anymore.
version of both iobroker and tesla adapter: current version. I've tried with the stable and the beta branch, stuck with the latter, as the problem remains.
tried again just now - started the adapter, then checked. Car definitely was asleep, woke up when the adapter was restarted and REMAINED awake as the log was FLOODED with
2021-05-17 14:09:30.911 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:30.913 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:30.946 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:30.947 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:30.948 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:30.949 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:32.544 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:32.546 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:32.587 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:32.589 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:32.590 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:32.591 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:38.226 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:38.229 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:38.277 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:38.278 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:38.282 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:38.282 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:44.834 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:44.836 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:45.032 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:45.033 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:45.034 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:45.035 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:51.685 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:51.689 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:51.746 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:51.748 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:51.750 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:51.751 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:58.386 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:09:58.388 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:09:58.430 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:58.431 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:58.433 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:09:58.434 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:05.112 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:10:05.113 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:10:05.137 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:05.138 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:05.138 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:05.139 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:12.409 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:10:12.410 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:10:12.442 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:12.442 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:12.443 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:12.444 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:19.139 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.command.steering_wheel_heater" 2021-05-17 14:10:19.141 - [32minfo[39m: tesla-motors.0 (7686) undefined is not a valid state value for id "tesla-motors.0.climateState.smart_preconditioning" 2021-05-17 14:10:19.183 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:19.184 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.front_passenger_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:19.186 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_driver_window" has to be type "boolean" but received type "number" 2021-05-17 14:10:19.187 - [32minfo[39m: tesla-motors.0 (7686) State value to set for "tesla-motors.0.climateState.rear_passenger_window" has to be type "boolean" but received type "number"
fyi - car software just received an update today to 2021.4.15.10
Can you install it from github? install the adapter with the "cat"-Symbol from github (Install from own url). Those messages are fixed in the newest commited version. Then your log will be cleaner and we might see why your car doesn't go asleep. This is sure another issue and has nothing to do with the messages. With this version, you can turn loglevel to Debug and you will also see a message like: "Reset last wake up time because car seems to be in use (Reason: ....." which will tell why the adapter does think your car doesn't need to go to sleep.
if(shift_state && shift_state.val !== null && shift_state.val !== "P") inUse = 'Shift State = ' + shift_state.val; else if(speed && speed.val > 0) inUse = 'Speed ' + speed.val; else if(climate && climate.val) inUse = 'Climate'; else if(chargeState && chargeState.val !== 'Disconnected' && chargeState.val !== 'Complete' && chargeState.val !== 'NoPower' && chargeState.val !== 'Stopped') inUse = 'Charging state = ' + chargeState.val;
done - updated from 0.4.2 to 0.5.0 and turned debug level on. Now the log is flooded with this here - and won't stop...
2021-05-17 14:42:37.676 - [34mdebug[39m: tesla-motors.0 (9372) Redis Objects: Use Redis connection: 127.0.0.1:9001
2021-05-17 14:42:37.746 - [34mdebug[39m: tesla-motors.0 (9372) Objects client ready ... initialize now
2021-05-17 14:42:37.748 - [34mdebug[39m: tesla-motors.0 (9372) Objects create System PubSub Client
2021-05-17 14:42:37.750 - [34mdebug[39m: tesla-motors.0 (9372) Objects create User PubSub Client
2021-05-17 14:42:37.751 - [34mdebug[39m: tesla-motors.0 (9372) Objects client initialize lua scripts
2021-05-17 14:42:37.776 - [34mdebug[39m: tesla-motors.0 (9372) Objects connected to redis: 127.0.0.1:9001
2021-05-17 14:42:37.788 - [34mdebug[39m: tesla-motors.0 (9372) objectDB connected
2021-05-17 14:42:37.791 - [34mdebug[39m: tesla-motors.0 (9372) Redis States: Use Redis connection: 127.0.0.1:9000
2021-05-17 14:42:37.804 - [34mdebug[39m: tesla-motors.0 (9372) States create System PubSub Client
2021-05-17 14:42:37.805 - [34mdebug[39m: tesla-motors.0 (9372) States create User PubSub Client
2021-05-17 14:42:37.824 - [34mdebug[39m: tesla-motors.0 (9372) States connected to redis: 127.0.0.1:9000
2021-05-17 14:42:37.825 - [34mdebug[39m: tesla-motors.0 (9372) statesDB connected
2021-05-17 14:42:39.581 - [32minfo[39m: tesla-motors.0 (9372) starting. Version 0.5.0 in /opt/iobroker/node_modules/iobroker.tesla-motors, node: v14.17.0, js-controller: 3.3.10
2021-05-17 14:42:39.618 - [34mdebug[39m: tesla-motors.0 (9372) Starting Tesla Motors
2021-05-17 14:42:39.668 - [34mdebug[39m: tesla-motors.0 (9372) All Objects installed, setting up tasks now
2021-05-17 14:42:39.671 - [34mdebug[39m: tesla-motors.0 (9372) Checking if token is valid
2021-05-17 14:42:39.673 - [34mdebug[39m: tesla-motors.0 (9372) Check for Tokens and Expires
2021-05-17 14:42:39.734 - [34mdebug[39m: tesla-motors.0 (9372) Getting Standby Info
2021-05-17 14:42:40.365 - [34mdebug[39m: tesla-motors.0 (9372) vehicle Answer:{"id":"{ID-number-removed}","vehicle_id":{vehicle-ID--removed},"vin":"{VIN--removed}","display_name":"{VEHICLE-NAME}","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"access_type":"OWNER","tokens":["{TOKEN1--removed}","{TOKEN2--removed}"],"state":"online","in_service":false,"id_s":"{ID-number-removed}","calendar_enabled":true,"api_version":15,"backseat_token":null,"backseat_token_updated_at":null,"command_signing":"off"}
2021-05-17 14:42:40.419 - [34mdebug[39m: tesla-motors.0 (9372) State Change: tesla-motors.0.command.standby to false ack true
2021-05-17 14:42:40.490 - [34mdebug[39m: tesla-motors.0 (9372) Reset last wake up time because car was sleeping before, but woke up now.
2021-05-17 14:42:40.492 - [34mdebug[39m: tesla-motors.0 (9372) Refresh of all in Task run. Current wakeupPlan is "smart"
2021-05-17 14:42:40.501 - [34mdebug[39m: tesla-motors.0 (9372) Get all info because last Wakeup time is only 0ago.
2021-05-17 14:42:40.550 - [34mdebug[39m: tesla-motors.0 (9372) Getting Standby Info
2021-05-17 14:42:41.077 - [34mdebug[39m: tesla-motors.0 (9372) vehicle Answer:{"id":"{ID-number-removed}","vehicle_id":{vehicle-ID--removed},"vin":"{VIN--removed}","display_name":"{VEHICLE-NAME}","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"access_type":"OWNER","tokens":["{TOKEN1--removed}","{TOKEN2--removed}"],"state":"online","in_service":false,"id_s":"{ID-number-removed}","calendar_enabled":true,"api_version":15,"backseat_token":null,"backseat_token_updated_at":null,"command_signing":"off"}
2021-05-17 14:42:41.131 - [34mdebug[39m: tesla-motors.0 (9372) State Change: tesla-motors.0.command.standby to false ack true
2021-05-17 14:42:41.210 - [34mdebug[39m: tesla-motors.0 (9372) Wanted to wake up the car, but car is already awake.
2021-05-17 14:42:41.211 - [34mdebug[39m: tesla-motors.0 (9372) Getting all States now
2021-05-17 14:42:42.062 - [34mdebug[39m: tesla-motors.0 (9372) Answer from vehicleState:{"id":{ID-number-removed},"user_id":1031335,"vehicle_id":{vehicle-ID--removed},"vin":"{VIN--removed}","display_name":"{VEHICLE-NAME}","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"access_type":"OWNER","tokens":["{TOKEN1--removed}","{TOKEN2--removed}"],"state":"online","in_service":false,"id_s":"{ID-number-removed}","calendar_enabled":true,"api_version":15,"backseat_token":null,"backseat_token_updated_at":null,"command_signing":"off","charge_state":{"battery_heater_on":false,"battery_level":90,"battery_range":250.06,"charge_current_request":16,"charge_current_request_max":16,"charge_enable_request":true,"charge_energy_added":7.23,"charge_limit_soc":90,"charge_limit_soc_max":100,"charge_limit_soc_min":50,"charge_limit_soc_std":90,"charge_miles_added_ideal":29.5,"charge_miles_added_rated":29.5,"charge_port_cold_weather_mode":false,"charge_port_door_open":true,"charge_port_latch":"Engaged","charge_rate":0,"charge_to_max_range":false,"charger_actual_current":0,"charger_phases":2,"charger_pilot_current":16,"charger_power":0,"charger_voltage":2,"charging_state":"Complete","conn_charge_cable":"IEC","est_battery_range":211.09,"fast_charger_brand":"
if I could make a guess: The "smart" system seems to be a bit off there, as checking keeps the car awake, and as the car's awake, he keeps checking all parameters, which, in return, keeps the car awake again.
I have to add - the log looks like that now:
esla-motors.0 | 2021-05-17 15:07:16.937 | debug | (9372) Don't wake up the car and let it go to sleep. Minutes since last woke up: 15 |
---|---|---|---|
tesla-motors.0 | 2021-05-17 15:07:16.146 | debug | (9372) Refresh of all in Task run. Current wakeupPlan is "smart" |
tesla-motors.0 | 2021-05-17 15:07:11.145 | debug | (9372) Don't wake up the car and let it go to sleep. Minutes since last woke up: 15 |
tesla-motors.0 | 2021-05-17 15:07:11.138 | debug | (9372) Refresh of all in Task run. Current wakeupPlan is "smart" |
tesla-motors.0 | 2021-05-17 15:07:06.137 | debug | (9372) Don't wake up the car and let it go to sleep. Minutes since last woke up: 15 |
tesla-motors.0 | 2021-05-17 15:07:06.128 | debug | (9372) Refresh of all in Task run. Current wakeupPlan is "smart" |
tesla-motors.0 | 2021-05-17 15:07:01.127 | debug | (9372) Don't wake up the car and let it go to sleep. Minutes since last woke up: 15 |
tesla-motors.0 | 2021-05-17 15:07:01.122 | debug | (9372) Refresh of all in Task run. Current wakeupPlan is "smart" |
tesla-motors.0 | 2021-05-17 15:06:57.795 | debug | (9372) system.adapter.admin.0: logging true |
onvif.0 | 2021-05-17 15:06:57.789 | debug | (3205) system.adapter.admin.0: logging true |
Thats correct now, after this the car should be sleeping. "Smart" means, there is a bit more logic inside than you described above.
yep, looks good right now. Plus, I've checked overnight: With this configuration the car goes to sleep again like it did before.
several error messages in my iobroker log. These repeat every 15 seconds. Plus they prevent the car from going to sleep as it seems (it never goes to standby and loses battery FAST).