i’m trying to get a light to flash when my mobile phone rings (this is the ultimate goal).
here is what i’m currently trying… I’ve dumbed it down for testing purposes, i’m just changing the brightness of a light for now as i don’t know how to get the light to flash either, but that’s another problem…
installed tasker (tester) on my mobile phone
set an event for when my phone rings (caller = C:ANY , Priority = Highest)
Unfortunately Home Assistant moves rapidly, and videos from 3 months ago can mislead you, never mind ones from years ago.
I use the webhook trigger with Tasker. This also means you’re separating out the logic of how your home works from Tasker, which makes things far easier to work with.
This is my automation - I fire an event so that I can use the one webhook with many activities, such as here.
On the Tasker side I use the HTTP Request action, POST for the Method, the webhook URI for the URL (https://my-homeassistant.example.com/api/webhook/SomeLongSecretStringGoesHere), Content-type: application/json for the Headers, and then a JSON formatted body.
Thanks, I guess my understanding of webhooks just doesn’t exist lol I thought I was trying to get webhooks to work via tasker lol.
I’m going to have to spend some time understanding all this and getting it all to work properly as I have a feeling I may end up using it alot in the future… Back to the drawing board I guess for a lot of trial and error and learning…
Thanks all I’ll post back when I start to move forward with this
yes i have a multi sensor working through MQTT however again i dont understand how to get it working… it just works… pot luck to be honest… so i think my biggest problem is i dont understand what im doing/trying to do and i’m struggling to find documentation that i understand to learn from, whether it’s written or my preferred method video.
my whole setup has to be able to run without access to the internet, thats a must. after that, when my mobile phone rings (ideally limited to a selection of contacts and all unknown/unrecognized numbers), then a light will flash and continue to flash untill i answer my phone or clear the missed call alert. what the best, easiest way to accomplish this is, I have no idea.
I knew about tasker for android and was reminded of it in another post where i was also told that webhooks would work in my situation, i thought i understood webhooks but it turns out i know nothing of them and in all honestly i’m struggling to work out parts of it, from what I think i understand my webhook is made up by me and consists of “https://my.hass.io.ip:8123/api/webhook/this_bit_i_make_up_to_be_unique?some_json_code_here”
Is there any way I can break it down to see if tasker is sending the webhook and if ha is receiving it? Then I can maybe assertain where the problem is.
i tried once, but it lost me… starting to see a trend here huh…
i think so, i know i did have remote access set up via duckdns but i removed all of that a while ago, think it stopped working and there was another method i switched to that used the cloud, though i may be wrong here.
though if this is to be internal do i still need to forward the port? (sorry if its a daft question)
i’ve looked through my logs and cant find anything like what you posted for webhooks not even similar.
thank you for your patience with me, i know it cant be easy.
I’ve changed the tasker address to include my HA ip and port 8123 (if i type that into my browser i get to the password page for HA ) still no joy and no reports in HA