Ecowitt GW1x00 integration worked previously, but then I started a WeeWX server and changed the port on the WS View to 45000. The integration still worked until I deleted the driver and reinstalled it via HPM. Now it is stuck on "pending." I'm assuming it's a port issue.
I can't find where to change the port in Hubitat and would rather not change the port in WeeWX.
Is there a place to change it in Hubitat somewhere or am I SOL?
Thanks!
The short answer is, my understanding is that the port may not be configurable, and that you shouldn't need to change it.
The way it is meant to work is the port is a single port that the HE platform listens on for any "unsolicited" http communications, i.e. any thing can send to that port without HE needing to maintain a list of open ports per device. When the HE platform receives any data via http on that port it forwards it to the device with the network identifier that matches the Mac address of the source of the http call, e.g. the actual EcoWitt Gateway in this case.
So the EcoWitt driver sets the device network identifier for the gateway device in HE, and we set the IP address and port in the WS View App and it all magically works . That doesn't explain why it continued to work after you changed the port.... I can only imagine the change was somehow not applied on the gateway itself...
I would expect your WeeWX server to be hosted on a device with a different Mac address, so the two should be able to happily co-exist, both sending data to HE on the same port, but HE directing that data to different devices / drivers to parse.
Considering my WeeWX is not fully functioning just yet, I switched the settings back for the HE. Lo and behold, WeeWX is still getting data from the GW1000.
The only thing I figure is once the connection is established both will go out and get the data rather than wait for it to get pushed to it. Whatever, it works.
Thanks!
Are you meaning a WeeWX virtual device on your HE hub is being populated with data from your EcoWitt data feed? Check the Device Network Id on the WeeWX device in HE to see if the MAC Address matches that of your EcoWitt.
Yes, the Ecowitt device in HE has the MAC address. My WeeWX is getting data from the GW1000 directly. BOTH devices are getting the data from the GW1000 directly and not either from the other. I haven't set up a WeeWX driver in HE yet and I'm likely not going to if it stays working like it is now.
Ok, I'm not sure I entirely follow where everything is being routed, but like you said, if it works....
If you need a hand or want me to look at anything just let me know. You're also welcome to post on the EcoWitt driver thread if you want, but you don't have to.