I have HA running on my Raspberry Pi 3 equipped with Aeon USB stick. All is well. My problems is finding the right documentation to explain how to properly setup what I am trying to do. Basically, I want to send events to my Server running Eventghost Webserver. For example, to send an event to this server a URL may look like: http://theIP:thePort/?This.is.an.Event.String I have this working but only through trial and error. No idea if this is the right way to achieve what I need. My config file for looks like:
automation:
trigger:
platform: state
entity_id: switch.leviton_unknown_type1a02_id0334_switch_4
state: 'on'
action:
service: notify.EG
data:
message: 'De-Humidifier.On'
notify:
name: EventGhost
platform: rest
resource: 'http://192.168.1.231:88/'
method: GET
message_param_name: 'RaspPi.'
notify:
name: EG
platform: command_line
command: "curl http://192.168.1.231:88/?RaspPi.De-Humidifier.On"
In the above, I am using notify.EG however, notify.EventGhost method works just as well. My questions are:
- Is this the correct way to send a URL to a server?
- Do I have to repeat this for the “Off” state?
- Most important, where can I find complete documentation/Reference that would describe things such as “Platform”, “State” and what values can be used?
Any help would be greatly appreciated