emit event via http post

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
shiphrah
Posts: 12
Joined: 21 Jan 2015 02:27

emit event via http post

Post 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
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: emit event via http post

Post by PoltoS »

/ZWaveAPI/Run/XXXXXXXXXXX = /JS/Run/zway.XXXXXXXXXX

So use JS/Run
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: emit event via http post

Post by pofs »

What is "emit("my.event")" at all? There's no such function in ZWaveAPI.
shiphrah
Posts: 12
Joined: 21 Jan 2015 02:27

Re: emit event via http post

Post 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:
Post Reply