Page 1 of 1

emit event via http post

Posted: 21 Jan 2015 03:23
by shiphrah
Hi,

I would like an external component (not zwave) to trigger some action in HA. Unfortunately the named external component is only capable of doing an http post.

Actually an http post like
http://zwave:8083/ZWaveAPI/Run/devices[ ... .Set(true)
works well, but I need more control and would like to emit an event. Unfortunately something like
http://zwave:8083/ZWaveAPI/Run/emit("my.event")
does not seem to work.

http://zwave:8083/ZWaveAPI/Run/... only seems to work for http get.

Any suggestions?

Thanks

Jürgen

Re: emit event via http post

Posted: 22 Jan 2015 02:17
by PoltoS
/ZWaveAPI/Run/XXXXXXXXXXX = /JS/Run/zway.XXXXXXXXXX

So use JS/Run

Re: emit event via http post

Posted: 22 Jan 2015 22:11
by pofs
What is "emit("my.event")" at all? There's no such function in ZWaveAPI.

Re: emit event via http post

Posted: 23 Jan 2015 11:34
by shiphrah
Thanks!

Well, I was hoping to be able to access the controller like this and send an event to a module. Never mind, I had just started playing around and got some things totally wrong :oops: