Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

X10 Dim commands
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Monday Nov 22nd, 2010 03:11 pm
   PM  Quote  Reply 
1st Post
kevin1981
Member
 

Joined: Monday Nov 22nd, 2010
Location:  
Posts: 2
Status: 
Offline

  back to top

[Sorry just noticed after posting that i think this should have been in a different section, but not sure if i can move it.]

Hi Guys,
 Has anyone has experience of setting dim levels on X10 via comfort,
 Iam trying to program my lounge lights to activate when in security off mode and the lounge sensor is activated, Lounge lights come on , and after 120 seconds dim to 50%, and there for when i get up again the lights go up to 100% again, etc...
 So far i have got this, not sure if it is correct, infact there is something missing as it turns on no problem and dims after 120 seconds, but i cant get it to return to brightness when the sensor picks up again.
(Response: LoungeLUXDim)
If Input LightSensor <> 0 Then
    AndInput Lounge
    X10 M1 On
    X10 DimLevel 0
    X10 M2 On
    X10 DimLevel 0
    Do MLounge-Dim15 After 120 Seconds Using Timer11
End If
 
(Response: MLounge-Dim6)
X10 M1 Dim
X10 DimLevel 6
X10 M2 Dim
X10 DimLevel 6
If Input Lounge <> 0 Then
     Do LoungeLUXDim
End If
 
 The lounge zone is set to: on response = LoungeLUXDim
 Thanks guys,
 I may find this annoying if my PIR is too sensitive, if every time i lean back on the sofa the lights go up and down, but its worth a try i guess. I wont know if i don’t try.
 Kevin

Last edited on Monday Nov 22nd, 2010 03:13 pm by kevin1981



 Posted: Tuesday Nov 23rd, 2010 01:24 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5498
Status: 
Offline

  back to top

I assume the end Response should be MLoungeDim15, not MLoungeDim6, as MloungeDim15 is called by the frist Response


The 1st Response LoungeLuxDim is triggered by your Lounge PIR
If Input LightSensor <> 0 Then
    AndInput Lounge
    X10 M1 On
    X10 DimLevel 0
    X10 M2 On
    X10 DimLevel 0
    Do MLounge-Dim15 After 120 Seconds Using Timer11
End If

"AndInput Lounge" ANDs the result of the last action with the Input Lounge state.
This seems to be superfluous as the result is not used for anything


(Response: MLounge-Dim15??)
X10 M1 Dim
X10 DimLevel 6
 X10 M2 Dim
X10 DimLevel 6
If Input Lounge <> 0 Then
   Do LoungeLUXDim
End If

This dims the two X10 lights after 120 seconds

The actions to test the Input Lounge
"If Input Lounge <> 0 Then
     Do LoungeLUXDim
End If"
should be removed.

Leave the 1st response LoungeLUXDim to turn on the lights when the PIR detects movement again







 Posted: Tuesday Nov 23rd, 2010 12:18 pm
   PM  Quote  Reply 
3rd Post
kevin1981
Member
 

Joined: Monday Nov 22nd, 2010
Location:  
Posts: 2
Status: 
Offline

  back to top

Hi Slychiu

Thaks for the response,

MLoungeDim15 should have been changed to 6 as i found 15 Dim too much, 6 was perfect, i did change that in my comfiguration but must have done it after i copied the code.

Thanks for the fixing of the codes, ill give it a go in a few hours when it gets dark.

Kevin,



 Current time is 09:17 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems