I was just looking into a replacement for IFTTT to get events from Sleep as Android to HA when I found this: [COMPLETE] Webhooks without IFTTT
Their latest beta builds include support for custom webhooks and MQTT!
It shouldn’t take long to be available in Play store.
I will for sure start using the new webhook feature soon.
I went with the webhooks because my MQTT server is not externally facing so not sure, its a beta feature so may need to report the bug so the dev can fix it.
Hello, I’m the developer of Sleep as Android, sorry fro the issues. We did not yet test the MQTT feature as it is now BETA and we are waiting for feedback. Can you please let me know the URL of your MQTT server you can’t type in the field? Big thanks for your help…
Many thanks for pointing the MQTT URL entry issue out. I was able to reproduce this and a fix is heading to BETA just now… many thanks, please let us know if this new feature is working for you…
This is great, my only issue is my MQTT server is not exposed externally so I opted to do a webhook. I was actually trying to think of a way to make an integration that would work with the webhook, but for now the automation with input_text works perfect
Hi,
I’m trying to get this working to trigger a light to slowly brighten over 30 minutes. I have everything working except the webhook. I can make it trigger using curl POST but can’t get it to trigger from Sleep As Android (SAA). I think it’s because SAA is sending JSON data and the webhook is just expecting a POST. How do I get it to accept “ALARM_ALERT_START” as the trigger? It’s the only event I need to track. Sorry if I’m not quite using the right terminology, I’ve only just started using HA and I’ve never used webhooks before!
Thanks
Michael
[edit] I’m an idiot, the URL is case sensitive so when my phone was autocorrecting /api/webhook to /API/webhook it was breaking everything!
@Vin2 All you need to do is setup a automation with a new webhook path. From there you can process the data as you wish. Here is an example that I am using where all I am doing is storing the event names in a input_text so I can use them in other automations. I only update this input_text via this automation.
Just make sure to use your domain or nabu casa remote URL to replace www.example.com and then replace MY_RANDOM_WEBHOOK_ID with whatever you used in your automation.
Remember to update the entity ID of the input_text helper you ahve created
some links to help out, I also included a secrets link in case that confused you with earlier instructions. make sure to read all the links too all the answer you seek are there.
Hi can you give me a configuration exemple of mqtt for sleep as android ti integrate sensor??thanks you. I tryed to do a sensor but state Is Always unknown. I write in this mode: