Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Any way to send events from EG to SmartThings?

If you have a question or need help, this is the place to be.
Post Reply
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Any way to send events from EG to SmartThings?

Post by therealbiglou »

I've got this smart app working to send events from SmartThings to Eventghost: https://community.smartthings.com/t/sen ... host/22473

What I would like to do, however, is also send events from EventGhost to SmartThings. The reason is that sometimes things get out of sync. I can use SmartThings to turn on/off my TV, but if I use another method to turn it on/off, it doesn't update the state in SmartThings. Because of this, the controls don't always work.

Is there a way to update SmartThings based on actions in EventGhost?
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Any way to send events from EG to SmartThings?

Post by yokel22 »

Maybe i'm misunderstanding what your wanting. But can't you use the REST api here? http://docs.smartthings.com/en/latest/s ... part2.html. I've not used smartthings but that seems pretty odd that it wouldn't update the status of a device when it detects a device change. Or is it that it's just not being forwarded through the smartApp?
therealbiglou
Experienced User
Posts: 126
Joined: Sat May 19, 2012 4:33 am

Re: Any way to send events from EG to SmartThings?

Post by therealbiglou »

The smart app is one way only. It only sends things to EventGhost, but it doesn't receive anything back.
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Any way to send events from EG to SmartThings?

Post by yokel22 »

Yes, but you could use the API i linked to to send info to the smartthings hub. It would be a bit more complex than most REST api's as they are using a token based system & you would need to install the Oauth2 module as a dependancy. I can try & explain further, if you decide it's worth your time to persue it.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Any way to send events from EG to SmartThings?

Post by krambriw »

Even simpler, use MQTT.

See the link below how to setup and link a MQTT broker to SmartThings. Then use the MQTT Client in EG to get a possible 2-way communication EG <-> SmartThings

https://home-assistant.io/blog/2016/02/ ... Assistant/
Post Reply