mreyn2005 wrote:@Jay what would be your recommendation for establishing a WeatherStation device type that would be updatable via the MQTT events from FlyingDiver's plugin? Clone the Weather Station virtual device from GreenSky, minus that plugins inherent integration with its MQTT functionality?
I don't know what that virtual device does so it's hard to speculate. Do you want your weather station device to have individual states for each bit of data (temp, humidity, wind, rain, etc), or do you want each of those to be individual devices? If the former, then you'd need a custom device that defines whatever states you want (have a look at the Fantastic Weather or NOAA plugins for examples of that approach). If the latter, then each of the "sensors" of the station could be their own Indigo sensor device. I don't know if there's currently a virtual sensor in any of the 3rd party plugin devices that provide them (and there isn't yet one in the Virtual Devices Interface), but you could probably relatively easily use the Sensor example plugin in the SDK to create your own. I think the only thing you'd need to add would be an action to set the sensor value, which you could then use from your queue parsing script to make the change.
However, given @FlyingDiver's post, I expect that would be unnecessary work as he's probably doing it in his plugin...