If you use the HASS Configurator there’s an entry in the 3-dot-menu on the right labelled “Observe events”. There you can enter the data for your HASS installation, press the “Connect” button, and if everything went well all events will appear as they are happening.
Be aware, that the configurator tries to guess the correct endpoint. But depending on your setup you may have to use wss if you are using SSL, and maybe even another hostname + port. That just depends on your installation. And if you’re on 0.77.x you need to have the api_password enabled in case you haven’t done that until now.
Thanks for the tip. I really think that the Configurator is brilliant. It allowed me to find the correct entity_id.
However, I could not use the Oberve Events because I was unable to connect to the web socket. Even when I was copying and pasting from my configuration file (I enabled the samba share), I did get a “socket closed” message.
Finally I could not see the automations.yaml file in the configurator. I had to go edit it from the samba share.
Are you using the hassio? If you install the addon from the add-on store pretty much everything (including editing the yaml-files) should work out of the box. Only the event observer would need to point to the URL you are also using the access the HASS UI. So if for example you open HASS at https://mydomain.com, then the URL for the oberserver would be wss://mydomain.com/api/websocket.
Yes I do.
The only difference with the example you gave is that I access the server directly (without a domain name, since it is a local - aka on my private network- installation)
Then without SSL it would be something like ws://192.168.x.y:8123/api/websocket. I don’t have a hassio VM to verify this, but this should actually be working.