Page 9 of 10

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Fri Dec 07, 2018 6:50 am
by steinis
yes this need to be an option and used wisely, but sometimes its needed.
Another option would be an action to send all device status to the MQTT broker.

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Fri Dec 07, 2018 9:23 am
by Umtauscher
Well in my experience sending the status information is exactly what the plugin is doing right now?!?

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Tue Dec 11, 2018 10:53 pm
by symo
Does anybody have a good "getting started" guide for this. I've successfully setup the the SmartThings side. I can see messages on my broker from both sides... I would like to just see some simple examples of how to implement this.

Thank you,
Jon

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Thu Feb 07, 2019 2:30 pm
by avdhil
Hi! Thanks for this plugin. So far it works great.
Only one thing. Is there a way to filter out devices to be published. Now al my timers and Sonos timing data is pushed out without a real reason.

Cheers,
Alexander

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Mon Feb 11, 2019 12:51 pm
by steinis
I have a question for the Node red flow for Indigo. Its working fine but I can't get the "indigo-get-device" and "indigo-get-variable" to work?

When I change something I Indigo nothing is happening in node red. Is it using the MQTT or Indigo API to fetch the status? Sending to Indigo and the MQTT part is working just fine BTW.

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Mon Feb 11, 2019 2:42 pm
by Umtauscher
Hi steinis,

I have an example for you. This is a fibaro dimmer module that I use with Indigo with complete integration in node red.
This works bidirectional. I hope this helps to figure it out.

Code: Select all
[{"id":"e90289ac.87357","type":"ui_slider","z":"33101acf.2bc8fe","name":"","label":"Deckenlampe","group":"940199d.ee65ce8","order":1,"width":0,"height":0,"passthru":false,"outs":"end","topic":"brightnessLevel","min":0,"max":"100","step":1,"x":640,"y":40,"wires":[["adef157a.c14e48"]]},{"id":"adef157a.c14e48","type":"indigo-set-device","z":"33101acf.2bc8fe","name":"","controller":"2b8f6f57.a868b8","itemname":"Deckenlampe Dimmer","key":"brightness","value":"","x":920,"y":40,"wires":[[]]},{"id":"d4028546.e6c17","type":"function","z":"33101acf.2bc8fe","name":"Brightness Filter","func":"return {payload: msg.payload.newValue};","outputs":1,"noerr":0,"x":420,"y":40,"wires":[["e90289ac.87357"]]},{"id":"af59ff4.3d1138","type":"indigo mqtt in","z":"33101acf.2bc8fe","name":"","topic":"","qos":"2","broker":"9e13ecef.c73ae","controller":"","itemname":"Deckenlampe Dimmer","itemid":"140509571","state":"brightnessLevel","onlyonchange":true,"valuefilter":"","ignoreretainedmessages":false,"x":180,"y":40,"wires":[["d4028546.e6c17"]]},{"id":"940199d.ee65ce8","type":"ui_group","z":"","name":"Deckenlampe","tab":"f6befa.200ce108","order":1,"disp":false,"width":"6","collapse":false},{"id":"2b8f6f57.a868b8","type":"indigo-controller","z":"","name":"Indigo.voyager95.de","protocol":"http","host":"indigo.voyager95.de","port":"8176","username":"wilhelm","password":"telefax"},{"id":"9e13ecef.c73ae","type":"mqtt-broker","z":"","name":"Indigobroker","broker":"mqttbroker.voyager95.de","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"f6befa.200ce108","type":"ui_tab","z":"","name":"Wilhelm_s Büro","icon":"dashboard","order":1}]

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Mon Feb 11, 2019 2:56 pm
by steinis
Thanks. This is similar to what I have done. Then you use the MQTT for input to node red instead of the "indigo-get-device" and thats fine, but I can't see my variables in the "indigo MQTT". Do you have a solution to fetch variables from Indigo to node red?

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Mon Feb 11, 2019 3:04 pm
by Umtauscher
I have never considered variables to be accesible over an MQTT server. So I didn't miss that.
Maybe you should try using a virtual device for that? (just an idea)

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Tue Jun 04, 2019 7:31 am
by AndyVirus
Is there a way to prevent an Indigo Device from writing to the log and just update the status of the Device?

I have a Smappee power monitor. I just found that hidden away you can tell it to connect to an MQTT broker. I have done so and created a Greensky MQTT Sensor device which subscribes to the topic and parses the value of totalReactivePower. This is published every second (I think it can be delayed if needed in Smappee).

So as it publishes every second it writes the device status to the Indigo log every second which of course is not useful. Any way to not write that device status to a log, only errors?

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Mon Jun 17, 2019 1:34 pm
by emergent
So I've got this installed and I've been able to use it to control my insteon switches in Home Assistant from Indigo. But I feel like I'm not really doing it the most efficient way. Right now, this is what I'm doing:

I create a GreenSky MQTT Switch.

Then I create two triggers. When the MQTT Switch is turned on, one trigger turns on the Insteon switch, and when it's turned off, one trigger turns off the Insteon switch.

However, this doesn't update the MQTT state if I turn the switch on/off with Homekit. So in Home Assistant the device state doesn't update automatically.

So I made a variable for the switch. Then I made two more triggers. When the switch turns on. the variable becomes on. When the switch turns off, the variable becomes off.

Then I have two MORE triggers that turn the MQTT switch on when the variable changes to on, and another that turns the MQTT switch off when the variable becomes off.

Is this really what I have to do for every switch? Is there an easier way?

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Fri Jun 28, 2019 3:55 am
by WouterK
Hi,

I just started with this plugin and I really like it. It is up and running with a device running Tasmota firmware.
The value published by a device running with a DHT11 sensor is:

    {"Time":"2019-06-28T10:43:28","DHT11":{"Temperature":21.4,"Humidity":54.0},"TempUnit":"C"}

I am able to get the temperature value setting by setting the payload extraction to: DHT11->Temperature.
It is possible to get the Humidity value also?

I tried several things but that did not work out.
A second device reading the Humidity, DHT11>Humidity, did work but then the temperature was not read anymore

Thanks in advance

Regards,

Wouter

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Fri Jun 28, 2019 2:15 pm
by cuhouse
Wouter,

I set it up using the device "MQTT Weather Sensor" within the plugin.

Screen Shot 2019-06-28 at 3.58.17 PM.png
Screen Shot 2019-06-28 at 3.58.17 PM.png (47.51 KiB) Viewed 621 times


Screen Shot 2019-06-28 at 4.04.25 PM.png
Screen Shot 2019-06-28 at 4.04.25 PM.png (97.79 KiB) Viewed 621 times


Screen Shot 2019-06-28 at 4.07.55 PM.png
Screen Shot 2019-06-28 at 4.07.55 PM.png (4.42 KiB) Viewed 621 times


Hope this helps.

Jody

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Fri Jun 28, 2019 2:27 pm
by WouterK
Hi Jody,

Thanks for the (quick) reply and it certainly did help!
Device is now getting both the temperature en humidity values.

Btw. using this one in the garage also ;-)
Thanks again.

Regards,

Wouter

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Tue Jul 16, 2019 6:30 pm
by farberm
I am trying to get this setup but I am having problems getting the topic info correct???

SetUp: Generac Generator running genmon which has a MQTT integration module
MQTT Server running on my Synology NAS IP 192.168.2.113
I know that MQTT Server is running because I can connect to it from MQTT.fx on my laptop (see screenshot with topics below)

Configured MQTT (see below) Retain SB msg etc

I created the following MQTT Sensor (see below) but get the following error...

Starting plugin "GreenSky MQTT Bridge 4.2.1" (pid 23771)
GreenSky MQTT Bridge Debug logger debugging enabled
Started plugin "GreenSky MQTT Bridge 4.2.1"
GreenSky MQTT Bridge Debug startup called
GreenSky MQTT Bridge Connecting to the MQTT Server...
GreenSky MQTT Bridge Connected!
GreenSky MQTT Bridge Debug Connected with result code 0
GreenSky MQTT Bridge Debug Subscribing to
GreenSky MQTT Bridge Debug set([<type 'exceptions.ValueError'>, ValueError('Invalid topic.',), <traceback object at 0x1096579e0>])
GreenSky MQTT Bridge Error Exception trapped:Invalid topic.
GreenSky MQTT Bridge Debug Started processing update for
GreenSky MQTT Bridge Debug Started processing update for
GreenSky MQTT Bridge Debug json ready: {"deviceName": "AP_44:d9:e7:f6:ac:b7", "state": "nStations_5", "newValue": "7", "oldValue": "0"}
GreenSky MQTT Bridge Debug Publishing new Value for : {"deviceName": "AP_44:d9:e7:f6:ac:b7", "state": "nStations_5", "newValue": "7", "oldValue": "0"}
GreenSky MQTT Bridge Debug Message sent: | {"deviceName": "AP_44:d9:e7:f6:ac:b7", "state": "nStations_5", "newValue": "7", "oldValue": "0"}
GreenSky MQTT Bridge Error Exception trapped:Invalid topic.



Any help would be appreciated...

Re: GreenSky MQTT Bridge Plugin (SmartThings Bridge)

PostPosted: Wed Jul 17, 2019 8:23 am
by danalwebb
Having just enabled the MQTT Bridge, I can confirm similar errors to the previous poster. In my case, there is a constant stream of "Exception trapped:Invalid topic" errors being written to the Eventlog. With debugging enabled, it appears that any update to/from an Indigo device is generating the message which makes me suspicious that there is some systemic problem with my plugin install. I don't see a wiki page or other helpful documentation for the MQTT Bridge so I am left to wonder if it is being used for anything more than a "experimental plugin"? I could certainly make use of it for the box of Sonoff devices laying around if it can be made to work. That being said, has anyone else seen these sort of messages:


Code: Select all
   GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      json ready: {"deviceName": "Nest_Thermostat.Theater", "state": "seconds_since_last_connection", "newValue": "8", "oldValue": "7"}
   GreenSky MQTT Bridge Debug      Publishing new Value for : {"deviceName": "Nest_Thermostat.Theater", "state": "seconds_since_last_connection", "newValue": "8", "oldValue": "7"}
   GreenSky MQTT Bridge Debug      Message sent:  | {"deviceName": "Nest_Thermostat.Theater", "state": "seconds_since_last_connection", "newValue": "8", "oldValue": "7"}
   GreenSky MQTT Bridge Error      Exception trapped:Invalid topic.

   GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      json ready: {"deviceName": "Pool.Exterior.Sensor.Luminance", "state": "luminance.ui", "newValue": "3145.57467743", "oldValue": "2448.49938911"}
   GreenSky MQTT Bridge Debug      Publishing new Value for : {"deviceName": "Pool.Exterior.Sensor.Luminance", "state": "luminance.ui", "newValue": "3145.57467743", "oldValue": "2448.49938911"}
   GreenSky MQTT Bridge Debug      Message sent:  | {"deviceName": "Pool.Exterior.Sensor.Luminance", "state": "luminance.ui", "newValue": "3145.57467743", "oldValue": "2448.49938911"}
   GreenSky MQTT Bridge Error      Exception trapped:Invalid topic.

   GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      json ready: {"deviceName": "Geofence.Home", "state": "minutessincelastArrival", "newValue": "91", "oldValue": "90"}
   GreenSky MQTT Bridge Debug      Publishing new Value for : {"deviceName": "Geofence.Home", "state": "minutessincelastArrival", "newValue": "91", "oldValue": "90"}
   GreenSky MQTT Bridge Debug      Message sent:  | {"deviceName": "Geofence.Home", "state": "minutessincelastArrival", "newValue": "91", "oldValue": "90"}
   GreenSky MQTT Bridge Error      Exception trapped:Invalid topic.

  GreenSky MQTT Bridge Debug      Started processing update for
  GreenSky MQTT Bridge Debug      Started processing update for
   GreenSky MQTT Bridge Debug      json ready: {"deviceName": "Rachio_Sprinkler_Controller", "state": "t2forecast_dewPoint.ui", "newValue": "75.0 \u00b0F", "oldValue": "73.0 \u00b0F"}
   GreenSky MQTT Bridge Debug      Publishing new Value for : {"deviceName": "Rachio_Sprinkler_Controller", "state": "t2forecast_dewPoint.ui", "newValue": "75.0 \u00b0F", "oldValue": "73.0 \u00b0F"}
   GreenSky MQTT Bridge Debug      Message sent:  | {"deviceName": "Rachio_Sprinkler_Controller", "state": "t2forecast_dewPoint.ui", "newValue": "75.0 \u00b0F", "oldValue": "73.0 \u00b0F"}
   GreenSky MQTT Bridge Error      Exception trapped:Invalid topic.