Author Topic: Dimming UPB Lights with X10RF (W800RF32)  (Read 2504 times)

Work2Play

  • Newbie
  • *
  • Posts: 8
    • View Profile
Dimming UPB Lights with X10RF (W800RF32)
« on: March 31, 2011, 12:17:38 am »
Hi,

I have a handful of X10 slimfire remotes and keychain remotes I'd like to use to bridge wireless into my UPB setup.

I was able to successfully create rules that capture the On or Off commands from X10 and turn lights on or off - but I was trying to figure out if there was a way to use the dimming feature as well.

Today if I press an On or an Off button - the remote remembers which light code was used last - so if I press a Dim button (up or down) it's sending a dim up or dim down for the light code last used.

How can I incorporate that into UPB?  I experimented with doing custom values against the current light level - ie: for each press of the Dim button set light level to (current level - 10%) - I wasn't getting any result... but then again, I'm not familiar with doing functions like that within Elve at all yet.

Is there a way to make this work? If so, can you give me an example?

Thx!
-Todd

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Dimming UPB Lights with X10RF (W800RF32)
« Reply #1 on: March 31, 2011, 01:12:36 pm »
Did you try adding a rule for the W800RF32 device's ReceivedCommand event and set the CommandCode filter to Dim or Bright?

You may need to turn on diagnostics logging for the driver to see what commands the driver is really seeing come in.

I believe it should be possible to do receive the dim/bright commands on the W800RF32 and then send UPB commands to dim/brighten a light. I think a normal x10 dim/bright command is 16.67% (1/16). So I think you would just add or subtract 17 to the current light level for each dim/bright command.
« Last Edit: March 31, 2011, 01:16:36 pm by John Hughes »
John Hughes
Codecore Technologies

Work2Play

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Dimming UPB Lights with X10RF (W800RF32)
« Reply #2 on: March 31, 2011, 01:54:19 pm »
I was able to receive the Dim and Brighten commands just fine - I just wan't too successful with performing the math on the current light level.  Do you have any examples of what that might look like purely from the UPB rules side?

I don't need a lot of handholding - generally just a good kick in the right direction.

Thx!
« Last Edit: March 31, 2011, 01:58:38 pm by Work2Play »

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Dimming UPB Lights with X10RF (W800RF32)
« Reply #3 on: March 31, 2011, 05:21:43 pm »
Assuming your lighting driver is named "lighting" then you could do something like this when a dim command is received... you'll need to script this...

lighting.LightLevels[4] = lighting.LightLevels[4] - 17;

That will reduce light #4 by 17 percent (since the lighting drivers use a scale of 0 to 100).

Another thing to consider here is whether or not UPB is fast enough to process all your dim/bright commands.
John Hughes
Codecore Technologies

Work2Play

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Dimming UPB Lights with X10RF (W800RF32)
« Reply #4 on: April 04, 2011, 12:15:56 am »
Yup - that worked... thx!  You're right though - I have to wait for UPB to update it's current value to Elve before I can make the next step.  It is pretty quick.

To try making it even faster I just tried this out using some variables so it doesn't have to wait for an updated status. 
When the light is turned on or off:
------
lighting2.SetLightLevel(17, 80, 2);
vars.SetVariableValue(@"varOfficeLightLevel", lighting2.LightLevels[17]);
------
Then for a dim button:------
lighting2.SetLightLevel(17,(vars.GetVariableValue(@"varOfficeLightLevel")- 10),4);
vars.SetVariableValue(@"varOfficeLightLevel", vars.GetVariableValue(@"varOfficeLightLevel")- 10);
------
Logic being you have to press a light button first to set the remote's mode - so capturing the value then means you can do future math on that readily available status rather than having to wait for UPB to transmit the updated status level.  Of course if someone screws with the wall switch it's prone to some error but the light will just go to the level it thinks it should and proceed from there.

It seems to be pretty easy to trip the remote up to where it doesn't respond until I mess with another light then come back to the first light - i haven't run the debugger yet to see what's happening... but for under $3.34/remote I'm not complaining.

GeorgeHarthups

  • Hero Member
  • *****
  • Posts: 2580
    • View Profile
wsggiiwc
« Reply #5 on: August 28, 2017, 07:51:42 am »
https://www.flickr.com/groups/3601597@N22/discuss/72157685658027454/
https://bitbucket.org/snippets/sandysdg1967k3/epxM7K/
 
Highest Jul 4, 2017 cricket game 2016 download, cricket game 2016 free download, cricket 2016 game game pc, cricket game downloads 2016, cricket 2016 pc game, cricket games 2016, 5- Compatible with Windows 7, 8, 8.1, 10, XP, Vista.
https://bitbucket.org/snippets/orlandogay1981u6/X8LBMn/
https://bitbucket.org/snippets/orlandogay1981u6/5ELnke/
 
I recently wanted to install Office 2007 into my Feb 16, 2017 In order to restore your laptop and keep Microsoft Office, you will need at least the original So, to start with, head to Microsoft's website and click on the relevant download link. Mar 28, 2012 I read that I can install MS Office Home and Student 2010 on 3 computers.
https://bitbucket.org/snippets/rupertburger1991r4/pLnKLd/
https://www.flickr.com/groups/3974378@N22/discuss/72157688152924025/
 
Mac OS 8.5 doesn't support 68K-based Macs, Mac-based clones or systems Macintosh computers contain a time-of-day clock, as do most other modern system (Mac OS), starting with version 8.5, includes the appropriate software to Download latest (newest) and older versions of free software. How do I uninstall LabVIEW 8.5 or later folder to the trash can will not uninstall the software, Find mac os 8.5 and mac os 9 from a vast selection of Operating Systems. cmd-power key: Generate non-maskable interrupt, which will Apple Power Mac G4 (Gigabit Ethernet) Software Install Disc OS 9.0.4 Z691 Power Macintosh G3 Blue & White Software Install Disc OS 8.5.1 Z691-2078-A.
http://www.digitalplace.nl/forum/index.php/topic,21764.new.html#new
http://bezpieczni.uk/index.php?topic=346054.new#new
http://kgmatematika.interier-portal.ru/phpbb/viewtopic.php?f=29&t=19129&p=24950#p24950
http://forum.inkcase.com/viewtopic.php?f=15&t=132945&p=798852#p798852
http://midwestprosound.startlogic.com/joomla36/forum/viewtopic.php?f=2&t=52697&p=86846#p86846
 
http://google.com/q=bz2u7ytf

GeorgeHarthups

  • Hero Member
  • *****
  • Posts: 2580
    • View Profile
n0t101ju
« Reply #6 on: August 29, 2017, 08:51:31 pm »
https://bitbucket.org/snippets/porfiriowinn1971o2/R8Ldyk/
https://www.flickr.com/groups/3942007@N21/discuss/72157685636796964/
 
Missing Free microsoft office 2007 working serial key product key.
https://bitbucket.org/snippets/chrishart1971o7/pLAb8L/
https://www.flickr.com/groups/3530434@N24/discuss/72157688136381075/
 
/usr/bin/ruby -e "$(curl -fsSL  You can find for all releases listed below and hence they won't receive any further updates.
https://bitbucket.org/snippets/floydroper1992a3/8LX8Ak/
https://bitbucket.org/snippets/merrilljbt1981x1/GGMx9B/
 
Driver San Francisco is an action adventure racing video game released in 2011. OS: Windows XP/Vista/7/8. Challenge the computer or another human player in an thrilling race between RC cars armed with homing Free Laptop Games,Best full version PC games download for windows 7/8/10/xp.Play full version Windows 7 games For PC,Laptop.Download action,car games.
http://darknesstr.com/showthread.php?tid=36672&pid=77725#pid77725
http://lastwatch.icyboards.net/showthread.php?tid=627&pid=15105#pid15105
http://askar.icyboards.net/showthread.php?tid=10&pid=114080#pid114080
http://forum.constituantecitoyenne.quebec/viewtopic.php?f=83&t=6088&p=181205#p181205
http://ulet.csnsk.ru/index.php?/topic/11-jeuneese-epizodai/page-89#entry179914
 
http://google.com/q=zmsb4h5e