RIP CM11a (maybe)

Timothy Kilberg tkilberg at mac.com
Sun Apr 12 16:33:43 EDT 2020


Very helpful! Thank you so much for the nearly-immediate reply!

> On Apr 12, 2020, at 4:10 PM, James Sentman <james at sentman.com> wrote:
> 
> 
> You want to take a look at the “Central Scene” handling stuff in the new Vera plugin for XTension here:
> 
> http://machomeautomation.com/doku.php/supported_hardware/veraui7#central_scene_support
> 
> The little demo script there will show you how to add some simple scripts in the ON script of the unit in order to also catch the button and gesture. The button is if you tapped on or off and the gesture is if you tapped, double tapped, tripple tapped, taps ed and held etc…
> 
> The problem is that every manufacturer sends a different code so Xtension just sends that through to the script. You’ll need to run that demo script first and check the log for what values are actually passed by your specific switches. The WS200 ones are very standard, but not all are, so I haven’t added specific handlers for double click or triple click, you’ll need to check that against the values that are written to the log by the little demo script on the Wiki.
> 
> Once you know for sure the button codes and gesture codes for what you want to do then you can easily script them to do anything you want. For example I have a double tap script in my own kitchen lights that turns on and off every light in the room. Single tap turns on only the minimum lighting but double tapping can turn on or off everything.
> 
> By way of quick example here’s the start of my kitchen script. I’m using globals for the gesture code and button code that I’ve placed in my attachments script, but you don’t have to do that, just start with the demo script and use whatev4er values your particular switch passes for the button and gesture.
> 
> on centralScene(theButton, theGesture)
> 	
> 	write log "central scene received for " & (thisUnit) & " button=" & theButton & " gesture=" & theGesture
> 	
> 	-- clicking on turns on those other 2 switches automatically
> 	if theButton is equal to my gHSPaddleOn then
> 		write log "paddle is ON"
> 		brighten "Kitchen Spots" to 100
> 		turnon "kitchen stove"
> 		brighten "Kitchen Under Cabinet" to 127
> 		
> 		
> 		-- a double click should turn on the rest of the lights
> 		if theGesture is equal to my gHSDoubleClick then
> 			write log "is a double click"
> 			brighten "Kitchen Overhead" to 100
> 			brighten "Kitchen Table" to 75
> 		end if
> 		
> 
> 
> 
> so in this case, turning it on always turns on and off a couple of other units with it, but i fyou also double click then it turns on or off the kitchen table unit as well. And remember that there is no reason to replace your CM11 completely in one go. Indeed it’s easier to keep it around and replace switches one or 2 at a time until you have everything working. It’s really hard to do everything at once and get it all going in just one try. Replace things one at a time. XTension will happily connect to both your CM11 and the Vera at the same time.
> 
> 
> 
>> On Apr 12, 2020, at 3:20 PM, Timothy Kilberg <tkilberg at mac.com> wrote:
>> 
>> I’m looking for a some beginner’s direction on how to make use of the click actions on the Home Seer HS-WS200+ wall switches connected to a Vera Plus. I see the XTension log entry for single clicks (Received ON for…), but with a double click, the message I get is "Front Lights: Please wait! Polling Node”. I currently don’t do any scripting in XTension, but look forward to learning. 
>> 
>> Any guidance, tutorials, or examples that could help me get started with the multi-click feature of this switch?
>> 
> 
> Thanks,
>  James
> 
> 
> James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com
> 
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20200412/9353bac5/attachment.html>


More information about the XTensionList mailing list