Question

I want to do simple automation in my home like on/off lights to explore more about automation. I am a software engineer so I don't know much about hardware to use in this process. I want to do this task in php. It would be very great for me if anybody can help me to achieve this task. Please suggest me any other language if PHP is not suitable for this task.

Was it helpful?

Solution

I did this years ago working with a vendor at CES called Exceptional Innovations. They have small devices you can place between the plug and appliance that connect to home network and you can access via web service.

I'm not sure if they still do it but found this article: http://www.cepro.com/article/using_web_services_to_control_devices_through_vista_media_center/

It was Life|ware WSD. You might check with other home automation vendors and see if they expose an API, but note the media server in your home will likely need a static IP address for Internet connection, then you will need to route requests on desired port to that computer in your router configuration if you want to access from the outside world.

If you are coding in-house, then your laptop/pc will be connected to same network as media server so you can just reference it via interal IPs. If Linksys router, for example, it might default to 192.168.1.3 (assuming .3 is address assigned when device requested IP).

OTHER TIPS

PHP is a serverside scripting. You need to use some other language such as C. Unless you want to switch the lights of remotely (incase you forgot to do it :P ).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top