[PORT] - Send Events to EventGhost

can anyone help me figure out how to identify the port and Web server IP for adding the app? I guess I haven't crossed this bridge yet. Searched THOROUGHLY for help - not much out there on EventGhost/Hubitat. If I need to do some router config, I could use some help on that too.

I was able to get TRIGGERcmd to work. I'd like to try both and report back.

Once you have eventGhost installed, you would need to add the webserver plugin. Once setup it will use your pc's ip and default to port 80.

1 Like

finally got it to work. thanks

I believe you would be able to do that. You'd need to mess around a bit with EventGhost

Can anyone think of a way to have EventGhost run macros as parts of existing rules? For example, If I have a rule to shut some lights off and I'd like to use it to shut down some applications on my PC via EventGhost as well. I tried adding some code to send global variable changes to event ghost but I couldn't get it to work. I'm a weak programmer and pretty unfamiliar with Hubitat dev documentation.

There are quite a few ways to accomplish this. Since you already have this working with this app here's an option...assuming you just want to activate this EventGhost macro as easily as possible

  • Create a virtual switch and set the AutoOff preference to 500ms

  • In this app, select the virtual switch and set a command prefix. I chose "hubitat" for simplicity.

  • While eventghost is running toggle the switch. You should see the events in the log stream
    image

  • Now you can drag that event from the log and into the Macro on the right
    image

  • Turn on the virtual switch to test.

  • if it works as expected, all you need to do is turn on this switch in any automation/rule you need.

1 Like

eyyy. that's clever. Thanks. I'll try it in a few

works beautifully

1 Like

That's what I was afraid of :slight_smile:

I feel you :smile:

This is a pretty powerful tool. Do a lot of folks use it? I don't see it mentioned too much. Has anyone found a way to secure the communication?

1 Like

I just found this and plan to use it as soon as I get a little free time.

As for securing it. I plan to use Windows Firewall to ONLY allow the Hubitat IP address to talk to it.

Finally had the chance to dive into this. I keep getting a "connect timed out" when I flip the virtual switch in the EventGhost app and nothing shows up in the EventGhost log in Windows. I've tripled check the IP address; it's correct.

Any ideas?

I've not used this in sometime. At last check it worked well. I'll set it up when I get home and see what there is to see.

1 Like

Ok i Just installed the app on my hub configured and my eventghost client started responding right away (it was just sitting there waiting for something to do apparently lol).

I believe you have to configure the eventghost webserver to activate and be listening before this will work. I followed these instructions years ago.

Appreciate the pointer, but I can't even get past step one. I go to File/Options in EG and get an error. Even reinstalled the software and still get an error. I've poked around the internet for pointers, but I'm out of ideas. Not a python guy, so...

EDIT: Found and resolved the known error with File/Options, but still struggling to interpret these instructions since I'm not using IFTTT or ST. Should the HE app, on its own, deliver the Hubitat device event to EG? I'm thinking I should see the HE event in the EG log. But I don't. The log shows everything I'm doing on the PC, but no events from Hubitat. Wondering if I need to use Maker API or the like. I'm clearly missing something.

What os are you using? Perhaps try running in compatibility mode?

I'm using WIndows 10. See my edit above -- solve the File/Options problem -- it's a known issue on github. Was able to use a workaround. But I still can't see HE events in the EG log.

Were you able to get the webserver setup in the eventghost software? I noticed mine was set to port 100 so had to change that in the eventghost app.

This is correct if everythingn is setup you should be seeing the switch events in the eventghost log

image

And you are correct there are many references to ST. Maybe one day ill fix it up to reference HE.

Right click autostart and choose add plugin

image

All the way at the bottom of the window that pops up choose webserver

image

You may need to restart eventghost after configutation.