#17751 - 03/16/07 05:23 PM
Making a One Button Light Switch
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
Hi Guy's
I'm trying to get a light to turn on and off based on a one push of the screen button and then if I push it again, I want it to turn off again. I thought I should do it with respect to the status button but I'm now thinking this is a bit dodgy. I cab get the light to turn on, but not off. Some coding advice would help me here;
IF Variable #0 is >0 IF Variable#63 / Screen # is = 8 AND Touch Object #122, Button Leopard is pressed THEN X-10 House A / Unit 2, Turn ON
IF Variable #0 is >0 IF Variable#63 / Screen # is = 8 AND Touch Object #122, Button Leopard is pressed AND X-10 House A / Unit 2, Is ON THEN X-10 House A / Unit 2, Turn OFF
My other problem seems to be that the pages on the Leo 2 dont not roll over quick enough. That is; when you go from one page to the next it seems to take 1 or 2 seconds to get going. Is there something I'm missing here?
Cheer's Sash
|
|
Top
|
|
|
|
#17753 - 03/16/07 09:33 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
Thanks Guy, it almost worked. I can see the logic is better your way. But it still doesnt turn the stupid light off. I've monitored the signal via te x-10 monitor thingy. It registers as its gone through but doesn't actually turn off. If I then use my remote control x-10/RF thingy, it works.
Whats up with this? You never answered my question on page speed...thanks in advance.
Cheer's Sash
|
|
Top
|
|
|
|
#17755 - 03/18/07 04:27 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
I'm using one of these Marmitek LW12 Dimmable Micro Modules.
Link;
http://www.envioustechnology.com.au/products/product-detail.php?prodCode=LW12
Seems to work with my remote control, but not my Leo 2. I remember once upon a time, it used to work with both. I'm not thinking something is interfering with it.
With regards to the speed between pages, isn't there a variable that can be set to make it scan quicker (i.e. it doesn't have to scan all the lines of code to do its thing).
Cheer's Sash
|
|
Top
|
|
|
|
#17757 - 03/18/07 06:05 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
I'll try adding another button for the off command tonight and let you know.
50Hz PIC? What is this all about? I need more info. How do I check to see that I have it or not?
Kewl, speed cannot be changed, I'll live with it.
Cheer's Sash
|
|
Top
|
|
|
|
#17759 - 03/18/07 07:10 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
Ok, great, I'll check it out tonight and tell you want I see.
Cheer's Sash
|
|
Top
|
|
|
|
#17760 - 03/20/07 04:11 AM
Re: Making a One Button Light Switch
[Re: sash18]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
Ok, I have Firmware V8.23/158 and Application V3.08
I guess it doesnt really matter anyway since the unit started to work when coded with two buttons (one for on and one for off). Not sure what was happening to it but yeah, its all good for now. I'll check it with the above code now to see if that will work.
Cheer's Sash
|
|
Top
|
|
|
|
#17762 - 03/20/07 01:33 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
60Hz....I cant contact the person I got it from anymore. I dont think they no longer exist. I was an ebay job. Man, I spewing now. What exactly is involved in changing it over? Can I take it to some place locally that has the knowledge to do it?
Cheer's Sash
|
|
Top
|
|
|
|
#17764 - 03/20/07 03:06 PM
Re: Making a One Button Light Switch
[Re: Guy Lavoie]
|
sash18
journeyman
Registered: 08/31/05
Posts: 61
Loc: Melbourne
|
Yep, I'll send them an email today....
Thanks for that. BTW, what should it say to be sure its a 50Hz PIC?
Cheer's Sash
|
|
Top
|
|
|
|
Moderator: Dan Smith, Monte G, ADI Tech Support, Guy Lavoie
|
2747 Members
19 Forums
3837 Topics
22713 Posts
Max Online: 67 @ 08/16/11 03:08 PM
|
|
|
|
|
|
1
|
2
|
3
|
4
|
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
|
26
|
27
|
28
|
29
|
|
|
|
|
|