[SOLVED] Weatherflow Smart Weather Station binding

I’m in Australia and have had my WeatherFlow station for well over a year and I know there are quite a few other WeatherFlow owners in Australia, so they definitely ship here.

Awesome. Did you buy from them or Amazon? Their support told me the Rf frequencies are different and they can’t ship to Australia.
I’d love to get one, thanks for helping with advice!

I was one of the original Kickstarter backers so bought direct from WeatherFlow.

1 Like

Hi Bill @hww3! After update to 2.5M2 I’ve got again the error as below. Binding doesn’t work. I try to make it work but I wanted let you and others know about it. I have " Rule Engine (Experimental)" installed and did cleaned OH cache already.

2019-08-14 10:30:38.534 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.weatherflowsmartweather-2.4.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.weatherflowsmartweather [206]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.automation.handler

        at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [10:org.apache.felix.fileinstall:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [10:org.apache.felix.fileinstall:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]

Hi! I actually just installed 2.5M1 a day or two ago and noticed that the binding didn’t load. I think the problems are: a) the versions of libraries supplied with openhab changes from time to time and we depend on a few older versions, and there were some other things that changed as part of openhab re-integrating eclipse smart home. I think a rebuild may be all that’s required, I just haven’t had a chance to do that. Will see if I can kick that off this morning.

1 Like

Maybe this is also a good moment to make your binding official?

That is in the plan, though I’m currently working on submitting another one (for Venstar thermostats). Expect this one to be the next.

I’ve got a few minor code fixes to make to this one; I might get it done today, but regardless will post back here when I have something to try out.

1 Like

I haven’t tested this much, but the changes were very minor, and it installed and started, so I think the chances are good that it will work for you:

https://bitbucket.org/hww3/org.openhab.binding.weatherflowsmartweather/downloads/org.openhab.binding.weatherflowsmartweather-2.5.0-SNAPSHOT.jar

Please let me know if you have any problems getting this to work!

1 Like

Nope. It doesn’t work so far. It does not load as I can’t see it in PaperUI.

I;ve got:

2019-08-19 10:12:31.829 [WARN ] [event.WeatherFlowEventSubscriberImpl] - Starting!
2019-08-19 10:12:31.832 [WARN ] [event.WeatherFlowEventSubscriberImpl] - Starting!

But no things are being loaded.

Does anyone have a sample thing file and items file i can use. I dont use autodiscovery and I create all my things manually so i have more control.

Also, if i go into paper UI i can see the weather calculations binding but the weather flow does not show up as a binding to search for things. I have put both jar files into the config dir and restarted…i have a windows 10 server.

Thanks…

Ok, I see the same sort of thing. I just assumed my hub was acting up again. Will dig a little deeper and see what I can find.

Someone else may be able to help because I don’t use item files; most network devices these days auto configure themselves via DHCP and there’s no real guarantee they won’t move around, so all of the bindings I’ve built deal with this automatically using the auto discovery framework in openHAB 2. It may be possible; I just haven’t done it myself.

Hi! my things file looks like this and it worked so far as below:

Bridge weatherflowsmartweather:hub:HB-00001111 "SmartWeather HUB" @ "Weather" [ serial_number="HB-00001111" ] {
      Thing weatherflowsmartweather:air:HB-00001111:AR-00002222 "SmartWeather AIR" @ "Weather" [ serial_number="AR-00002222" ]
      Thing weatherflowsmartweather:sky:HB-00001111:SK-00003333 "SmartWeather SKY" @ "Weather" [ serial_number="SK-00003333" ]
    }

It worked, but I’m getting the following warning from openhab:

Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>

So i thinkg that things should be something like:

      Thing air AR-00002222 "SmartWeather AIR" @ "Pogoda" [ serial_number="AR-00002222" ]
      Thing sky SK-00003333 "SmartWeather SKY" @ "Pogoda" [ serial_number="SK-00003333" ]

Items looks like:

        //Air
        DateTime SmartWeatherAir_epoch                          "Ostatni raport Air [%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS]"      (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:epoch" }
        Number SmartWeatherAir_temperature                      "Temperatura [%.2f °C]"                                         (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:temperature" }
        Number SmartWeatherAir_pressure                         "Ciśnienie [%.2f mb]"                                           (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:pressure" }
        Number SmartWeatherAir_humidity                         "Wilgotność względna [%d %%]"                                   (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:humidity" }
        Number SmartWeatherAir_strike_count                     "Ilość wyładowań [%s]"                                          (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:strike_count" }
        Number SmartWeatherAir_strike_distance                  "Odległość od wyładowania [%s km]"                              (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:strike_distance" }
        Number SmartWeatherAir_battery_level                    "Poziom baterii [%s V]"                                         (gWeatherstation)       { channel="weatherflowsmartweather:air:HB-00001111:AR-00002222:battery_level" }

        //Sky
        DateTime SmartWeatherSky_epoch                          "Ostatni raport Sky [%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS]"      (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:epoch" }
        Number SmartWeatherSky_illuminance                      "Natężenie światła [%s]"                                        (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:illuminance" }
        Number SmartWeatherSky_uv                               "Wskaźnik UV [%s]"                                              (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:uv" }
        Number SmartWeatherSky_rain_accumulated                 "Opad [%s mm]"                                                  (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:rain_accumulated" }
        Number SmartWeatherSky_wind_lull                        "Bezwietrzność [%s km/h]"                                       (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:wind_lull" }
        Number SmartWeatherSky_wind_avg                         "Średni wiatr [%s km/h]"                                        (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:wind_avg" }
        Number SmartWeatherSky_wind_gust                        "Poryw wiatru [%s km/h]"                                        (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:wind_gust" }
        Number SmartWeatherSky_wind_direction                   "Kierunek wiatru [%s]"                                          (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:wind_direction" }
        Number SmartWeatherSky_battery_level                    "Poziom baterii [%s V]"                                         (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:battery_level" }
        Number SmartWeatherSky_report_interval                  "Częstość raportowania [%s]"                                    (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:report_interval" }
        Number SmartWeatherSky_solar_radiation                  "Natężenie promieniowania [%s W/m\u00b2]"                       (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:solar_radiation" } //I
        Number SmartWeatherSky_local_day_rain_accumulation      "Lokalny dzienny opad [%s]"                                     (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:local_day_rain_accumul
        String SmartWeatherSky_precipitation_type               "Siła opadu [%s]"                                               (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:precipitation_type" }
        Number SmartWeatherSky_wind_sample_interval             "Częstość pomiaru wiatru [%s]"                                  (gWeatherstation)       { channel="weatherflowsmartweather:sky:HB-00001111:SK-00003333:wind_sample_interval"

        //HUB
        Number SmartWeatherHub_rssi                             "RSSI [%s dB]"                                                  (gWeatherstation)       { channel="weatherflowsmartweather:hub:HB-00001111:rssi" }
        Number SmartWeatherHub_firmware_version                 "Firmware version [%s]"                                         (gWeatherstation)       { channel="weatherflowsmartweather:hub:HB-00001111:firmware_version" }
        Number SmartWeatherHub_uptime                           "Uptime [%s s]"                                                 (gWeatherstation)       { channel="weatherflowsmartweather:hub:HB-00001111:uptime" }
        DateTime SmartWeatherHub_lastReport                     "Last Report [%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS]"             (gWeatherstation)       { channel="weatherflowsmartweather:hub:HB-00001111:lastReport" }

I don’t guarantee if all is correct. Cheers.

1 Like

Thanks a bunch!! Will see what happens.

I downloaded the latest snapshot of the weatherflow.jar file from a few post back. Mine also does not show up in the paperui. I think its not being loaded as well.

Thanks again for the items and things. Is your binding loading? Mine doesnt seem to be loading at all. The weather calculations bindings is loading and showing up in the paperui. Just wondering if its just me. Its the jar from 7 days ago.

Thanks.

I’ve posted a new version that seems to work with 2.5M1. Note that there’s a lot of change going on in the OpenHAB project, and I’m trying to keep up, but 2.4 is still the most recent stable version. Anything newer and you run the risk of complete meltdown. :slight_smile:

http://bill.welliver.org/dist/org.openhab.binding.weatherflowsmartweather-2.5.0-SNAPSHOT.jar

Hi Bill! Tried it and I see that HUB is showing up in Inbox, however I can’t add it as a thing.
I get “ERROR: 409 - Conflict” in PaperUI and log shows the following:

[WARN ] [g.discovery.internal.PersistentInbox] - Cannot create thing. No binding found that supports creating a thing of type weatherflowsmartweather:hub.

Hi,

I think I accidentally uploaded a version that wasn’t working (I had commented out the Thing Handler to do some testing). I’ve uploaded a new one that I’ve verified works with my Hub and Sky (I am out of town and think my Air unit has dead batteries).

Could you please try this version and let me know if it works better for you?

It works! However there is a huge spam in log

2019-08-23 21:30:52.305 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:30:52.306 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:30:55.191 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:30:55.192 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:30:57.856 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:30:57.857 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:30:57.857 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:30:57.857 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:30:57.858 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:30:57.858 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:30:57.858 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:30:57.859 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:30:58.283 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:30:58.284 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:01.374 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:01.375 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:04.261 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:04.261 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:07.352 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:07.353 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:07.858 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:31:07.858 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:31:07.859 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:31:07.859 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:31:07.860 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:31:07.860 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:31:07.861 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:31:07.861 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:31:10.444 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:10.444 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:11.215 [INFO ] [.eclipse.smarthome.model.script.Info] - tabletBathroom battery level: 93
2019-08-23 21:31:12.517 [WARN ] [ather.handler.SmartWeatherHubHandler] - device status but not for us: weatherflowsmartweather:sky:HB-00003071:SK-00010471
2019-08-23 21:31:12.517 [WARN ] [ather.handler.SmartWeatherHubHandler] - device status but not for us: weatherflowsmartweather:sky:HB-00003071:SK-00010471
2019-08-23 21:31:12.673 [WARN ] [ather.handler.SmartWeatherHubHandler] - sky observation but not for us.
2019-08-23 21:31:12.674 [WARN ] [ather.handler.SmartWeatherHubHandler] - sky observation but not for us.
2019-08-23 21:31:13.380 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:13.381 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:16.266 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:16.267 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:17.861 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:31:17.861 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:31:17.862 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:31:17.862 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:31:17.863 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel rssi although the handler was already disposed.
2019-08-23 21:31:17.863 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel firmware_version although the handler was already disposed.
2019-08-23 21:31:17.863 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel lastReport although the handler was already disposed.
2019-08-23 21:31:17.864 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartWeatherHubHandler of thing weatherflowsmartweather:hub:HB-00003071 tried updating channel uptime although the handler was already disposed.
2019-08-23 21:31:19.358 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:19.358 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:22.244 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:22.245 [WARN ] [ather.handler.SmartWeatherHubHandler] - rapid wind observation but not for us.
2019-08-23 21:31:25.330 [WARN ] [ather.handler.SmartWeatherHubHandler] - device status but not for us: weatherflowsmartweather:air:HB-00003071:AR-00007657
2019-08-23 21:31:25.331 [WARN ] [ather.handler.SmartWeatherHubHandler] - device status but not for us: weatherflowsmartweather:air:HB-00003071:AR-00007657
2019-08-23 21:31:25.494 [WARN ] [ather.handler.SmartWeatherHubHandler] - air observation but not for us.
2019-08-23 21:31:25.495 [WARN ] [ather.handler.SmartWeatherHubHandler] - air observation but not for us.