Drivers have been re-release under my HPM repository, see post below for more details on installing them. A more formal set of notes in this post will come soon.
2021-08-28 - Re-Release of drivers under my sburke781 HPM repository
2021-12-04 - Replaced time attribute with lastUpdate
2021-12-04 - Added option for Dynamic DNS Lookup for remote Gateway devices
2022-02-02 - Added Air Quality capability and associated attribute - thanks @kahn-hubitat
2022-02-03 - Fixed bug where Air Quality would only be set if HTML Enabled setting was turned on
What did I miss?? Where did microline go??
He chose to move off the HE platform, but did provide the code for us to continue using.
I am going through the exercise of setting it up in a repository of my own. It is looking likely we will each need to recreate the ecowitt devices on our hubs and associated links in rules / apps, etc. So it may take a little longer to get this back up and running for any updates or fixes people may need
It’s still on my hub or if I run an update on my HSM will it remove it?
The update won't work, but trying to do an update won't remove the drivers.
I now have the drivers available in my Hubitat Package Manager repository. I have some steps listed below to transition to my copies of the EcoWitt drivers, so feel free to take a look and let me know if you have any questions or feedback. I'll be getting the notes on earlier posts here up to date over the next few days / week.
PLEASE READ - Things to consider / take note of before starting
The process is essentially:
- Install a new copy of the drivers
- Setup a fresh set of devices in HE
- Switch the feed of data from the old HE devices to the new
- Update HE rules and apps with references to the old HE devices
- Remove the old HE devices
Understand where you're existing devices are being used, such as in rules or other apps, and what may be involved in transitioning these references to a new device. The reason for pressing this point is that there will be a period of time between switching the feed of data from the old to new devices and having updated any rules or apps, where those rules or apps will not be receiving any updates. There are some alternatives that could be used if this is a problem, so get in touch if you have any concerns.
Including my HPM Repository
If you don't already have my repository configured in HPM:
- On the HPM Main Menu select "Package Manager Settings"
- Open the "Available repositories" list and select my "Simon Burke (sburke781)" repository
- Click Next
Re-Installing EcoWitt WiFi Gateway Drivers
- On the HPM Main Menu select Install -> Browse By Tags
- Open the "Choose tag(s)" list and select the "Weather" tag
- From the packages displayed, click the "EcoWitt WiFi Gateway by Simon Burke (sburke781)" package
- When prompted, click Next twice to start the installation
- When the installation is complete, click Next to return to the Main Menu
Creating a new EcoWitt WiFi Gateway Virtual Device
- Navigate to the Devices page and click Add Virtual Device
- Give the new device a name (keep this different to the existing gateway device for the moment to make identification easier, then change the name later if needed)
- In the Type select the first EcoWitt WiFi Gateway driver listed
Note - In testing the new driver was always the first one listed, but we can correct this later if it is not correct
- Click Save Device
Capturing Configuration Settings and Turning off the data feed
NOTE THIS WILL STOP DATA FROM BEING CAPTURED IN CHILD DEVICES
- Open the existing EcoWitt WiFi Gateway virtual device
- Note down the MAC / IP address and any other settings from the Preferences section
- Open each of the child devices linked at the bottom of the page and do the same, note down any settings configured for each device
- Adjust the MAC / IP address setting slightly, for example, changing one number or character, and click Save Preferences
Configuring the New EcoWitt WiFi Gateway Device
- Enter the Gateway MAC/IP Address and update any other Preferences noted earlier
Click Save Preferences
- Wait until updated data is sent through from the physical gateway device (the timing of this would have been configured in the WS View app on your phone / tablet). Attributes such as passkey, firmware and others will be displayed when this has happened
- To confirm the right driver was selected earlier, the driver attribute should be "1.30.29". If this is not the case, change the driver selected (Type) under the Device Information section, click Save Device, wait for the page to reload and click Save Preferences.
- Reload the Device page and confirm child devices (sensors) have been created. These are displayed in the Device Details table at the bottom of the page, listed under Component Devices
- Open some of the child devices to confirm data is coming through as expected
Migrating to the New Gateway Device
- Look back at the old gateway virtual device, and in particular it's child devices, looking for the In Use By listing at the bottom of the Device Edit Page.
- Update any references to the old gateway and child devices, in rules, apps, dashboards, etc, transitioning those references to the equivalent devices created as part of this installation
- Remove the old EcoWitt WiFi Gateway virtual device from HE
- Rename the new gateway device, if required
- Uninstall the old EcoWitt drivers from HPM (note, you will receive an error message if you select the new drivers, so don't stress....)
EDIT: I noticed the old drivers still appeared in my listed under Drivers Code, even after having chosen to remove them via HPM. So you may need to remove the copies under mircolino manually. To do this, In the Drivers Code listing, click on the driver name, once the driver code opens, click the red "Delete" button, click Ok to confirm the delete. Do this for both the Ecowitt Gateway and Ecowitt RF Sensor drivers listed under the mircolino Namespace.
For those who have made use of templates and icons for a html tile, you will need to update the CSS file import line in the Advanced -> CSS section of your dashboard, to now read:
See step two from the templates section of the Readme.
Great instructions Simon. Easily followed. Many thanks.
Added an update to the cleanup step for transitioning to the new copy of these drivers. I had to manually delete the old ones in the Drivers Code section. See my notes in the Cleanup step from my earlier post.
Awesome @sburke781! I will see if I can switch over to your drivers, but also let me know if you need any help.
Does anyone know why? I received a lot of help from mircolino, and would have loved to have let him know of the status.
He didn't go into all the details (from memory), only that he was not enjoying development on the HE platform as much as he used to. He wasn't happy with the html sanitisation that was recently brought in, which tipped the scales for him.
He did make a post on the old EcoWitt topic / thread to explain this and to offer the code for anyone to take it on, but did not expect the thread would be removed when he asked for his account to be closed, I can only assume that is how the system works.
I agree, he's a good bloke, was always very open to requests and responsive to people's questions. He's also been happy to help me get this back up and running.
Thanks @sburke781 for doing this . Is it only on HPM (which I still haven't made the transition to) or is the code available on github? I see he's also pulled his github account. (oops NVM found the fork on your github page)
Too bad mircolino has left - he was a super helpful guy with his drivers, I wish him well.
Was literally just responding to a similar private question🙂. I'd suggest moving to HPM, but if you want, the two drivers are available here:
Prob should but I just prefer to update code manually.
Yes. That’s how Discourse works.
That's too bad, it was full of useful info for his drivers.