From: Dave S. <da...@st...> - 2006-10-29 05:01:36
|
Dave Stenhouse wrote: > Can somebody share the syntax for obtaining the status of an X10SL or > X10I item? I would like to do something like: > if $light_1 eq 'off' > if $light_2 eq 'off' > ... > if $bedroom_motion eq 'still' > if $livingroom_motion eq 'still' > ... > or whatever. > print_log "Assuming you're all in bed now." > > set $mode_sleeping 'all' > > If mh did not set the lights to off, then it would only know what the > status is by querying the items, correct? > > > I also want to do something like this: > > if $light_1 ne 'off' > .... > if $motion_1 eq 'still' > ... > or more likely, > if (expired $livingroom_motion_timer) > if (expired $diningroom_motion_timer) > if time_between '10pm','$Time_Sunrise' > speak "Hey Mister made of money- turn out the lights when you go to bed!" > > Anyhow, I can see that getting valid state data for various devices may > be useful. I tried creating a trigger that said get $master_br_fl > STATUS, but that didn't seem to do much for me. > Any ideas Responding to myself... Sorry. I got the syntax worked out, now to get useful info back. The only 2-way modules I own are Lamplinc V2's. Even when I set the state of the light via trigger (set $light 'off') or something, when I do a set $light STATUS, the response is light manual. Is this a translation problem with the Lamplinc V2? -Dave |