Subscription options

Posted on
Wed Aug 07, 2019 9:20 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Subscription options

mreyn2005 wrote:
The author of the GreenSky plugin indicated his plugin included a Virtual Device for a Weather Station... @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 recommend that you NOT attempt to do anything like this in the short term. A better solution is coming.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Aug 07, 2019 11:03 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Subscription options

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... ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 07, 2019 11:10 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Subscription options

mreyn2005 wrote:
Y2) I could edit my Alexa skill to send the much lighter/simpler MQTT messages in order to control Indigo, instead of using the heavier HTTP w/ Digest auth calls through the reflector. I will probably try this out next, before I bite off more in the native Smart Home Skill space. I am hoping this is approach is much faster and less prone to issues with caching. What I see with my skill today (with http and digest auth) is that the first call takes a bit and will sometimes time out. Subsequent calls with in the next few minutes are much faster and more likely to succeed. I'm not sure why this is this case, but it reeks of caching... somewhere...


No caching on our side, FYI. If it weren't Amazon, I'd suspect a DNS resolution issue on the skill host side. But surely that's not the case...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 07, 2019 12:20 pm
mreyn2005 offline
User avatar
Posts: 161
Joined: Oct 06, 2006

Re: Subscription options

@Jay, probably would want the former, since all the sensors belong to a single station. It would be nice to be able to configure which sensors any given station has. Simpler temperature/humidity/uv/air quality micro stations are also on my list.

https://learn.adafruit.com/adafruit-io-air-quality-monitor/overview

This approach is a bit cheaper and less power hungry than the full blown SkyWeather station. It would be nice to have a few micro stations around the house/greenhouse/indoors.

Any plan to add a standard Sensor (virtual) device type? There are only a few data types to support. Potentially 100's of unit types (watts, volts, amps, lux, ppm, etc) so maybe leave that part a free form input? Even with single sensor support, I could create a group or folder to lump a bunch of station sensors together.

Matt

Posted on
Wed Aug 07, 2019 2:16 pm
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Subscription options

It occurs to me that the GhostXML plugin might work for you (it also accepts JSON), but I'm not positive how it works so you might check that out.

We will probably do a sensor shim device, but it will be a strict sensor type device (one value).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 07, 2019 5:28 pm
mreyn2005 offline
User avatar
Posts: 161
Joined: Oct 06, 2006

Re: Subscription options

We will probably do a sensor shim device, but it will be a strict sensor type device (one value).


That would certainly do the trick.

Thanks!
Matt

Posted on
Fri Aug 09, 2019 7:34 am
mreyn2005 offline
User avatar
Posts: 161
Joined: Oct 06, 2006

Re: Subscription options

@FlyingDiver
I just tried version 0.0.7 but something is amiss.
Attachments
Screen Shot 2019-08-08 at 10.30.42 PM.png
Screen Shot 2019-08-08 at 10.30.42 PM.png (107.41 KiB) Viewed 1325 times

Posted on
Fri Aug 09, 2019 7:45 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Subscription options

mreyn2005 wrote:
@FlyingDiver
I just tried version 0.0.7 but something is amiss.


You should post the log output. But I suspect it's this one: viewtopic.php?f=316&t=22761#p180396

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 09, 2019 8:05 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Subscription options


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 09, 2019 11:51 am
mreyn2005 offline
User avatar
Posts: 161
Joined: Oct 06, 2006

Re: Subscription options

Yup that looks like it. Sorry for posting in the wrong room.

Matt

Who is online

Users browsing this forum: No registered users and 1 guest