![]() Select "Switch Input" and enter the IDX found earlier in Domoticz. It should have an IP address:įrom here on, you should start using to connect to your ESP device. If all went well, the following screen should be shown:Ĭonfigure at least the following settings to get you started:Ĭontroller Port = your Domoticz server port, default should be 8080Ĭlick the "Tools" button and Click "Connect" Connect to this access point and browse to. If you have your ESP board loaded with ESP Easy firmware, powerup the unit and an Access point named "ESP_0" should appear. Navigate to menu "Switches" and your device should be listed: Name this device "Demo" and click add device. In this case the IDX number is 250.Ĭlick the little green button with the arrow pointing in the right direction to add this device This is the unique reference to this device and we need it later on to configure the ESP Easy module. Your new switch device should be listed here ![]() Now we have to add the device in Domoticz to become active.įrom the main Domoticz Menu, Select Setup -> Devices The new hardware should be in the list and there should be a button "Create Virtual Sensors"Ĭlick this button and choose Sensor Type "Switch" ![]() This step has to be done only once in your setup.įrom the main Domoticz Menu, Select Setup -> HardwareĪnd add following hardware to you system: To be able to communicate with devices like the ESP, we have to add virtual hardware to Domoticz. There an integer needs to be defined with a logical name. This need to be done in Domoticz going to settings -> more options -> user variables. First we need to setup an user variable the remembers the last dimm setting of the dimmer. 7 Another way to set up Domoticz to control an ESP Easy To enable X10 dimmer modules in Domoticz we need to do a litlle more.the light) to Domoticz reflect the status of the relay (i.e. Please read the Heyu manual in the terminal for more nice functionality. The physical switch launch an event which toggle the relay and have to send the state of the relay (i.e. math.ceil ( DimstandDelta / 14 * 22 )) commandArray = tostring ( uservariables - DimstandDelta ) end return commandArray math.ceil ( DimstandDelta / 14 * 22 )) commandArray = tostring ( uservariables + DimstandDelta ) elseif ( devicechanged = 'Set Level' and tonumber ( otherdevices_svalues ) < uservariables ) then DimstandDelta = uservariables - otherdevices_svalues os.execute ( 'sudo -u pi /home/pi/heyu-2.10/heyu dim i1 '. ~/domoticz/scripts/lua/script_device_a commandArray = if ( devicechanged = 'On' ) then os.execute ( 'sudo -u pi /home/pi/heyu-2.10/heyu on i1' ) elseif ( devicechanged = 'Off' ) then os.execute ( 'sudo -u pi /home/pi/heyu-2.10/heyu off i1' ) elseif ( devicechanged = 'Set Level' and tonumber ( otherdevices_svalues ) > uservariables ) then DimstandDelta = otherdevices_svalues - uservariables os.execute ( 'sudo -u pi /home/pi/heyu-2.10/heyu bright i1 '. I used this compiler to compile the software. The raspberry installation does not come with a compiler. This website will explain you how that works in more detail. Part 2: Enabling Domoticz to send X10 command using Heyu softwareįirst Heyu software needs to be installed on the computer. If you have multiple USB devices please also read the page for persistent USB devices on this wiki. The serial to USB converter delivered with the CM11a is supported by the raspberry PI already. The connnection to the computer needa to be done with a serial to USB converter. ![]() The CM11a was sold under various brand names and with various powerline connections. Like always before doing an installation on a live system make a backup of the domoticz.db and better also a copy of the whole SD card (Image) before starting. I have got it workling together with a Raspberry PI. The CM11a is not supported from Domoticz directly but by following the below explanation it works nicely. The third part enables Domoticz to listen to commands that are send over the powerlines by X10 modules. The second part of this page is to enable Domoticz to send X10 commands over the powerlines with the CM11a module. ![]() The purpose of the the first part is to connect the hardware.
0 Comments
Leave a Reply. |