Jump to content

Panda88

Members
  • Posts

    736
  • Joined

  • Last visited

Everything posted by Panda88

  1. Correct - most changes are related to the connection to Yolink - as mentioned I am still waiting to hear the best way to know if the connection to Yolink is still active or just appear to work - I have not heard back yet on this one, but released 0.4.4 as it does improve connection stability
  2. 0.4.3 Did a small change to how often the MQTT Check for connection - it may help the lost connections - I have not had a chance to check, but it should be change Still travelling so no access to setup
  3. I normally use WinSCP to move files to and from Polisy. There should be 3 text files containing the packet seem from YOLink API - It is jus the raw packets with timing added Maybe you can check if the event that are supposed to happen are there - then for sure it is my code
  4. I am also trying to understand what is happening, but it is not easy - I believe the MQTT connection is somehow shutting down -the code stops receiving the messages being sent (even with external sniffer). Note, the YoLink app must use a different API than the one that is presented to external users, as it has more information available that what the API I use offers. I have noticed that it seems that only 1 credential can be used - e.g. you cannot use the same credential for multiple applications (ie. running both on HA and Polisy). - only one for them seems to be served by the API If you know how to log into polisy and retrieve files there are files logging all MQTT events that are recorded by node server. there you can see if the event get generate a log entry that was not passed to ISY I cannot rule out that I am doing something wrong in the code (I probably am and I am no expert in MQTT - it is my first project on MQTT), but it is very difficult to debug. It seems the API suddenly stops reporting events - When I detect it I restart the connection, but it does not make sense to me that I have to keep polling the connection (that is not the idea of MQTT) and furthermore, the even could still happen between connection is lost and the next poll. Th main issue is to understand why the connection stops. The question about removing and reinstalling the nodes - I do it because of a bug that you cannot remove a mode from the polisy interface once created. The bug may have been fixed by now, but I have not seen it being important to change the code - nodes will get same names and everything should b the same - also - I hope to get to a point where there should be no need to restart the node server. Lastly - on my own local setup the connection remains up (or gets restarted) - I may miss events 0 I have not been focusing on that, but my garage door controller keeps working (to open /close) - it used to stop working after a while - naturally it does not mean there is no issues in the code - just makes it even more difficult to debug
  5. can you send a log again
  6. Looks to me you have more than 1 version of yolink running - can you try to power cycle the Polisy? There are quite a few other node servers generating errors as well I did notice the motion sensor sends an openReminder that I did not know exist - it is not documented what the API can send as events - I am not sure if that is the root cause - I'll see if I can find a way to handle it cleanly - maybe even find a way to use it in ISY
  7. thanks - do you have the polyglot log as well
  8. something is likely happening - need to take a look at it, but I am travelling without access to a debug setup so unless you can catch a log file showing what is happening it will have to wait until I return
  9. the code for wake does a loop until the API responds (but you will not see this from the ISY. I could possibly make the status or climate node return a ON/OFF (a control for the node in the ISY) so it will change state when car goes from sleep to awake) but it has not been done yet - let me think about it - I do not have a car my self to test on and I only know people say the response is fairly fast these days - 30 sec or less worst case Also - the long poll wakes the car if a sleep so this should be a worst case scenario - you could use heart beat (short poll) at half the long poll duration and then program after a delay on either On or Off for the heart beat - I believe the PG poll is synchronized initially so they should happen aligned
  10. It looks like the token does not work correctly - it could be the API has locked you out (go to www.tesla.com and try to log in) - if that is ok try to generate another refresh token. If not recreate your credentials You can also try to erase the REFRESH_TOKEN entry under config - both key and token and then restart node server - it should auto generate the entry again. I think I did change the code to handle a car with no name, but we are not even getting that far here.
  11. Are you running on stand alone ISY or IoP (ISY on Polisy) - my guess it is what is happening is the ISY is slower than my setup so it is not ready when the code starts querying the nodes Can I get you to try again with login set to debug. - it is info now - but you previous screen shot showed debug I made some changes to ensure the node is ready before querying data from it - I hope it works as I cannot test as I am travelling (It is a minor change - no other functionality)
  12. Looks like the return structure from Tesla has changed a little - need to look through the changes and make appropriate modifications
  13. Can you try to erase the REFRESH_TOKEN key save (not just the value but the key)- and then restart? It seems to old token is somehow stuck in polyglots database
  14. looks like something went wrong during installation - Can you try to remove it (fully) and install again - it is like it is not registered correctly in the node store
  15. try to start again but get the log from upper right corner - it looks like the node server does not start at all
  16. ny chance you can provide a full log - the error happens earlier - but it does look like the token did not refresh corectly Tesla does change their API once in a while and as there is no official API it takes a little while to get it updated It can also happen they log you out if you poll too often so try to log in at website to see if that works I am travelling now so there will be some delay on support
  17. t looks like you found the place to put it (at the bottom - REFRESH_TOKEN) - Is the one shown one you entered - if not clear the filed and replace it with your token - make sure that there is not a blank space at the end of the token - I had that issue in the past. If it does not work, can you post a log file there - I need to know what it is wrong. Also it the version looks wrong - but it could be related to the node not starting
  18. I believe a full power cycle should do it -unless you had a very early version I think you may have the latest version already
  19. When you reboot it is designed to remove existing nodes and then recreate them - you often need to refresh the browser to the the node server to show all - it is a known polyglot UI issue Have you updated polyglot to latest version? There have been some node handling changes recently I do not see the behavior you describe - maybe you can enable debug in the log and send me a long log - Maybe I can figure out what is happening
  20. Really strange - There is no communication from the Yolink cloud - Using MQTT the sensors should report by them selves - I am only querying once an hour - nothing coming from the cloud - maybe try to generate new credentials For the UDI mobile issue - did you try to reboot the PoI ? The text files are only read at reboot - updating the server is not enough - little strange but it seems to be the case
  21. Are you running a different application with the same credentials (like HA or similar) - It seems only one one application can use the same credentials at a time . I am not 100% sure, but I have seen the same when using 2 different ISYs running the same code. I see the code initializing but then nothing happens - it times out and reacquires the token. I think another application has the control I did find an error on the door sensor that I fixed - I did not update version yet but uploaded the fix I am travelling and cannot test the code change.
  22. Congrats on the car, I think this should work - you can specify max charge current - but you need to make sure it works correctly - I have not been able to verify it You have to be a little careful as there is (I believe) a delay from the tesla API - I htink commands are ok but getting data back may have some delay
  23. Can you provide a log file from the node serer?. Aldo try to restart the node server after update. I think there were some cloud issues yesterday
×
×
  • Create New...