Everything posted by tazman
-
Where to input refresh token
On the Configuration page of the node server it has a help to tell you how to do it. teslaEV Installation For cloud access through Tesla cloud service one must provide a "refresh token" (REFRESH_TOKEN). It can be obtained e.g. using Auth for Tesla iPhone app https://apps.apple.com/us/app/auth-app-for-tesla/id1552058613 or Tesla Tokens https://play.google.com/store/apps/details?id=net.leveugle.teslatokens
-
Unable to load my vehicle
I finally have a way to monitor power to try using my extra solar to charge my Tesla but between the recent node server updates and my token expiring I can not get the node server to load my vehicle again. Hopefully I will have time to look at it this weekend but I'm sure I won't be able to fix it on my own.
-
confusion on intial setup of Polisy Pro
@CStickneyyou should set ISY to DHCP then reserve the IP in your router that way the router knows what it is handing out and there should never be a conflict.
-
TV Off/Restart Program Help Needed
Some TV's turn back on after power is cut and restored and some don't. You can try extending the time the TV is off and that might let the capacitors discharge and change the outcome.
-
YoLink
With the Tesla node server the only way I was able to get Panda88's assistance was through Github.
-
Trunk and Frunk stats always show open
From my experience if you would like help from the author you have to post on the Github website.
-
Initial setup issues
An update for others who might be thinking about using this node server, I got it working with the help of Panda on the Github site. Little more information to drop here the vehicle must be named and to get it connected I woke it up before restarting the node server. I have not done much with it so far but I plan to do some experimenting with setting charge level to use my excess solar.
-
How do you configure the node server?
I am using it with the Vue 2 which has the 16 ct's and today it is showing net production instead of the car charger which I have not used today.
- Initial setup issues
-
Initial setup issues
I did not know where to post this since there is no TeslaEV topic in the PG3 Node Servers area. I purchased and installed the TeslaEV node server written by @Panda88but I always seem to have trouble setting these up as it is not intuitive to me what information to put in. I try to put the code that the authenticator app creates and restart the node server but it seems like it takes longer then the allowed 30 seconds for the node server to restart. How can this work without my user email? Am I using the correct code or am I supposed to use the backup passcodes I got from the Tesla site? Any guidance would be greatly appreciated! Tom
-
How do you configure the node server?
@bpwwer Thank you the current KWH seems to be working for me now but the KWH today is showing what my Vue car charger used. It is also showing as connected now.
-
How do you configure the node server?
@bpwwer I installed the node server and made sure Poisy was up to date but I have a "1" for online, Kilowatt Hours keeps flashing between 0 and a number and Kilowatt Hours Today is at 0. VUE_5-10-2022_65900_PM.zip
-
UDI Mobile Android
Someone recommended MacroDroid to me a while ago and I have been using it without issues.
-
REST Subscriptions
@Javiyou are correct going back to the original version fixed it Thank You.
-
REST Subscriptions
@JaviI hate to do this but it looks like IOP 5.4 made your fix stop working again! Any idea what changed?
-
Reset ISY on Polisy to default
@macjeffto start over with isy you want to sudo pkg remove isy then sudo pkg install isy then sudo service isy restart the only thing is for me every time I did it the portal would disappear but when I restored from a backup it would come back. Good luck! Tom
-
Tags not updating
You were right I did have the tag manager on a different part part of the network from Polisy. I did not think of that since it was able to grab the information with a query. Thank you for the help and the hard work you put in to bring us these great programs!
-
Tags not updating
I moved from the PG2 to PG3 version and in both versions I have to query the tag to get it to update. I will attach my log file to see if it helps to figure out what is happening. WirelessTag_2-4-2022_70950_PM.txt
-
REST Subscriptions
@Javi Your the man THANK YOU!! I appreciate the time you put in to help me. Just so others know if they come looking "wsclient.connect(wshost, null, origin, header); " was what made it work for me. I'm not back to where I was with houspanel I only have 2 Items working but the fact that they update makes me think I can get back to where I was before.
-
REST Subscriptions
@Javi I'm not sure what you mean with the connect function but I don't see anything in the file I cut the information from and posted above. I'm going to attach 2 files that seem like they could be relevant and if they are not it I guess I will just go back to giving up. websocket.js WebSocketConnection.js
-
REST Subscriptions
@JaviBelow is the main area that looks to me it defines the websocket. Would you be able to tell me what to change to make it work? // make websocket connection to any ISY hub // unlike ST and HE below, communication from ISY happens over a real webSocket var wshost; for (var h in GLB.options.config["hubs"]) { var hub = GLB.options.config["hubs"][h]; wshost = false; if ( hub["hubType"]==="ISY" && hub["hubEndpt"] && hub["hubAccess"] ) { var hubhost = hub["hubEndpt"]; if ( hubhost.startsWith("https://") ) { wshost = "wss://" + hubhost.substr(8); } else if ( hubhost.startsWith("http://") ) { wshost = "ws://" + hubhost.substr(7); } } // set up socket for ISY hub if one is there if ( wshost ) { var wsclient = new webSocketClient(); var buff = Buffer.from(hub["hubAccess"]); var base64 = buff.toString('base64'); var origin = "com.universal-devices.websockets.isy"; var header = {"Authorization": "Basic " + base64, "Sec-WebSocket-Protocol": "ISYSUB", "Sec-WebSocket-Version": "13", "Origin": "com.universal-devices.websockets.isy"}; wshost = wshost + "/subscribe"; wsclient.on("connectFailed", function(err) { console.log( (ddbg()), "Connection failure to ISY socket: ", err.toString(), " wshost: ", wshost, " header: ", header); }); wsclient.on("connect", function(connection) { console.log( (ddbg()), "Success connecting to ISY socket. Listening for messages..."); // handle incoming state messages from ISY // this will be ignored if the node isn't in our list connection.on("message", function(msg) { if ( msg.type==="utf8" ) { processIsyMessage(msg.utf8Data); } }); connection.on("error", function(err) { console.log( (ddbg()), "Connection error to ISY socket: ", err.toString()); }); connection.on("close", function() { console.log( (ddbg()), "Connection closed to ISY socket"); }); }); wsclient.connect(wshost, "ISYSUB", origin, header); } } }
-
REST Subscriptions
Thank you @Javi I'm trying not to be to much of a pain that is why I left it go until others brought it back. I really don't know programing and I don't think UDI should have to support other people's software but I appreciate all you have done so far to help!
-
REST Subscriptions
@Javi I tried but I don't know what to change because it would not load with what I did. If it is something that will eventually work I can wait. I found ISYSUB 2 places in the hpserver.js file. If I just remove the firs bold it still worked the same with the below error V2.418 on 2/1/2022 8:27:04 PM Connection failure to ISY socket: Error: Expected a Sec-WebSocket-Protocol header. wshost: ws://192.168.0.30:8080/rest/subscribe header: { var header = {"Authorization": "Basic " + base64, "Sec-WebSocket-Protocol": "ISYSUB", "Sec-WebSocket-Version": "13", "Origin": "com.universal-devices.websockets.isy"}; wshost = wshost + "/subscribe"; and }); wsclient.connect(wshost, "ISYSUB", origin, header); }
-
REST Subscriptions
I went into an older version of housepanel. The log file looks like this with the old 994 7/27/2020 4:08:52 PM Loading 1 hubs. 7/27/2020 4:08:53 PM HousePanel Node.js Server is running on port: 3080 7/27/2020 4:08:53 PM webSocket Server is listening on port: 1380 7/27/2020 4:08:53 PM Success connecting to ISY socket. Listening for messages... 7/27/2020 4:09:06 PM **************************************************************** Serving page at: http://192.168.0.40:3080 **************************************************************** 7/27/2020 4:09:06 PM Displaying main HousePanel web page: http://192.168.0.40:3080 7/27/2020 4:09:06 PM **************************************************************** Serving page at: http://192.168.0.40:3080 **************************************************************** 7/27/2020 4:09:06 PM Displaying main HousePanel web page: http://192.168.0.40:3080 7/27/2020 4:09:08 PM Connection accepted. Client #0 host=::ffff:192.168.0.40 Client count: 1 Pushing client #0 7/27/2020 4:09:27 PM Peer: ::ffff:192.168.0.40 disconnected. for: 1001 desc: Remote peer is going away All I did was change the IP address for ISY to the Polisy one and I get this and have the same behavior of not updating devices state 2/1/2022 7:00:48 PM Loading 1 hubs. 2/1/2022 7:00:49 PM HousePanel Node.js Server is running on port: 3080 2/1/2022 7:00:49 PM webSocket Server is listening on port: 1380 2/1/2022 7:00:49 PM Connection failure to ISY socket: Error: Expected a Sec-WebSocket-Protocol header. wshost: ws://192.168.0.30:8080/rest/subscribe header: { Authorization: 'Sec-WebSocket-Protocol': 'ISYSUB', 'Sec-WebSocket-Version': '13', Origin: 'com.universal-devices.websockets.isy' }
-
REST Subscriptions
This is what it shows in the error log V2.418 on 2/1/2022 6:33:23 PM Connection failure to ISY socket: Error: Expected a Sec-WebSocket-Protocol header. wshost: ws://192.168.0.30:8080/rest/subscribe header: { Authorization: 'Sec-WebSocket-Protocol': 'ISYSUB', 'Sec-WebSocket-Version': '13', Origin: 'com.universal-devices.websockets.isy' }