Jump to content

NYCScot

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

836 profile views

NYCScot's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. So, before it became unusable due to the authentication issues, using the PG2 node server "Tesla" I had configured programs to set the cabin temperature/defrost the vehicle depending on the outside temp. There was always a challenge in awakening the vehicle with enough time to receive the command however and it was rather hit and miss. @Panda88, how do you recommend configuring programs to get around this issue?
  2. @tazman I do have it named, yes
  3. Running stand alone ISY. Debug log below (with characters removed from the refresh_token for security) 2022-06-19 19:30:18,433 Thread-6 udi_interface INFO TeslaEVController:handleLevelChange: New log level: {'name': 'DEBUG', 'level': 10} 2022-06-19 19:30:31,843 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message stop 2022-06-19 19:30:31,844 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING stop 2022-06-19 19:30:31,845 Command udi_interface.interface INFO interface:_handleInput: Received stop from Polyglot... Shutting Down. 2022-06-19 19:30:31,846 Command udi_interface.interface INFO interface:stop: Disconnecting from MQTT... localhost:1888 2022-06-19 19:30:31,847 Command udi_interface.interface INFO interface:_disconnect: MQTT Graceful disconnection. 2022-06-19 19:30:31,849 MQTT udi_interface.interface DEBUG interface:_startMqtt: MQTT: Done 2022-06-19 19:30:39,511 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2022-06-19 19:30:42,088 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.46 Starting... 2022-06-19 19:30:42,106 MainThread udi_interface INFO TeslaEVController:<module>: Starting TeslaEV Controller 2022-06-19 19:30:42,115 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.0.63 [ISY: 5.3.4, Slot: 5] 2022-06-19 19:30:42,117 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '192.168.7.146', 'netmask': '255.255.255.0', 'broadcast': '192.168.7.255'} 2022-06-19 19:30:42,119 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2022-06-19 19:30:42,125 MainThread udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2022-06-19 19:30:42,127 MainThread udi_interface.interface WARNING interface:send: MQTT Send waiting on connection :: {'installprofile': {'reboot': False}} 2022-06-19 19:30:42,165 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2022-06-19 19:30:42,166 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:21:b9:02:54:be_5 - MID: 1 Result: 0 2022-06-19 19:30:42,178 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2022-06-19 19:30:45,268 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2022-06-19 19:30:45,269 MainThread udi_interface INFO TeslaEVController:__init__: _init_ Tesla EV Controller 2022-06-19 19:30:45,270 MainThread udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2022-06-19 19:30:45,274 MainThread udi_interface.interface INFO interface:addNode: Adding node Tesla EV Info(controller) [None] 2022-06-19 19:30:45,371 MQTT udi_interface.interface INFO interface:_message: custom data response {'customparamsdoc': '<h1>teslaEV</h1>\n\n<h2>Installation</h2>\n\n<p>For cloud access through Tesla cloud service one must provide a "refresh token" (REFRESH_TOKEN). <br />\nIt can be obtained e.g. using Auth for Tesla iPhone app \nhttps://apps.apple.com/us/app/auth-app-for-tesla/id1552058613 or Tesla Tokens https://play.google.com/store/apps/details?id=net.leveugle.teslatokens</p>\n\n<p>Once the token is accepted the node server will try to keep the token refreshed. </p>\n\n<p>Once installed a status node for each EV registered in the user account is created with sub-nodes for each EV addressing charging and climate control.</p>\n\n<p>If additional functionality is desired contact the author through github - https://github.com/Panda88CO/udi-TeslaEV</p>\n\n<p>Enjoy</p>\n'} 2022-06-19 19:30:45,414 MQTT udi_interface.interface INFO interface:_message: Successfully set key = customparamsdoc 2022-06-19 19:30:45,557 Thread-1 udi_interface INFO TeslaEVController:handleLevelChange: New log level: {'name': 'DEBUG', 'level': 10} 2022-06-19 19:30:45,593 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getAll 2022-06-19 19:30:45,595 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getAll 2022-06-19 19:30:45,597 Thread-2 udi_interface DEBUG TeslaEVController:handleParams: handleParams 2022-06-19 19:30:45,599 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2022-06-19 19:30:45,599 Thread-2 udi_interface.custom DEBUG custom:load: CUSTOM: load {'REFRESH_TOKEN': 'eyGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlR3bjV2bmNQUHhYNmprc2w5SUYyNnF4VVFfdyJ9.eyJpc3MiOiJodHRwczovL2F1dGgudGVzbGEuY29tL29hdXRoMi92MyIsImF1ZCI6Imh0dHBzOi8vYXV0aC50ZXNsYS5jb20vb2F1dGgyL3YzL3Rva2VuIiwiaWF0IjoxNjU1NDk0NjIwLCJzY3AiOlsib3BlbmlkIiwib2ZmbGluZV9hY2Nlc3MiXSwiZGF0YSI6eyJ2IjoiMSIsImF1ZCI6Imh0dHBzOi8vb3duZXItYXBpLnRlc2xhbW90b3JzLmNvbS8iLCJzdWIiOiJhMjQ5ZTI3OS02Nzc1LTQzODYtYjI2ZS04YjNhMjdiNTMxZTciLCJzY3AiOlsib3BlbmlkIiwiZW1haWwiLCJvZmZsaW5lX2FjY2VzcyJdLCJhenAiOiJvd25lcmFwaSIsImFtciI6WyJwd2QiXSwiYXV0aF90aW1lIjoxNjU1NDk0NjE2fX0.a9GUCplNYatb-fJANUb-qyrdRljHGY-f_2Jpkbgx_IQaRjR90Y3iDmblwsjBZZeP8H5coBxgA1PnO5YR1y9K_qfn2dxjdJ7fZ2UdrdmNN6YB_kgcsT-pwr_6hKy12SAS69XwbZhixVJxlP9V4x8PUwoa5lFCJ9-T_0wUYBWcGX-M4t9gvSaBFwGY7oQHt7eiWSnki0xQTIWAQyK4sc2exR0oMtEdWogfhbR-TrS29YQnccbJJ-JYt6dLQXoIixnoiRbWuSROAxzzZYs5OSzXjCDY7Q2FqCZnOyEnPmD0LxAn9uDXftTxkL3JSDKNDHfHdIUEmLD0nmIy3S_dcQP9Cw'} 2022-06-19 19:30:45,601 Command udi_interface.interface DEBUG interface:_handleInput: Key nsdata should be passed to node server. 2022-06-19 19:30:45,602 Thread-2 udi_interface.custom DEBUG custom:load: CUSTOM: -- checking REFRESH_TOKEN / eyGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlR3bjV2bmNQUHhYNmprc2w5SUYyNnF4VVFfdyJ9.eyJpc3MiOiJodHRwczovL2F1dGgudGVzbGEuY29tL29hdXRoMi92MyIsImF1ZCI6Imh0dHBzOi8vYXV0aC50ZXNsYS5jb20vb2F1dGgyL3YzL3Rva2VuIiwiaWF0IjoxNjU1NDk0NjIwLCJzY3AiOlsib3BlbmlkIiwib2ZmbGluZV9hY2Nlc3MiXSwiZGF0YSI6eyJ2IjoiMSIsImF1ZCI6Imh0dHBzOi8vb3duZXItYXBpLnRlc2xhbW90b3JzLmNvbS8iLCJzdWIiOiJhMjQ5ZTI3OS02Nzc1LTQzODYtYjI2ZS04YjNhMjdiNTMxZTciLCJzY3AiOlsib3BlbmlkIiwiZW1haWwiLCJvZmZsaW5lX2FjY2VzcyJdLCJhenAiOiJvd25lcmFwaSIsImFtciI6WyJwd2QiXSwiYXV0aF90aW1lIjoxNjU1NDk0NjE2fX0.a9GUCplNYatb-fJANUb-qyrdRljHGY-f_2Jpkbgx_IQaRjR90Y3iDmblwsjBZZeP8H5coBxgA1PnO5YR1y9K_qfn2dxjdJ7fZ2UdrdmNN6YB_kgcsT-pwr_6hKy12SAS69XwbZhixVJxlP9V4x8PUwoa5lFCJ9-T_0wUYBWcGX-M4t9gvSaBFwGY7oQHt7eiWSnki0xQTIWAQyK4sc2exR0oMtEdWogfhbR-TrS29YQnccbJJ-JYt6dLQXoIixnoiRbWuSROAxzzZYs5OSzXjCDY7Q2FqCZnOyEnPmD0LxAn9uDXftTxkL3JSDKNDHfHdIUEmLD0nmIy3S_dcQP9Cw 2022-06-19 19:30:45,605 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message getNsInfo 2022-06-19 19:30:45,605 Command udi_interface.interface DEBUG interface:_handleInput: Key oauth should be passed to node server. 2022-06-19 19:30:45,607 Thread-2 udi_interface DEBUG TeslaEVController:handleParams: handleParams load - {'REFRESH_TOKEN': 'eyGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlR3bjV2bmNQUHhYNmprc2w5SUYyNnF4VVFfdyJ9.eyJpc3MiOiJodHRwczovL2F1dGgudGVzbGEuY29tL29hdXRoMi92MyIsImF1ZCI6Imh0dHBzOi8vYXV0aC50ZXNsYS5jb20vb2F1dGgyL3YzL3Rva2VuIiwiaWF0IjoxNjU1NDk0NjIwLCJzY3AiOlsib3BlbmlkIiwib2ZmbGluZV9hY2Nlc3MiXSwiZGF0YSI6eyJ2IjoiMSIsImF1ZCI6Imh0dHBzOi8vb3duZXItYXBpLnRlc2xhbW90b3JzLmNvbS8iLCJzdWIiOiJhMjQ5ZTI3OS02Nzc1LTQzODYtYjI2ZS04YjNhMjdiNTMxZTciLCJzY3AiOlsib3BlbmlkIiwiZW1haWwiLCJvZmZsaW5lX2FjY2VzcyJdLCJhenAiOiJvd25lcmFwaSIsImFtciI6WyJwd2QiXSwiYXV0aF90aW1lIjoxNjU1NDk0NjE2fX0.a9GUCplNYatb-fJANUb-qyrdRljHGY-f_2Jpkbgx_IQaRjR90Y3iDmblwsjBZZeP8H5coBxgA1PnO5YR1y9K_qfn2dxjdJ7fZ2UdrdmNN6YB_kgcsT-pwr_6hKy12SAS69XwbZhixVJxlP9V4x8PUwoa5lFCJ9-T_0wUYBWcGX-M4t9gvSaBFwGY7oQHt7eiWSnki0xQTIWAQyK4sc2exR0oMtEdWogfhbR-TrS29YQnccbJJ-JYt6dLQXoIixnoiRbWuSROAxzzZYs5OSzXjCDY7Q2FqCZnOyEnPmD0LxAn9uDXftTxkL3JSDKNDHfHdIUEmLD0nmIy3S_dcQP9Cw'} 2022-06-19 19:30:45,609 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING getNsInfo 2022-06-19 19:30:45,609 Thread-2 udi_interface.custom DEBUG custom:clear: CUSTOM: Clear ...saving 2022-06-19 19:30:45,611 Thread-2 udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2022-06-19 19:30:45,612 Thread-2 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'key': 'notices', 'value': {}}]} 2022-06-19 19:30:45,614 Thread-2 udi_interface INFO TeslaEVController:tesla_initialize: starting Login process 2022-06-19 19:30:45,615 Thread-2 udi_interface DEBUG TeslaCloudEVapi:__init__: teslaCloudEVapi 2022-06-19 19:30:45,615 Thread-2 udi_interface DEBUG TeslaCloudApi:__init__: teslaCloudApi 2022-06-19 19:30:45,661 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message notices 2022-06-19 19:30:45,663 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING notices 2022-06-19 19:30:45,664 Command udi_interface.custom DEBUG custom:load: CUSTOM: load {} 2022-06-19 19:30:45,710 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2022-06-19 19:30:45,750 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2022-06-19 19:30:46,298 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2022-06-19 19:30:46,594 Thread-2 udi_interface.node DEBUG node:setDriver: controller:Tesla EV Info Reporting set GV0 to 1 to Polyglot 2022-06-19 19:30:46,595 Thread-2 udi_interface.node DEBUG node:reportDriver: Updating value to 1 2022-06-19 19:30:46,595 Thread-2 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'address': 'controller', 'driver': 'GV0', 'value': '1', 'uom': 25}]} 2022-06-19 19:30:46,597 Thread-2 udi_interface DEBUG TeslaEVController:tesla_initialize: Controller - initialization done 2022-06-19 19:30:46,598 Thread-2 udi_interface DEBUG TeslaEVController:handleParams: done with parameter processing 2022-06-19 19:30:47,888 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message addnode 2022-06-19 19:30:47,889 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING addnode 2022-06-19 19:30:47,892 Command udi_interface.interface DEBUG interface:_handleResult: add node response: {'id': '2ac49930-e90f-499d-8281-0afd5fec4d1f', 'uuid': '00:21:b9:02:54:be', 'profileNum': 5, 'address': 'controller', 'name': 'Tesla EV Info', 'nodeDefId': 'controller', 'nls': None, 'hint': '0x00000000', 'controller': 0, 'primaryNode': 'controller', 'private': None, 'isPrimary': 1, 'enabled': 1, 'timeAdded': 1655583162646, 'timeModified': 1655583162646, 'dbVersion': 1} 2022-06-19 19:30:47,893 Thread-4 udi_interface INFO TeslaEVController:start: start 2022-06-19 19:30:47,896 Thread-4 udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2022-06-19 19:30:47,897 Thread-4 udi_interface.interface DEBUG interface:send: PUBLISHING {'installprofile': {'reboot': False}} 2022-06-19 19:30:47,929 MainThread udi_interface.node DEBUG node:setDriver: controller:Tesla EV Info Reporting set ST to 1 to Polyglot 2022-06-19 19:30:47,930 MainThread udi_interface.node DEBUG node:reportDriver: Updating value to 1 2022-06-19 19:30:47,931 MainThread udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'address': 'controller', 'driver': 'ST', 'value': '1', 'uom': 2}]} 2022-06-19 19:30:47,932 MainThread udi_interface INFO TeslaEVController:__init__: Controller init DONE 2022-06-19 19:30:47,964 Thread-4 udi_interface.interface DEBUG interface:setCustomParamsDoc: Sending customparamsdoc to Polyglot. 2022-06-19 19:30:47,965 Thread-4 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'key': 'customparamsdoc', 'value': '<h1>teslaEV</h1>\n\n<h2>Installation</h2>\n\n<p>For cloud access through Tesla cloud service one must provide a "refresh token" (REFRESH_TOKEN). <br />\nIt can be obtained e.g. using Auth for Tesla iPhone app \nhttps://apps.apple.com/us/app/auth-app-for-tesla/id1552058613 or Tesla Tokens https://play.google.com/store/apps/details?id=net.leveugle.teslatokens</p>\n\n<p>Once the token is accepted the node server will try to keep the token refreshed. </p>\n\n<p>Once installed a status node for each EV registered in the user account is created with sub-nodes for each EV addressing charging and climate control.</p>\n\n<p>If additional functionality is desired contact the author through github - https://github.com/Panda88CO/udi-TeslaEV</p>\n\n<p>Enjoy</p>\n'}]} 2022-06-19 19:30:47,967 Thread-4 udi_interface INFO TeslaEVController:tesla_initialize: starting Login process 2022-06-19 19:30:47,968 Thread-4 udi_interface DEBUG TeslaCloudEVapi:__init__: teslaCloudEVapi 2022-06-19 19:30:47,968 Thread-4 udi_interface DEBUG TeslaCloudApi:__init__: teslaCloudApi 2022-06-19 19:30:48,073 MQTT udi_interface.interface INFO interface:_message: custom data response {'customparamsdoc': '<h1>teslaEV</h1>\n\n<h2>Installation</h2>\n\n<p>For cloud access through Tesla cloud service one must provide a "refresh token" (REFRESH_TOKEN). <br />\nIt can be obtained e.g. using Auth for Tesla iPhone app \nhttps://apps.apple.com/us/app/auth-app-for-tesla/id1552058613 or Tesla Tokens https://play.google.com/store/apps/details?id=net.leveugle.teslatokens</p>\n\n<p>Once the token is accepted the node server will try to keep the token refreshed. </p>\n\n<p>Once installed a status node for each EV registered in the user account is created with sub-nodes for each EV addressing charging and climate control.</p>\n\n<p>If additional functionality is desired contact the author through github - https://github.com/Panda88CO/udi-TeslaEV</p>\n\n<p>Enjoy</p>\n'} 2022-06-19 19:30:48,115 MQTT udi_interface.interface INFO interface:_message: Successfully set key = customparamsdoc 2022-06-19 19:30:48,221 MQTT udi_interface.interface INFO interface:_message: Successfully set controller :: GV0 to 1 UOM 25 2022-06-19 19:30:48,373 MQTT udi_interface.interface INFO interface:_message: Successfully set controller :: ST to 1 UOM 2 2022-06-19 19:30:48,489 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2022-06-19 19:30:48,663 Thread-4 udi_interface.node DEBUG node:setDriver: controller:Tesla EV Info Reporting set GV0 to 1 to Polyglot 2022-06-19 19:30:48,664 Thread-4 udi_interface.node DEBUG node:reportDriver: Updating value to 1 2022-06-19 19:30:48,665 Thread-4 udi_interface.interface DEBUG interface:send: PUBLISHING {'set': [{'address': 'controller', 'driver': 'GV0', 'value': '1', 'uom': 25}]} 2022-06-19 19:30:48,667 Thread-4 udi_interface DEBUG TeslaEVController:tesla_initialize: Controller - initialization done 2022-06-19 19:30:48,667 Thread-4 udi_interface DEBUG TeslaCloudEVapi:teslaEV_GetIdList: teslaEV_GetVehicleIdList: 2022-06-19 19:30:48,787 MQTT udi_interface.interface INFO interface:_message: Successfully set controller :: GV0 to 1 UOM 25 2022-06-19 19:31:40,105 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message shortPoll 2022-06-19 19:31:40,107 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING shortPoll 2022-06-19 19:31:40,108 Thread-6 udi_interface DEBUG TeslaEVController:systemPoll: systemPoll 2022-06-19 19:31:40,110 Thread-6 udi_interface INFO TeslaEVController:shortPoll: Tesla EV Controller shortPoll(HeartBeat) 2022-06-19 19:31:40,110 Thread-6 udi_interface DEBUG TeslaEVController:heartbeat: heartbeat: 0 2022-06-19 19:31:40,111 Thread-6 udi_interface.interface DEBUG interface:send: PUBLISHING {'command': [{'address': 'controller', 'cmd': 'DON'}]} 2022-06-19 19:31:40,199 MQTT udi_interface.interface DEBUG interface:_message: QUEUING incoming message command 2022-06-19 19:31:40,201 Command udi_interface.interface DEBUG interface:_parseInput: DEQUEING command 2022-06-19 19:31:48,378 Thread-4 udi_interface DEBUG TeslaCloudEVapi:teslaEV_GetIdList: Exception teslaEV_GetVehicleIdList: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) 2022-06-19 19:31:48,379 Thread-4 udi_interface ERROR TeslaCloudEVapi:teslaEV_GetIdList: Error getting vehicle list 2022-06-19 19:31:48,380 Thread-4 udi_interface ERROR TeslaCloudEVapi:teslaEV_GetIdList: Trying to reconnect 2022-06-19 19:31:49,084 Thread-4 udi_interface DEBUG TeslaEVController:createNodes: vehicleList: None 2022-06-19 19:31:49,085 Thread-4 udi_interface ERROR TeslaEVController:createNodes: Exception Controller start: object of type 'NoneType' has no len() 2022-06-19 19:31:49,085 Thread-4 udi_interface INFO TeslaEVController:createNodes: Did not obtain data from EV
  4. Thanks - no, I don't use a cert.
  5. I upgraded to Simple Control v5 and basically used it as an excuse to start again on my setup (my ISY worked great with the prior version, Roomie) I've also change my router to one with DD-WRT (in case this is relevant) When I go to add the ISY as a device in Simple Control it can't find it. If I try and add it manually using its fixed IP, it doesn't connect. Any thoughts?
×
×
  • Create New...