It is automation of the home, housework or household activity. Home automation is the residential extension of building automation. If Debug > 0 Then hs.writelog(“Domoticz”, control & ” | ” & id & ” | ” & status) Select case controlĬase “group” ‘ Switch a group, because a scene can only be switched OnĮnd Select Dim finalurl = hs.The Home Automation Network Main Deals Trade ‘ Script get 3 parameters from Event and create an url to control the Domoticz devices Sub Main(ByVal parms as Object)ĭim results() as String = scriptinput.Split(“|”) ‘ Script get 3 parameters from Event and create an url to control the Domoticz devices Or in my case I created also a scene in Domotcz, with type “group” (because a group can be switched to On AND Off, while a scene can only be switched On), that turn all switches to the same status (On or Off): Scipt Paramters contains 3 variables, seperated by the “more” character. How to enter the 3 variables: In my case the vb.NET script will be run from an event: To control the relay from another application, it has to run this url. The JSON command to turn that relay to On, will be: 7&switchcmd= On The idx for my relay (named “Relais 1”) = 7. IsDimmer: false, Name: “Relais 1”, SubType: “Impuls”, Type: “Lighting 1”, idx: “7” You can see this in via Setup-Devices or run the following url in your browser to get all the id numbers: Possible result: When the switch is working, the relay is switching on or off, you can try to control the same switch via the JSON command.įirst you need to know the id number of the switch. Select here (one of) the line(s) that is marked with (OUTPUT) GPIO: choose the GPIO pin you used in your hardware setup page. Hardware: GPIO port (as named while the GPIO port is added on the dashboard of Domotcz).
There are a lot of tutorials how to setup the Raspberry Pi with an Apache webserver, were you can run Python scripts. I bought a pcb with 8 relays on it, a breadboard and some wires (low investment) to create a setup. How to controll the relais from Homeseer.Could it be working with a speaker as well? The most of the tutorials in the internet explaining how to switch a light. How can I use the Pi to replace the XAP800?.Replacing the XAP800 is one of the projects.
This year I want to finish some projects and accomplish my ideas before buying new stuff. The energy usage of this device is quite low, say between 0.5 and 5 Watt. Most of my current home automation hardware isn’t compatible with Domoticz, so the Pi disappeared in the closet. I used it as a Spotify player, I used it as a webserver and even I installed Domoticz to look around what the possibilities are.
I don’t have to tell the advantages are of such a device.
Some time ago I bought the Raspberry Pi 2. I tried to setup the voice recognition as well, but it’s not working well in my situation, so the XAP800 is just a big speaker switch that consume a lot of energy. The device is great and even with the ZMC script to control it from Homeseer, I want to reduce the energy usage. The energy usage of the XAP800 mixer is in standby around 20-25 Watts, well, that’s too much for doing ‘nothing’.