I have found that webooks are, by far, the easiest to use in most scenarios.
This post by @masterkenobi is what helped me get it working.
I have also attached some Tasker examples. You will need to create two variables and for my examples to work,%HASSIO_SERVER and %WEBHOOK_ID
where:
%HASSIO_SERVER = https://yourdomain.duckdns.org
and
%WEBHOOK_ID = same_string_as_“webhook_id:”_in_the_automation
Pro tip 1: webhooks don’t require authentication so use a very hard to guess string for webhook_id (mine are 100 character randomly generated strings)
Pro tip 2: don’t use # or % in the webhook_id (Home Assistant doesn’t like # and Tasker doesn’t like %)
Obviously, you will also need to change the entries in the examples to reference items that exist in your Home Assistant environment. Hope these help.
Webhook_Automation.tsk.xml (1.7 KB)
Webhook_Command.tsk.xml (2.2 KB)
Webhook_Scene.tsk.xml (1.6 KB)
Webhook_Script.tsk.xml (1.6 KB)