I’m running Homebridge on a Raspberry Pi which is connected to my home router.
I want to create a very basic virtual switch that is visible in Homekit that switches state when a URL is visited. So basically whenever I open a specific URL on my phone, the switch state in Homebridge and Homekit goes from OFF to ON momentarily, I can setup automations in Homekit based on that.
So for example, when I open a certain URL in my phone using a link, the switch changes state and accessories are controlled.
I have installed one of the various “http switch” plugins. I’ve setup the switch and I can see that in HomeKit. However I’m really a beginner and I’m not sure how to setup the web server side of it. What URL should I put into host?
I don’t have a website or domain so I’m OK using a local website that can only be opened while on my own Wi-Fi, but how do I set that up. E.g. my Raspberry PI is 192.168.1.150, so can I use that? Can I use something like 192.168.1.150/triggerswitch
I’m just not sure how to set that up, please can anyone help? Thanks!
Hi,
I’m running Homebridge on a Raspberry Pi which is connected to my home router.
I want to create a very basic virtual switch that is visible in Homekit that switches state when a URL is visited. So basically whenever I open a specific URL on my phone, the switch state in Homebridge and Homekit goes from OFF to ON momentarily, I can setup automations in Homekit based on that.
So for example, when I open a certain URL in my phone using a link, the switch changes state and accessories are controlled.
I have installed one of the various “http switch” plugins. I’ve setup the switch and I can see that in HomeKit. However I’m really a beginner and I’m not sure how to setup the web server side of it. What URL should I put into host?
I don’t have a website or domain so I’m OK using a local website that can only be opened while on my own Wi-Fi, but how do I set that up. E.g. my Raspberry PI is 192.168.1.150, so can I use that? Can I use something like 192.168.1.150/triggerswitch
I’m just not sure how to set that up, please can anyone help? Thanks!