Closed shaonianzhentan closed 1 year ago
Hi @shaonianzhentan,
I'm not sure about what is the issue you are reporting. This library allows you to consume events from the Hass instance server using WS communication. The way you can consume these events is on the Readme: https://github.com/vicfergar/HassClient#event-subscription
Thank you for your reply I customized an event and I want to trigger it instead of subscribing to it
Ok, I didn't notice that they have included an fire_event command in the WS API. Currently there is no specific methods to fire events in the API, but you can do it using raw commands feature: https://github.com/vicfergar/HassClient#raw-commands
Check WebSocket API docs from HASS to see how the command should contains: https://developers.home-assistant.io/docs/api/websocket#fire-an-event
I look forward to you adding this featureļ¼Thanks again
I have integrated fire event feature in the branch https://github.com/vicfergar/HassClient/tree/feature/update_ws_api
Again thanks for HassClient This project is great and has helped me a lot But I didn't find a way to trigger the event