Automatic Coffee Machine (Yes it can…)
August 3, 2008 at 5:04 pm | In Flash | Leave a CommentTags: actionscript, appliance link, applicance link, applicancelink, automate, coffee machine, flash 8, icon, Insteon, X10
One thing I always wanted to do was be able to setup a automatic coffee machine and turn it on at will. Yes I know there are many out there already that do this, but we want to automate this right??
So after checking with my die hard Insteon users’ regarding wattage and amps. I decided to give a try putting a Icon’s Appliance Link, and see how it works. Below is my candidate #27. You can get this off of Ebay like for $25 each.
The Applicance link Is rated 400 watts and 10amps, after playing with the Kill a watt device (Which by the way are worth every penny, they can tell you how much watts, amps and other goodies any device you plug into them.) It comes in at 825 watts but only 8amps. So it should work.
And work it did.
Here is a picture of #27,Icon Appliance Link next to a Insteon dimmer which has all the features of the decora style , and a regular toggle switch
So after creating a simple Flash screen it will relay the information back to the server.
Here is my screen, basically allows you to turn on the device at a certain time and leave it on after that.
The button are tradition button which increment the time, below the current time is updated each second. I show this here
Flash:Showing the ‘time’ in flash continuously.
The action script is very simple, create the fields one for the hour and put the var field called ‘chours’, the minutes is called ‘minutes’ the AM or PM setting is called ‘ampm’
Here is what you will put as the actionscript for each button.
The hours UP button (If the value is 13 scroll back to 1)
on (release) {
chours=int(chours)+1;
if (chours==13) chours="1";
}
The hours DOWN button (If the value is 0 then set as 12)
on (release) {
chours=int(chours)-1;
if (chours==0) chours="12";
}
Minutes Down Button (If minutes hits 0 then set as 59, also put a 0 in front of any value under ten)
on (release) {
minutes=int(minutes)-1;
if (minutes<10) {
minutes="0"+minutes;
}
if (minutes=="0-1")
{
minutes=59;
chours=int(chours)-1
}
}
Minutes Down Button (If minutes hits 60 then set as 00, also put a 0 in front of any value under ten)
on (release) {
minutes=int(minutes)+1;
if (minutes<10) {
minutes="0"+minutes;
}
if (minutes==60)
{
minutes="00";
chours=int(chours)+1;
}
}
The button which changes the AM / PM Setting
on (release) {
if (ampm=="AM") {
ampm="PM";
} else {
ampm="AM";
}
}
The Confirm button actually uses the internal SDM webbrowser which is picked up by my server, in the same string I send the variables.
I prepare the variable called ’string’ and send it and presto! We will use actionscript’s ‘loadvariable’ command actually to send the data.. funny…
on (release) {
string=”http://192.168.0.101:9020/abc.txt?DCCM”+chours+”:”+minutes+”:”+ampm;
loadVariablesNum(string, 0);
}
Note: If you need to read previos setting into these fields you can check out this entry which explains how up update fields from files.
Flash:Loading Variables from files into Flash
Enjoy!
Installing a Insteon Switchlinc or Icon switch device
July 10, 2008 at 8:12 pm | In Hardware setup | Leave a CommentTags: 4 gang light switch, cables, Dimmer, hot, icon, installing, Insteon, live, load, neutral, setup, switchlinc, X10
Here are some images I just took of a SwitchLinc installation, the same applies for all others such as Keylincs, Icons Relays, Dimmers etc.
Like the manual you have to identify your Neutral, Hot or Line, and your Load.
The cables on the switchlinc are clearly identified. with labels and by color,
White = Neutral
Black = Line or HOT
Red = Load
Bare = Ground.
I ALWAYS turn off the breaker and make sure non of the switches im working on work. I’ve gotten many zaps as a kid and there not fun.
Before I start I make sure I write down the address, this way Im not looking for it and removing work already done.,
Also make sure the switch is setup the upwards, the address should be on the bottom left side (At least for the switchlincs and Icons). Icon switches will have their LED on the left side of the switch.

Below is a picture of the device connected
To Identify the cables I usually look for the big bundle of for Neutral and the Load. If its the first Insteon device you plug in you will see that neutrals not connected to any switch.
For example you can see the Neutrals are all together in the white bundle with the Red Cap, The load or Hot is usually another bundle of black cables (This is what provides power to all switches so usually all the blacks to/from the switches die here
And the load (Which is off to the light is usually alone or going out. is the one towards the light fixture. In this case its a black wire.
The ground is the bare cable ground, that’s a easy one.

Here is a image of the finished product, this is
2 ICON Dimmers, one regular Decora on/off switch and a Switchlinc, and a unfinished painted wall.

Here is another 4 gang which is 1 Icon, a Switchlinc Dimmer, regular switch and another SwitchLinc

Cheers!
-
Newest Post!
Categories
Pages
Archives
Tags
.net 3-way actionscript callerid caller id capture x10 with plc coffee machine controller creating insteon groups Dimmer Flash grab data from a ip port groups Home Automation icon Insteon insteon group commands insteon groups IO LINC load modem monitor port on levels open garage door PLC ramp rates responder SDM sdmserver server setting up insteon groups Smarthome sql database System.net tcp ip port checking vb vb 6 vb 2005 vb2008 vb 2008 vb code Vista watch a port X10 XPMeta
-
Recent Comments
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.



