Difference between revisions of "Real world example"

From LinuxMCE
Jump to: navigation, search
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<p>Here's an example for setting up a low-cost smart home setup based on X10.  The equipment we mention will cost under $1,000, although the procedure is exactly the same with a $100,000 high-end based on Lutron, Vantage, EIB, etc.  So, please read the example regardless of your system type, so you understand the techniques.</p>
+
[[Category: Tutorials]]
 +
[[Category:User Setups]]
 +
[[Category:Automation]]
 +
[[Category:X10 User Setups]]
  
<p><b>EXAMPLE: Adding other devices</b></p>
+
{{versioninfo}}
 +
<p>Here's an example for setting up a low-cost smart home setup based on X10.  The equipment we mention will cost under $1,000, although the procedure is exactly the same with a $100,000 high-end based on Lutron, Vantage, EIB, etc.  So, please read the example regardless of your system type, so you understand the techniques.</p>
  
<p>Example: You have 2 http://www.globalcache.com which give you Infrared control of you're a/v equipment, extra serial ports to plug other stuff into, ttl inputs and relays.  You have some tv's and stereo's to control, and also a CM11A module to control X10 devices, plus some X10 lights and thermostats.  You will plug the CM11A into one of the rs232 serial ports on the gc100.  You also have an alarm panel with a serial interface, some squeeze box audio players, and some network cameras.</p>
+
===List of devices===
 +
As an example, here is my list of devices:
  
<p>After specifying [[Basic Info]].  Analog cameras do need some sort of interface device, like a camera capture board, which you must first add to the interfaces page.  Add the interface devices first on the interface page, and then the devices they control on the respective pageIf you want to add EIB lights (on the lights page), you won't be allowed to do that until you first add the EIB interface on the interfaces page, because an EIB light cannot be used with an interface. If you add interfaces for both an EIB Lighting system, and an X10 lighting system, then on the lighting page you will be able to add both types of lights, and the 'Controlled Via' field will show you what interface is being used. This means with LinuxMCE all devices, like lights, are merged together regardless of their type. When you create a lighting scenario, you will see all your lights in one checklist, even if some are X10 and others are Lutron.</p>
+
*Two 2 [[gc100|Globalcache gc100 Infrared controls]], giving Infrared control of A/V equipment, extra serial ports, ttl inputs and relays.
 +
*TV's and stereo's
 +
*A [[CM11A]] module to control X10 devices, lights and thermostatsYou will plug the CM11A into one of the rs232 serial ports on the gc100.
 +
*An alarm panel with a serial interface.
 +
*Squeeze box audio players.
 +
*Network cameras.
  
<p>Back to our example: Plug one of your gc100's into the network, and click the 'add gc100' button on the interface page.  gc100's are treated special because they are IP-based, but their network configuration is a bit different and does not allow them to be plug-and-play so you have to click that button to tell LinuxMCE you plugged a new one in, causing LinuxMCE to look for it.  Once you got the message that it was found and configured, click on the Interfaces page again to refresh it--now you'll see it there.  Maybe give it a descriptive name so you can remember which is which, and click the 'save/update' button.  Now plug in the 2nd gc100, and repeat.  Next choose 'Add Devices' and add the CM11A.  Like all RS232 devices, it is not plug and play, you must add it manually.  Repeat for the alarm panel.  In both cases, the Controlled Via devices is the Core, since that's where the software drivers will be run.  But, when you go to choose the port, it only shows the Core's internal serial ports, and you want to plug it into one of the ports on the gc100.  The extra serial ports on the gc100 will appear as serial ports on the Core.  So, click 'Wizard', 'Restart' and 'quick reload router'.  That causes the DCE Router to reload the list of devices in the house so it sees the new gc100's you added, and adds the ports to the Core.  Click again on the link for the Interfaces page to refresh it, and now you can choose the gc100 ports for the CM11A and alarm panel.  Note the serial ports appear as [gc100 device #]_[port on gc100].  The gc100 device # is shown on the interfaces page, and ports are numbered with the first serial port being 0.</p>
+
===Specify [[Basic Info|basic info]]===
  
<p>Next, add your tv's and stereo's on the [[AV Devices]] and indicate how they are connected (which AV inputs). If your Sony VCR's audio output is connected to the JVC Receiver, and the video output to the Samsung Plasma, you will add all 3 devices, then click the 'Edit' link next to the VCR's 'A: V:'. Choose the Receiver as the Audio Device, then choose the input on the Receiver the VCR is connected toIf, after choose the receiver, you see that the Receiver's inputs are not shown, click the 'a/v properties' for the ReceiverYou can also click the 'Connection Wizard' link to make the connections visually, one room at a time.</p>
+
*Analog cameras do need some sort of interface device, like a camera capture board, which you must first add to the interfaces page.
 +
:*Add the interface devices first on the interface page, and then the devices they control on the respective page.
 +
*If you want to add EIB lights (on the lights page), you won't be allowed to do that until you first add the EIB interface on the interfaces page. An EIB light cannot be used without an interface.
 +
:*If you add interfaces for both an EIB Lighting system, and an X10 lighting system, then on the lighting page you will be able to add both types of lights, and the 'Controlled Via' field will show you what interface is being usedThis means with LinuxMCE all devices, like lights, are merged together regardless of their typeWhen you create a lighting scenario, you will see all your lights in one checklist, even if some are X10 and others are Lutron.
  
<p>If your model is not in the database you will need to add it.  After adding it, click the 'a/v properties' button to specify information about the device, and the 'ir/gsd codes' button to specify infrared codes or the commands if its a 'Generic Serial Device', like something controlled with RS232 or EthernetIf the I/R codes for your device aren't listed or don't work, you will click the i/r button and either [[Learning/typing my own code]] from a source like www.remotecentral.comYour devices and I/R codes will automatically be sent to LinuxMCE and added to the master database for other users unless you uncheck the boxIn the 'controlled via' chose whichever one of the gc100's has the infrared emitter attached for that device.</p>
+
*Plug one of your gc100's into the network, and click the 'add gc100' button on the interface page.  :gc100's are treated special because they are IP-based, but their network configuration is a bit different. They are not allowed to be plug-and-play, so you have to click the button to tell LinuxMCE that you plugged a new one in, signalling LinuxMCE to look for it.  Once you get the message that it was found and configured, click on the Interfaces page again to refresh it -- you should now see it listed. Give it a descriptive name and click the 'save/update' button.  Now plug in the 2nd gc100, and repeat.
 +
*Choose 'Add Devices' and add the CM11ALike all RS232 devices, it is not plug and play; you must add it manually.
 +
*Repeat for the alarm panel.
 +
:*In both cases, the Controlled Via devices is the Core, since that's where the software drivers will be run. When you are asked to choose the port, it only shows the Core's internal serial ports. Yet, you want to plug it into one of the ports on the gc100, though. The extra serial ports on the gc100 will appear as serial ports on the Core after a reload. So, click 'Wizard', 'Restart' and 'quick reload router'That causes the DCE Router to reload the list of devices in the house so it sees the new gc100s you have added, and adds its ports to the Core. Click again on the link for the Interfaces page to refresh it, and now you can choose the gc100 ports for the CM11A and alarm panelNote the serial ports appear as [gc100 device #]_[port on gc100]. The gc100 device # is shown on the interfaces page, and ports are numbered with the first serial port as 0.
  
<p>Turn in and plug on your Squeeze Boxes and accept the default 'DHCP network' setting.. LinuxMCE will automatically recognize them and configure them.  You will see a confirmation message on all the orbiters and be asked to pick the room they're in. Refresh the A/V page to see the Squeeze Boxes and indicate how you connect them to your stereo system.</p>
+
*Add your TVs and stereos on the [[AV Devices]] and indicate how they are connected (i.e. which AV inputs).
 +
:*If your Sony VCR's audio output is connected to the JVC Receiver, and the video output ic connected to the Samsung Plasma, you will add all 3 devices.
 +
::* Click the 'Edit' link next to the VCR's 'A: V:'. Choose the Receiver as the Audio Device, then choose the input on the Receiver to which the VCR is connected. If, after choosing the receiver, you see that the Receiver's inputs are not shown, click the 'A/V properties' for the Receiver.  You can also click the 'Connection Wizard' link to make the connections visually, one room at a time.
 +
:*If your model is not in the database you will need to add it. After adding it, click the 'a/v properties' button to specify information about the device, and the 'IR/GSD codes' button to specify infrared codes, or the commands to specify if it's a 'Generic Serial Device' (like something controlled with RS232 or Ethernet).  If the I/R codes for your device aren't listed or don't work, click the I/R button and either [[Learning/typing my own code|learn by trial and error or find out the code]] from a source like [http://www.remotecentral.com www.remotecentral.com].  Your devices and I/R codes will automatically be sent to LinuxMCE and added to the master database for other users, unless you uncheck the box.  In the 'controlled via' option, choose whichever gc100 has the infrared emitter attached for that device.
  
<p>On the [[Media Directors]], drag and drop your devices on the maps you upload.  You'll need to do a 'regen orbiter' followed by a 'quick reload router' before you can use the floorplans.</p>
+
*Turn in and plug on your Squeeze Boxes and accept the default 'DHCP network' setting.  LinuxMCE will automatically recognize them and configure them.  You will see a confirmation message on all the Orbiters and will be asked to specify the room each Squueze Box is in. Refresh the A/V page to see the Squeeze Boxes. Indicate how you connect them to your stereo system.
  
<p>Now let's test the devices.  Do another 'quick reload router' so DCERouter sees these new devices.  When DCERouter sees the new SqueezeBoxes, it will automatically create some Media Scenarios for you to listen to music on them.  Go back to a device, like a light, click 'ADV' to go to the advanced page, or go there manually by choosing [[Advanced Pages Devices]] from the menu.  Click 'Send command to device', and choose a command.  If it doesn't respond, click the 'Follow Log' link to display a popup showing activity for that device.  Now try again and see if the device is reporting any errors in the log.  You can select 'Advanced', 'Devices', select your Core or Hybrid in the tree on the left, and click 'DCERouter'.  Then follow DCERouter's log to be DCERouter sees the new CM11 software module and is routing commands to it.</p>
+
*On the [[Media Directors]], drag and drop your devices on the maps you upload.  You'll need to do a 'regen orbiter' followed by a 'quick reload router' before you can use the floorplans.
 +
:*Test the devices.  Do another 'quick reload router' so DCERouter sees these new devices.  When DCERouter sees the new SqueezeBoxes, it will automatically create some Media Scenarios for you to listen to music on them.  Go back to a device, like a light, click 'ADV' to go to the advanced page, or go there manually by choosing [[Advanced Pages Devices]] from the menu.  Click 'Send command to device', and choose a command.  If it doesn't respond, click the 'Follow Log' link to display a popup showing activity for that device.  Now try again and see if the device is reporting any errors in the log.  You can select 'Advanced', 'Devices', select your Core or Hybrid in the tree on the left, and click 'DCERouter'.  Then follow DCERouter's log to be DCERouter sees the new CM11 software module and is routing commands to it.
  
<p><b>EXAMPLE (cont): Scenarios, Events & Security</b></p>
+
==Scenarios, Events & Security==
  
<p>In the [[Scenarios]], in other words, when something happens (a motion detector is tripped, the sun sets, etc.) you want LinuxMCE to do this (turn on a light). Also set security options, like how you want to be notified when something happens in the house.  Each page has context sensitive help to explain everythingThey will take effect next time you reboot or 'quick reload router'.</p>
+
In a [[Scenarios|scenario]], when something happens (a motion detector is tripped, the sun sets, etc.) you want LinuxMCE to perform an action (turn on a light). In security options, you specify how you want to be notified when something happens in the house.  Each page has context sensitive help.  Settings will take effect when you reboot or '[[quick reload router]]'.

Latest revision as of 12:59, 18 June 2010


Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information

Here's an example for setting up a low-cost smart home setup based on X10. The equipment we mention will cost under $1,000, although the procedure is exactly the same with a $100,000 high-end based on Lutron, Vantage, EIB, etc. So, please read the example regardless of your system type, so you understand the techniques.

List of devices

As an example, here is my list of devices:

  • Two 2 Globalcache gc100 Infrared controls, giving Infrared control of A/V equipment, extra serial ports, ttl inputs and relays.
  • TV's and stereo's
  • A CM11A module to control X10 devices, lights and thermostats. You will plug the CM11A into one of the rs232 serial ports on the gc100.
  • An alarm panel with a serial interface.
  • Squeeze box audio players.
  • Network cameras.

Specify basic info

  • Analog cameras do need some sort of interface device, like a camera capture board, which you must first add to the interfaces page.
  • Add the interface devices first on the interface page, and then the devices they control on the respective page.
  • If you want to add EIB lights (on the lights page), you won't be allowed to do that until you first add the EIB interface on the interfaces page. An EIB light cannot be used without an interface.
  • If you add interfaces for both an EIB Lighting system, and an X10 lighting system, then on the lighting page you will be able to add both types of lights, and the 'Controlled Via' field will show you what interface is being used. This means with LinuxMCE all devices, like lights, are merged together regardless of their type. When you create a lighting scenario, you will see all your lights in one checklist, even if some are X10 and others are Lutron.
  • Plug one of your gc100's into the network, and click the 'add gc100' button on the interface page.  :gc100's are treated special because they are IP-based, but their network configuration is a bit different. They are not allowed to be plug-and-play, so you have to click the button to tell LinuxMCE that you plugged a new one in, signalling LinuxMCE to look for it. Once you get the message that it was found and configured, click on the Interfaces page again to refresh it -- you should now see it listed. Give it a descriptive name and click the 'save/update' button. Now plug in the 2nd gc100, and repeat.
  • Choose 'Add Devices' and add the CM11A. Like all RS232 devices, it is not plug and play; you must add it manually.
  • Repeat for the alarm panel.
  • In both cases, the Controlled Via devices is the Core, since that's where the software drivers will be run. When you are asked to choose the port, it only shows the Core's internal serial ports. Yet, you want to plug it into one of the ports on the gc100, though. The extra serial ports on the gc100 will appear as serial ports on the Core after a reload. So, click 'Wizard', 'Restart' and 'quick reload router'. That causes the DCE Router to reload the list of devices in the house so it sees the new gc100s you have added, and adds its ports to the Core. Click again on the link for the Interfaces page to refresh it, and now you can choose the gc100 ports for the CM11A and alarm panel. Note the serial ports appear as [gc100 device #]_[port on gc100]. The gc100 device # is shown on the interfaces page, and ports are numbered with the first serial port as 0.
  • Add your TVs and stereos on the AV Devices and indicate how they are connected (i.e. which AV inputs).
  • If your Sony VCR's audio output is connected to the JVC Receiver, and the video output ic connected to the Samsung Plasma, you will add all 3 devices.
  • Click the 'Edit' link next to the VCR's 'A: V:'. Choose the Receiver as the Audio Device, then choose the input on the Receiver to which the VCR is connected. If, after choosing the receiver, you see that the Receiver's inputs are not shown, click the 'A/V properties' for the Receiver. You can also click the 'Connection Wizard' link to make the connections visually, one room at a time.
  • If your model is not in the database you will need to add it. After adding it, click the 'a/v properties' button to specify information about the device, and the 'IR/GSD codes' button to specify infrared codes, or the commands to specify if it's a 'Generic Serial Device' (like something controlled with RS232 or Ethernet). If the I/R codes for your device aren't listed or don't work, click the I/R button and either learn by trial and error or find out the code from a source like www.remotecentral.com. Your devices and I/R codes will automatically be sent to LinuxMCE and added to the master database for other users, unless you uncheck the box. In the 'controlled via' option, choose whichever gc100 has the infrared emitter attached for that device.
  • Turn in and plug on your Squeeze Boxes and accept the default 'DHCP network' setting. LinuxMCE will automatically recognize them and configure them. You will see a confirmation message on all the Orbiters and will be asked to specify the room each Squueze Box is in. Refresh the A/V page to see the Squeeze Boxes. Indicate how you connect them to your stereo system.
  • On the Media Directors, drag and drop your devices on the maps you upload. You'll need to do a 'regen orbiter' followed by a 'quick reload router' before you can use the floorplans.
  • Test the devices. Do another 'quick reload router' so DCERouter sees these new devices. When DCERouter sees the new SqueezeBoxes, it will automatically create some Media Scenarios for you to listen to music on them. Go back to a device, like a light, click 'ADV' to go to the advanced page, or go there manually by choosing Advanced Pages Devices from the menu. Click 'Send command to device', and choose a command. If it doesn't respond, click the 'Follow Log' link to display a popup showing activity for that device. Now try again and see if the device is reporting any errors in the log. You can select 'Advanced', 'Devices', select your Core or Hybrid in the tree on the left, and click 'DCERouter'. Then follow DCERouter's log to be DCERouter sees the new CM11 software module and is routing commands to it.

Scenarios, Events & Security

In a scenario, when something happens (a motion detector is tripped, the sun sets, etc.) you want LinuxMCE to perform an action (turn on a light). In security options, you specify how you want to be notified when something happens in the house. Each page has context sensitive help. Settings will take effect when you reboot or 'quick reload router'.