[APP][Pro] Misol and Ecowitt (Release 0.2.20, Test 0.2.21 )

This is the code that I use to calculate the dew point:

            relativeHumidity /= 100;
            var dewPoint = (temperatureF - 32) * 5 / 9;
            if (dewPoint > 0 && dewPoint < 60)
            {
                if ((relativeHumidity) > 0.01 && (relativeHumidity < 1))
                {
                    var a = 17.27;
                    var b = 237.7;

                    var alphaTR = ((a * dewPoint) / (b + dewPoint)) + Math.log(relativeHumidity);

                    var Tr = (b * alphaTR) / (a - alphaTR);
                    dewPoint = Tr;
                }
            }

            dewPoint = Math.round(dewPoint * 10 + Number.EPSILON) / 10;

            if (dewPoint != this.getCapabilityValue('measure_temperature.dewPoint'))
            {
                this.setCapabilityValue('measure_temperature.dewPoint', dewPoint).catch(this.error);
            }

I can’t remember where I got that from, but it would have been of the internet.

Merry Christmas, everyone! :christmas_tree:

Indeed, the dew point is calculated incorrectly in the Homey Misol and Ecowitt app, well spotted, @qawsedrf57! :+1:

Dew point acc. the Homey Misol and Ecowitt app: -2.1 °C

Dew point acc. the Ecowitt iOS smartphone app: -6.8 °C

@Adrian_Rockall, why do you calculate the dew point in your app at all? The WittBoy WS90 provides the value itself, for example. Is the dew point value not transmitted via the API?

It’s not sent in the data on any of the stations I have, including the WS90.

If you look in the app settings page, the information that’s transmitted is shown there.

1 Like

I checked, the dew point is not transmitted.

Yesterday, I connected my WS90 to Home Assistant for testing purposes, and it displays the same dew point as the Ecowitt smartphone app.
So the conclusion is, that the calculation of the dew point seems to be wrong in the Homey Misol and Ecowitt app.

jes, but only a smal mistake in the calculation because it is only with negative values. so i guas (i don’s now what) if you place the right part of the calculation between brackets that it wil be fixt.

i have somewhere in my flow also a dewpoint calculation, i wil compaire them and if i find something i wil let it know

1 Like

i don’t know how it happend but my calculations are wrong as wel for the negative decres(good to know). i think we found the same calculation on the internet.

EDIT:
i just ask the AI modus on google and it gave me this to put in a java script, i did not check it yet:

const T = args[0]; // Temperatuur tag
const RH = args[1]; // Vochtigheid tag
const a = 17.27;
const b = 237.7;
const gamma = Math.log(RH / 100) + (a * T) / (b + T);
const dewPoint = (b * gamma) / (a - gamma);
return Math.round(dewPoint * 10) / 10;

According to Code Pilot this is the revised more accurate Magnus formula:

            // Calculate Dew Point
            relativeHumidity /= 100;
            var temperature = (temperatureF - 32) * 5 / 9;
            var dewPoint = 0;


            if (relativeHumidity > 0.01 && relativeHumidity <= 1)
            {
                var a = 17.625;
                var b = 243.04;
                var alpha = Math.log(relativeHumidity) + (a * temperature) / (b + temperature);

                dewPoint = (b * alpha) / (a - alpha);
            }

            dewPoint = Math.round(dewPoint * 10 + Number.EPSILON) / 10;

            if (dewPoint != this.getCapabilityValue('measure_temperature.dewPoint'))
            {
                this.setCapabilityValue('measure_temperature.dewPoint', dewPoint).catch(this.error);
            }

I have published a new test version with this revision, but I’m not sure when the temperature will drop below 0 here, so I havn’t been able to test it fully.

1 Like

Thanks, looks like whe get some negative decrees over here next fryday or saturday

1 Like

the temp was -0.1 and the dewpoint -2.1 so it looks like the new calculations work thanks for the very quick fix

2 Likes

Basically, I can confirm that:

WittBoy GUI

Homey Insights

The 0.1 °C difference may be due to the fact that insights in Homey are smoothed out for display durations of more than one hour.

Thanks @Adrian_Rockall! :+1:

1 Like

Thinking of buying my first weather station, is the WS69 supported? Or what does Mather is the gateway, not the exterior unit?

Like this weather station and display/gateway:

https://a.aliexpress.com/_EGaZaMg

Can anyone confirm this works on homey with this app?

Thank you

According to the specification it should be fine.

1 Like

i can confirm that the WS90 with HP2560 is working fine

i send a diagnostic report just for the information

thanks for the great work on the app

1 Like

Thanks for the great app — it’s exactly what I need to start monitoring and automating my kitchen garden once it’s up and running.

I’ve read through the entire post and tried all the recommended settings, but Homey still isn’t detecting the gateway or the weather station. I updated the suggested settings and waited a bit before trying to connect, but Homey simply can’t find the devices.

Data shows up fine in the Ecowitt app — the weather station and two moisture sensors are all reporting live data. It just doesn’t show up when I try to add a new device in Homey. :pensive_face:

Am I missing a specific sequence, or could there be another issue?

Setup: GW2000A_V3.3.0


I presume the IP in the picture is for your Homey?

Are both Homey and the gateway on the same network segment?

Hi Adrian! That is correct, IP is the Homey one. They are both on the same network indeed. The gateway is wired, to a mesh node (which perhaps could be the problem…) and the Homey is wireless, but since I have access to the data through IP and App, I dont see the problem of sharing it in the network directly to the Homey.

I figured out the initial problem. It was my network setup, somehow my Homey ended up on our guest network which doesn’t have WAN access. I was able to find and add the gateway and weather station but returned this error (see screenshot). After a reboot of the gateway, everything seems to be working accept for the soil readings. I had to add all the devices seperatly now. At first it detected both weather station and gateway in one go. But it works! Pfew :slight_smile:

1 Like

I have successfully installed Ecowitt Weather station (WS2910: WS69+7 inch display) and GW1200A gateway. Works great, but I realized that the Indoor temperature of the LCD display is not available in my Homey Pro 2023.

How to add the Indoor Temperature device to Homey?

You should be able to add it as a Temperature and humidity device

Thanks for the quick response.

I am getting “No new devices have been found” when I try. And I’m pretty sure that it isn’t already been added. Outdoor temperature of type “Temperature and humidity meter” have been added earlier. That is the temp & hum from Weather Station.