Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
X10 Dim commands
#1
[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
Reply

#2
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


Quote:(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





Reply

#3
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,
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.