Panda88CO / udi-TeslaEV2

MIT License
0 stars 1 forks source link

Climate Auto Conditioning failure #10

Open blakevh opened 1 week ago

blakevh commented 1 week ago

The Climate Info -> Pre Conditioning command works when things are properly configured.

But there is a failure mode that silently fails. It appears that the code2ISY method needs to be imported (line 14, TeslaEVClimateNode.py).

024-11-13 16:10:53.574 Command udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2024-11-13 16:10:53.574 Command udi_interface DEBUG TeslaOauth:_callApi: call info url=https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start, header {'Content-Type': 'application/json', 'Authorization': 'Bearer xxx', 'X-tesla-auth': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InFEc3NoM2FTV0cyT05YTTdLMzFWV0VVRW5BNCJ9.xxx.QJ_JENzuo9yjv8VRnjWVkqExKktHSz0Cmuk5BgkfAgIu0z7g0dUFfSqpIdOrJ_GSdRBEoW_g2mweMl9mwzXy4Z5uC_nWYu73A_AjyV8xVFGT_dXFN3CtrSzFxPP3gQ025H3V2HZykmLGoSLQRJ0pCXJfp6kKZdBbYgvk2LNwMgWcBNVfHFmxOQUhOYIxqOlzDQVNviQ_0FL0nXMGhkVv5OphXz2GstlFWZUA8OiOMfcOL417wDcIJ9IkFHs8hDd8cmS3nEyPiYBuQlaqr2MrdmPJ2jPQvGWvD0XYD2JU08DQERQe2E_xoIoQ_GJbFtYPVOnx0thCaI14XfZ93NIyLg'}, body ={} 2024-11-13 16:10:53.574 Command udi_interface DEBUG TeslaOauth:_callApi: call info url=https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start, header {'Content-Type': 'application/json', 'Authorization': 'Bearer xxx', 'X-tesla-auth': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InFEc3NoM2FTV0cyT05YTTdLMzFWV0VVRW5BNCJ9.xxx.QJ_JENzuo9yjv8VRnjWVkqExKktHSz0Cmuk5BgkfAgIu0z7g0dUFfSqpIdOrJ_GSdRBEoW_g2mweMl9mwzXy4Z5uC_nWYu73A_AjyV8xVFGT_dXFN3CtrSzFxPP3gQ025H3V2HZykmLGoSLQRJ0pCXJfp6kKZdBbYgvk2LNwMgWcBNVfHFmxOQUhOYIxqOlzDQVNviQ_0FL0nXMGhkVv5OphXz2GstlFWZUA8OiOMfcOL417wDcIJ9IkFHs8hDd8cmS3nEyPiYBuQlaqr2MrdmPJ2jPQvGWvD0XYD2JU08DQERQe2E_xoIoQ_GJbFtYPVOnx0thCaI14XfZ93NIyLg'}, body ={} 2024-11-13 16:10:53.583 Thread-1 (send_thread) udi_interface.interface DEBUG interface:_send: PUBLISHING {'set': [{'key': 'notices', 'value': {}}]} 2024-11-13 16:10:53.583 Thread-1 (send_thread) udi_interface.interface DEBUG interface:_send: PUBLISHING {'set': [{'key': 'notices', 'value': {}}]} 2024-11-13 16:10:53.598 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message custom 2024-11-13 16:10:53.598 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message custom 2024-11-13 16:10:53.639 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2024-11-13 16:10:53.639 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2024-11-13 16:10:55.977 Command udi_interface DEBUG TeslaOauth:_callApi: request response: <Response [500]> 2024-11-13 16:10:55.977 Command udi_interface DEBUG TeslaOauth:_callApi: request response: <Response [500]> 2024-11-13 16:10:55.977 Command udi_interface ERROR TeslaOauth:_callApi: Call POST https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start failed: 500 Server Error: Internal Server Error for url: https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start 2024-11-13 16:10:55.977 Command udi_interface ERROR TeslaOauth:_callApi: Call POST https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start failed: 500 Server Error: Internal Server Error for url: https://my.isy.io/api/tesla/api/1/vehicles/5YJ3E1EB7JF088207/command/auto_conditioning_start 2024-11-13 16:10:55.977 Command udi_interface ERROR TeslaEVOauth:teslaEV_AutoCondition: Non 200 response: unknown {"response":null,"error":"vehicle rejected request: your public key has not been paired with the vehicle","error_description":""} 2024-11-13 16:10:55.977 Command udi_interface ERROR TeslaEVOauth:teslaEV_AutoCondition: Non 200 response: unknown {"response":null,"error":"vehicle rejected request: your public key has not been paired with the vehicle","error_description":""} 2024-11-13 16:10:55.977 Command udi_interface INFO TeslaEVClimateNode:evAutoCondition: Not able to send command - EV is not online 2024-11-13 16:10:55.977 Command udi_interface INFO TeslaEVClimateNode:evAutoCondition: Not able to send command - EV is not online 2024-11-13 16:10:55.977 Command udi_interface.interface ERROR interface:_handleInput: _parseInput: failed cl3e1eb7jf0882.runCmd(AUTOCON) 'teslaEV_ClimateNode' object has no attribute 'code2ISY' 2024-11-13 16:10:55.977 Command udi_interface.interface ERROR interface:_handleInput: _parseInput: failed cl3e1eb7jf0882.runCmd(AUTOCON) 'teslaEV_ClimateNode' object has no attribute 'code2ISY' Traceback (most recent call last): Traceback (most recent call last): File "/var/polyglot/pg3/ns/0021b90263d5_1/.local/lib/python3.11/site-packages/udi_interface/interface.py", line 964, in _handleInput File "/var/polyglot/pg3/ns/0021b90263d5_1/.local/lib/python3.11/site-packages/udi_interface/interface.py", line 964, in _handleInput self.nodes_internal[item['address']].runCmd(item) self.nodes_internal[item['address']].runCmd(item) File "/var/polyglot/pg3/ns/0021b90263d5_1/.local/lib/python3.11/site-packages/udi_interface/node.py", line 178, in runCmd File "/var/polyglot/pg3/ns/0021b90263d5_1/.local/lib/python3.11/site-packages/udi_interface/node.py", line 178, in runCmd fun(self, command) fun(self, command) File "/var/polyglot/pg3/ns/0021b90263d5_1/TeslaEVClimateNode.py", line 191, in evAutoCondition File "/var/polyglot/pg3/ns/0021b90263d5_1/TeslaEVClimateNode.py", line 191, in evAutoCondition self.EV_setDriver('GV21', self.code2ISY(code), 25) self.EV_setDriver('GV21', self.code2ISY(code), 25) ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ AttributeError: 'teslaEV_ClimateNode' object has no attribute 'code2ISY' AttributeError: 'teslaEV_ClimateNode' object has no attribute 'code2ISY' EV Climate Control - after enabling Auto Conditioning

Panda88CO commented 1 week ago

Got it - will be fixed in next release