The Vera Community forums have moved!

General => Remote Control => Topic started by: chixxi on December 11, 2011, 07:28:32 am

Title: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on December 11, 2011, 07:28:32 am
So after updating my Vera2 to UI5 / Firmware 1.5.233 I just added the Aeon Labs MiniMote (Firmware 1.17) as a secondary zwave scene controller, AND IT'S A FULLY FUNCTIONAL SCENE CONTROLLER!

I can run predefined scenes on the vera using the Minimote! See Screenshots attached:

HowTo (or at least what worked in my case):

1. Go To: http://www.aeon-labs.com/site/products/view/3/
2. Update your MiniMote Firmware to 1.17.
3. Reset your MiniMote: Hold "Associate" and "Learn" until the lights stop blinking.
4. On your Vera2 (has to run on UI5 1.5.233 or 1.5.255) go to "Devices=>Add a Device=>Advanced zwave devices" Add a secondary" battery operated handheld remotes"
5. Now the zwave light on your vera starts blinking slowly.
6. Take your MiniMote close to the vera and push the "Learn Button".
7. The zwave led on the vera and the leds on the minimote will start to blink fast and stop again.
8. Wait a couple of minutes until the lua engine is restarted and the zwave light on the vera is not blinking anymore.
9. The go to "Devices=>Other" in the vera UI5. Click the wrench-button (settings) of the device "_MiniMote".
10. Choose which scene to run on which button in the "Scenes"-Tab
11. Close the Settings Window and click save.
12. Wait for lua to restart and try.

Works on ver2 and vera3.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on December 11, 2011, 09:52:01 pm
Thanks for putting that together!

From what you posted elsewhere (http://forum.micasaverde.com/index.php/topic,2488.0.html) I got the impression the MiniMote supports short and long presses, i.e. 2 scenes, per button. Assuming the short presses map to 'buttons are turned on' scenes, do the long presses map to the 'buttons are turned off' scenes in the Scenes tab?


Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on December 12, 2011, 01:10:30 am
Yes exactly. You can basically run 8 different scenes with the MiniMote. Two for each button: short press & long press.

I have for example a scene "All lights On" (assigned to Button1-Short) in my room, and a Scene "All lights Off" (assigned to Button1-Long). So that means that if I push button 1 all lights get turned on, if I keep it pressed shortly all lights turn off.

And for some reason I think the MiniMote is very "fast". I never have any lag or anything, works perfectly reliable.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: pgrover516 on December 12, 2011, 01:50:21 am
awesome. thanks for posting   8)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: futzle on December 25, 2011, 07:22:57 pm
Confirmed working in UI5 (1.5.255) on Vera2 with Australian-frequency Aeon Labs Z-Wave dongle at version 1.17.  No need to mess with any of those Configuration settings.  Thanks chixxi.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Brientim on December 27, 2011, 08:21:58 pm
Works like a charm. If only if I could keep UI5 working. Thank you
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: gkl on January 01, 2012, 08:52:09 am
Hello All,

i cannot get it to work on EU Vera3 (1.5.215) with Aeon Labs EU MiniMote  at version 1.17.

How can i upgrade my Vera3 to 1.5.233?

* Currently upgrading to 1.5.254! Will post the results when finished!




Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: CMRancho on January 01, 2012, 03:16:22 pm
I can't get my MiniMote to be recognized on my PC as a USB device so I can upgrade the firmware. Any ideas why?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on January 03, 2012, 06:54:54 am
I can't get my MiniMote to be recognized on my PC as a USB device so I can upgrade the firmware. Any ideas why?

Maybe try to reset the remote by holding "Learn" and "Associate" Buttons pushed until leds stop blinking. I never had any problems with the updating procedure of the remote.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: CMRancho on January 03, 2012, 11:42:12 am
I can't get my MiniMote to be recognized on my PC as a USB device so I can upgrade the firmware. Any ideas why?

Maybe try to reset the remote by holding "Learn" and "Associate" Buttons pushed until leds stop blinking. I never had any problems with the updating procedure of the remote.
Thanks for the suggestion. I tried it, but it didn't work. I guess I'll try Aeon support and see if they can help.

*update* I tried the minimote on a different PC with a different USB cable and it mounted immediately. I performed the firmware update and now I have (all three) of my minis running scenes quickly and reliably!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: topnobau on January 04, 2012, 06:13:10 am
Confirmed working in UI5 (1.5.255) on Vera2 with Australian-frequency Aeon Labs Z-Wave dongle at version 1.17.  No need to mess with any of those Configuration settings.  Thanks chixxi.

I'm also an Aussie and I upgraded to UI5 and then ran the update for the minimote with the latest firmware, still no love. vera says "ZWave network failed to go into learn mode. Aborting... Wait 1 minute and try again.".

Is there a way to check what firmware version is installed on the minimote?

I've tried several times, I can still pair the mote with my light switches and my power line module, but not vera.

Any ideas?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on January 04, 2012, 08:40:28 am
Quote
I'm also an Aussie and I upgraded to UI5 and then ran the update for the minimote with the latest firmware, still no love. vera says "ZWave network failed to go into learn mode. Aborting... Wait 1 minute and try again."

That seems to be a problem from the vera, not from the MiniMote. The Vera is not able to go into Learning Mode.

Quote
Is there a way to check what firmware version is installed on the minimote?

Once the remote is connected the firmware version is shown in UI5 in the device settings. This also showed in my case when I had an older firmware on the Minimote.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: topnobau on January 08, 2012, 06:49:06 am
Thanks, I reset the Vera2 z-wave network and now it works correctly! great!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: macrho on January 08, 2012, 08:38:15 am
this has worked great, thanks!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: richskiddle on January 14, 2012, 07:40:19 am
Fantastic - thank you

I wish there were simple walk throughs like this for every question I have!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: phyla1 on February 11, 2012, 03:58:53 am
Got it working in 10 minutes on vera3 EU version
using the steps from chixxi works like a charm
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: intveltr on March 03, 2012, 10:55:47 am
My MiniMotes work like a charm under UI5, finally I can use them to control scenes.

One small issue though: it seems that it is no longer possible to associate Minimote buttons to devices instead of using the to trigger scenes.  For one of my Minimotes I'd like the ability to dim lights up/down, and for that I need to associate a button directly with the dimmer.

It seems that the individual buttons can be switched between scene buttons and regular buttons through configuration parameters 241 - 244.  I've tried setting these in the Vera interface, but sending the configuration to the Minimote always fails at: "purging associations".  Vera will keep trying this purge for up to several minutes without success, and fails when I finally let the Minimote go to sleep again.  Any workaround for this?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on March 05, 2012, 03:21:29 am
I never associated a minim mote directly to a device, I never tried.

You could basically just create a scene which dims you lights down by 1%, and another scene which would dim your lights up by 1%. Then you could use two buttons to  run these scenes. But this doesn't seem like a very smart approach, because you'd have to push you buttons 100 times to dim from 0-100% percent.

A colleague has written some luup code to do this with one button. I'll ask him to post that here...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: tazziefez on April 19, 2012, 10:42:36 pm
Hi

I cant seem to get mine to work. From the instructions it should appear as _MiniMote however every time i add it it appears as _SceneController. I have upgraded the firmware v1.17 Au for australia, running UI5 1.5.246.

It seemed to pair to the dongle fine, still works with all lights on/off by holding 1&2/3&4.

Any ideas?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on April 20, 2012, 01:21:46 am
Basically it should work. But you are not running on the newest version of the vera's firmware, maybe try updating your vera...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: tazziefez on April 20, 2012, 02:01:40 am
Quote
But you are not running on the newest version of the vera's firmware, maybe try updating your vera...

Apologies that was a typo, i am running the latest ver 1.5.346

It should appear as _MiniMote not as _Scene Controller though?

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on April 20, 2012, 02:15:43 am
Yes, it should appear as _MiniMote.

I guess you did all the steps described, including the reset of your minimote?

You could try to add it as a normal zwave device instead of a secondary controller. Make sure that you delete the device on the vera an reset your minimote before readding it.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Flagstaff on June 11, 2012, 04:01:41 am
Just a quick update to this in case someone comes across the same problem I faced in the future. After adding the minimote sucessfully it would only let me use the two top buttons. The click and longclick could be used for both top buttons giving me 4 scenes but the bottom buttons didn't work except when pressing both of them to turn off all lights. Anyway, resetting the device using the associate and learn buttons, removing the device from Vera and then adding it again using the process described in this pose seems to have sorted out the issue so that all 4 buttons can be assigned to scenes correctly including long and short click.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: huib on June 15, 2012, 03:59:43 pm
with help of the instruction in the beginning of this post i was able to get the minimote running satisfactory

only observation that if you are using the healing / repair function the system stops at the remote. at that moment when you press LEARN on the device the repair / healing continous succesfully

the second groups of buttons (long press) are also working properly
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: futzle on June 19, 2012, 08:17:16 am
Just a quick update to this in case someone comes across the same problem I faced in the future. After adding the minimote sucessfully it would only let me use the two top buttons. The click and longclick could be used for both top buttons giving me 4 scenes but the bottom buttons didn't work except when pressing both of them to turn off all lights.

Interesting, the same has happened to me.

Luup log from an unsuccessful bottom-left button press ("Electric blanket on"):
Code: [Select]
06 06/19/12 22:11:01.714 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: sl_SceneActivated was: 6 now: 5 #hooks: 3 upnp: 0 v:0x7dd228/NONE duplicate:0 <0x2bf59680>
07 06/19/12 22:11:01.715 Event::Evaluate 5 AUTO_GENERATED scene Coffee start time is false repeat 0/-1 <0x2bf59680>
07 06/19/12 22:11:01.715 Event::Evaluate 6 AUTO_GENERATED scene Bedside lamp to 40% or 60% is false repeat 0/-1 <0x2bf59680>
07 06/19/12 22:11:01.715 Event::Evaluate 7 AUTO_GENERATED scene Electric blanket on is false repeat 0/-1 <0x2bf59680>
06 06/19/12 22:11:01.715 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: LastSceneID was: 6 now: 5 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bf59680>
06 06/19/12 22:11:01.716 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: LastSceneTime was: 1340107703 now: 1340107861 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bf59680>

Luup log from a successful top-left button press ("Bedside lamp to 40% or 60%"):
Code: [Select]
06 06/19/12 22:14:54.430 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: sl_SceneActivated was: 5 now: 1 #hooks: 3 upnp: 0 v:0x7dd228/NONE duplicate:0 <0x2bf59680>
07 06/19/12 22:14:54.431 Event::Evaluate 5 AUTO_GENERATED scene Coffee start time is false repeat 0/-1 <0x2bf59680>
07 06/19/12 22:14:54.431 Event::Evaluate 6 AUTO_GENERATED scene Bedside lamp to 40% or 60% is true users:(null) allow:1 <0x2bf59680>
08 06/19/12 22:14:54.431 Scene::RunScene running 6 Bedside lamp to 40% or 60% <0x2bf59680>
08 06/19/12 22:14:54.432 JobHandler_LuaUPnP::HandleActionRequest device: 60 service: urn:upnp-org:serviceId:Dimming1 action: SetLoadLevelTarget <0x2bf59680>
08 06/19/12 22:14:54.432 JobHandler_LuaUPnP::HandleActionRequest argument newLoadlevelTarget=40 <0x2bf59680>
06 06/19/12 22:14:54.432 Device_Variable::m_szValue_set device: 60 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 40 now: 40 #hooks: 0 upnp: 0 v:0x8e5308/NONE duplicate:1 <0x2bf59680>
02 06/19/12 22:14:54.433 ZWJob_SendData  UPDATE MANUAL ROUTE 3=(nil) <0x2bf59680>
07 06/19/12 22:14:54.434 Event::Evaluate 7 AUTO_GENERATED scene Electric blanket on is false repeat 0/-1 <0x2bf59680>
06 06/19/12 22:14:54.435 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: LastSceneID was: 5 now: 1 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bf59680>
06 06/19/12 22:14:54.435 Device_Variable::m_szValue_set device: 170 service: urn:micasaverde-com:serviceId:SceneController1 variable: LastSceneTime was: 1340107861 now: 1340108094 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bf59680>

Oh, I see what's happened. The buttons have shifted.  What used to be on button 3 is now on button 2.  I wonder if it's because I'd left button 2 unassigned and the other scenes have bunched up to fill the gaps?

Edit: Looks like the Minimote is sending 1, 2, 3, 4, 5, 6, 7, 8 as top-left-short, top-left-long, top-right-short, top-right-long, bottom-left-short, bottom-left-long, bottom-right-short, bottom-right-long, and that Vera is no longer mapping this to 1, 3, 5, 7 for short presses and 2, 4, 6, 8 for long presses. No idea why.

Edit: Since the continued operation of the Minimote is essential for the WAF, I gave up and excluded/reset/included the Minimote. Unlike Flagstaff, that wasn't sufficient, and the Minimote is still misbehaving, thinking the on buttons are 1, 3, 5, 7 and the off buttons 2, 4, 6, 8.  So I dug into the Advanced tab and fooled Vera into thinking I had 8 buttons, and assigned events only to the odd+on buttons and even+off buttons. That seems to have done the trick.

Edit edit: Turns out it was a regression in the private beta I was testing. Not the same issue as Flagstaff.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 14, 2012, 05:02:38 pm
Hi

I cant seem to get mine to work. From the instructions it should appear as _MiniMote however every time i add it it appears as _SceneController. I have upgraded the firmware v1.17 Au for australia, running UI5 1.5.246.

It seemed to pair to the dongle fine, still works with all lights on/off by holding 1&2/3&4.

Any ideas?

I've just tried adding my minimote and mine also has not been detected properly and appears as _SceneController, see screen shots, also the Scenes tab looks all wrong.

EDIT: I removed the _SceneController and followed the steps again and this time it seems to have added it correctly!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 14, 2012, 05:16:09 pm
One small issue though: it seems that it is no longer possible to associate Minimote buttons to devices instead of using the to trigger scenes.  For one of my Minimotes I'd like the ability to dim lights up/down, and for that I need to associate a button directly with the dimmer.

It seems that the individual buttons can be switched between scene buttons and regular buttons through configuration parameters 241 - 244.  I've tried setting these in the Vera interface, but sending the configuration to the Minimote always fails at: "purging associations".  Vera will keep trying this purge for up to several minutes without success, and fails when I finally let the Minimote go to sleep again.  Any workaround for this?

This is also a problem for me, previously when using my other Z-wave software before using VeraLite I just directly added the Z-wave lamp modules to the minimote. I could turn the lamps on and off and also dim or brighten them with the minimote, I now cannot dim or brighten with the minimote after adding the minimote as a secondary controller to VeraLite. I have just added my lounge on and lounge off scenes I setup in VeraLite to the button 1 on/off on the minimote this works and the lamps turn on and off but I have lost the ability to dim or brighten them, any ideas ?

Thanks
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 15, 2012, 01:26:00 am
One small issue though: it seems that it is no longer possible to associate Minimote buttons to devices instead of using the to trigger scenes.  For one of my Minimotes I'd like the ability to dim lights up/down, and for that I need to associate a button directly with the dimmer.

It seems that the individual buttons can be switched between scene buttons and regular buttons through configuration parameters 241 - 244.  I've tried setting these in the Vera interface, but sending the configuration to the Minimote always fails at: "purging associations".  Vera will keep trying this purge for up to several minutes without success, and fails when I finally let the Minimote go to sleep again.  Any workaround for this?

This is also a problem for me, previously when using my other Z-wave software before using VeraLite I just directly added the Z-wave lamp modules to the minimote. I could turn the lamps on and off and also dim or brighten them with the minimote, I now cannot dim or brighten with the minimote after adding the minimote as a secondary controller to VeraLite. I have just added my lounge on and lounge off scenes I setup in VeraLite to the button 1 on/off on the minimote this works and the lamps turn on and off but I have lost the ability to dim or brighten them, any ideas ?

Thanks

You could use luup code to do the following:

Create a scene and the write a code which "gets the current dim-level, adds 5% and then sets the lights again".

Create a second scene which "gets the current dim-level, subtracts 5% and then sets the lights again".

Then you can use two buttons on the minimote (or one with short and long hold) to dim your lights up and down.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 06:01:08 am
Hello

Thank you for the reply, I am a newbie and know nothing about writing Luup code, do you have any examples of some code that might do this?

cheers
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 07:29:23 am
Do you also lose on the Minimote All Lights On / All Lights Off function? Pressing top two buttons together = All Lights On Pressing bottom two buttons together = All Lights Off.

This isn't working any more since adding the minimote to VeraLite. What is the advantage of adding the minimote to VeraLite over just directly adding the Z-wave modules to the minimote ?

If I add a dimmable lamp module directly to a button on the minimote I can then turn on/off and also dim that lamp all from the one button, by adding the minimote as a secondary controller to VeraLite and assigning the scenes to a button on the minimote from VeraLite, I am losing functionality of the minimote.

Thanks
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 15, 2012, 07:43:51 am
1. Use this forum and the wiki to learn howto use luup in scenes.

2. The advantage of connecting the minimote to the vera is that the logic is done on the vera and you can therefore run scenes, this allows to use the minimote for much more complex scenarios than just turning on and off lights.

3. The all-on/off function is also lost when you add the minimote to your vera, but is is ridiculously simple to create a scene which does the same. So the function is not really lost, you just do it with one button.

If you don't see any advantages, just don't do it...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 08:30:37 am
OK thanks, I can see the advantage of being able to run more complex scenes from the minimote, but to get the minimote setup how it was before VeraLite I don't have enough buttons on the minimote to run all the scenes I would need.

Cheers
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on August 15, 2012, 08:43:31 am
Hi CW-Kid,

I think you loose the all on all off fuction when you add it to vera. I am sure I read this somewhere.

I have one button on the remote that does this by running scenes that do the same.

I think you just have 4 buttons with quick press and long press fuctionality.

You cna get pretty crerative with macros though by addign plug ins and playing with luup code - lots of examples here in the forum and people very helpfull  :)

good luck.

-Lights_On
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 15, 2012, 08:56:24 am
OK thanks, I can see the advantage of being able to run more complex scenes from the minimote, but to get the minimote setup how it was before VeraLite I don't have enough buttons on the minimote to run all the scenes I would need.

Cheers

You should have enough button's, at least not less than before.  ;D You basically can control 8 scenes (long and short hold for each of the 4 buttons). If you then create smart scenes you have way more options than before. For example you don't need two buttons and two scenes to turn a light on and off, you can create a scene which does "turn on light if light is off, else turn light off".

I don't really have time to prepare the code specifically for you, but it is really simple, and as alrady said in this forum and the wiki there a lot's of example's.

I use a function, just add this to "Apps => Develop Apps => Edit Startup Lua":
Code: [Select]
-- toggleSwitch(41, status or nil, serviceId eg: "VSwitch1" or "SecuritySensor1" empty for defaul)
function toggleSwitch(devID, newstatus, serviceID)
    local command = "Status"
    if(serviceID == nil) then
        serviceID = "urn:upnp-org:serviceId:SwitchPower1"
    elseif(serviceID == "urn:micasaverde-com:serviceId:SecuritySensor1") then
        command = "Armed"
    end

    if(newstatus == nil) then
        switchStatus = luup.variable_get(serviceID, command, devID)
        if(tonumber(switchStatus) == 1) then
            switchStatus=0
        else
            switchStatus=1
        end
    else
        switchStatus = newstatus
    end
    luup.log("mirkLog[i] switchToggle("..devID..", ".. switchStatus.. ", "..serviceID..")")
    if(command == "Armed") then
        --luup.variable_set(serviceID, command, switchStatus, devID)                                                                                   
        luup.call_action(serviceID, "SetArmed", {newArmedValue = ""..switchStatus..""}, devID)
    else
        luup.call_action(serviceID, "SetTarget", {newTargetValue = ""..switchStatus..""}, devID)
    end
end
-- END toggleSwitch

When you then want to toggle a switch you can add one simple line in the scenes "Luup" tab (Replace DeviceID with the switches DeviceID):
Code: [Select]
toggleSwitch(DeviceID,nil)Example: toggleSwitch(10,nil)

When you want to toggle a Motion Sensor:
Code: [Select]
toggleSwitch(DeviceID,nil,"urn:micasaverde-com:serviceId:SecuritySensor1")
Hope this helps a little...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 09:03:29 am
OK thanks, think I will have to do some learning and play around with it then.

I was able to turn on say a lamp with one button and turn if off with the same button, short press for on scene long press for off scene etc.

Please see attached
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 15, 2012, 09:07:53 am
Exactly, and if you now use the function I provided above you have the same functionality with only 4 Buttons. Instead of using two scenes for one light, you just use one...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 09:11:12 am
Exactly, and if you now use the function I provided above you have the same functionality with only 4 Buttons. Instead of using two scenes for one light, you just use one...

OK cool many thanks for your insight! I will certainly see if I can get this code working.

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on August 15, 2012, 09:43:09 am
Also, note that ToggleState is an available action that you can pick on the Advanced tab in the scene editor. So you can set up a single scene to toggle a light / appliance module. Then assign that scene to a minimote button. No code required. (Previous context. (http://forum.micasaverde.com/index.php/topic,11381.msg81487.html#msg81487))

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 15, 2012, 09:45:17 am
Note that ToggleState is an available action that you can pick on the Advanced tab in the scene editor. So you can set up a single scene to toggle a light / appliance module. Then assign that scene to a minimote button. No code required. (Previous context. (http://forum.micasaverde.com/index.php/topic,11381.msg81487.html#msg81487))

oh, very true! sorry for making that so complicated, but maybe you still learned something, sooner or later you'll get into coding  :P
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 15, 2012, 09:53:23 am
Also, note that ToggleState is an available action that you can pick on the Advanced tab in the scene editor. So you can set up a single scene to toggle a light / appliance module. Then assign that scene to a minimote button. No code required. (Previous context. (http://forum.micasaverde.com/index.php/topic,11381.msg81487.html#msg81487))

Sounds even better! But yes I am sure I will need to learn some code at some stage.

Thank you both very much for your help! I've been using VeraLite for a day & a half, still trying to get the basics configured so I am back to where I was with my old system.

Cheers
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 16, 2012, 06:13:56 am
Sorry I looked in the Advanced tab whilst editing a scene, however I cannot see where you setup a Toggle ?

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on August 16, 2012, 07:20:02 am
In the Pick a device pull-down, pick the device; click Add. The device is added to the list. Then, in its pull-down menu, pick the ToggleState action.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 16, 2012, 08:11:40 am
In the Pick a device pull-down, pick the device; click Add. The device is added to the list. Then, in its pull-down menu, pick the ToggleState action.

Excellent that works! I created a new scene called Fireplace On/Off set it to toggle in advanced. I then assigned that scene to Button 2 ON (Short Press) on my minimote. Which also works.

So now presumably I can use Button 2 OFF (Long Press) for another scene !

EDIT:

After created new On/Off scenes using the ToggleState option, the button setup for the minimote now looks like this (See Screenshot). As a result I have freed up the four OFF buttons for use with other scenes.

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on August 17, 2012, 01:42:45 am
nice job  8)

You know, rather than using the minimote to control single devices I have scenes like "Watch a Movie" or "Kids are in Bed" or "Comming Home" or "Morning". These scenes then control mutliple lights, alarms and other devices. Maybe that approach would help you too.

Enjoy your vera...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Gilles75 on August 18, 2012, 09:35:37 am
It work's fine

just one more point for the setup , I had to add 5 variables to get the all four upper buttons to work ...
-- variable 241 = 1
-- variable 242 = 1
-- variable 243 = 1
-- variable 244 = 1
-- variable 250 = 0
then use the "poll now" and press "learn" for three second (twice) to make it works
  http://www.pepper1.net/zwavedb/device/27

best regards
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: pgrover516 on August 20, 2012, 01:49:14 am
What is the advantage of adding the minimote to VeraLite over just directly adding the Z-wave modules to the minimote ?
Thanks
Understand your frustration and don't know if there's a workaround, but to answer the above question the advantage is that when added to vera it can control (by way of a scene) devices beyond lights, such as open door lock, arm motion sensors, etc. Even with lights I may want a single press to turn one on, another off, and dim a third for example
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: cw-kid on August 20, 2012, 06:44:29 am
What is the advantage of adding the minimote to VeraLite over just directly adding the Z-wave modules to the minimote ?
Thanks
Understand your frustration and don't know if there's a workaround, but to answer the above question the advantage is that when added to vera it can control (by way of a scene) devices beyond lights, such as open door lock, arm motion sensors, etc. Even with lights I may want a single press to turn one on, another off, and dim a third for example

Thanks, I certainly see the advantage of using the minimote as a scene controller in Vera now and I will be keeping the minimote device added in to Vera and not going back to how I had the minimote setup before.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on September 18, 2012, 01:29:49 pm
Played with the Minimote (MM) a bit over the weekend to look into options related to controlling dimmers.

By default the MM acts as a scene controller, triggering 4x2 scenes in Vera, losing the ability to change the level of a dimmer from the MM, as previously discussed. There are some workarounds.

Experimental / Beta
Given this uses poorly or un-documented low-level Z-Wave commands and features, and has some delays that may be device dependent, we'll need to see how well the stuff below works for folks. It was tested with a Leviton and a GE plug-in dimmer. 

Method A - Make it a regular secondary controller
Put the following in the Luup sandbox (Apps > Develop Apps > Test Luup code (Lua)):

Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 0'},1)(Replace <nodeID> with the nodeID of the MM; this is what is shown on the MM's Settings tab as ID (not Device #).)

Then, while holding the top left button on the MM, click the Go button on the Dashboard.
(The SendData command does not get put on the Wake-Up queue; hence the clunky method to keep the MM awake by holding a button and then sending the command.)

This now controls dimmers the same way as when the MM is primary.

Notes:
Having the MM control the lights directly is nice, but because Vera isn't in the loop, the status of the dimmer is not updated in Vera until the next poll. So make sure to enable polling for any devices controlled by the MM that support instant status updates (e.g. Leviton), as by default Vera does not poll these devices. Also, for faster updates, you could write a scene on a periodic timer that polls all devices controlled by the MM, and see how it performs.

This method is easy to enable and may suffice if only controlling some lighting devices. If you also want the scene capability in Vera to do more complex things (with some of the buttons), then consider Method B.


To get back to the scene mode Vera normally configures the MM in (and required for Method B):
Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 1'},1)


Method B - Write scenes to control dimming
Write 2 scenes per button. One for activated and one for de-activated. Besides the appropriate trigger, put the following under the scene's Luup tab:

A scene is activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIMMER_ON_VALUE = <dimmerOnValue>
local MINIMOTE_BUTTON = <mmButton>
local MINIMOTE_DEVID  = <mmDevID>
local DIMMING_TIMEOUT = 4
local POLL_HOLDOFF    = 3

local SC1_SID = 'urn:micasaverde-com:serviceId:SceneController1'
local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local HD1_SID = 'urn:micasaverde-com:serviceId:HaDevice1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local lastSceneTime        = luup.variable_get(SC1_SID,'LastSceneTime', MINIMOTE_DEVID) or os.time()
local lastSceneDeactivated = luup.variable_get(SC1_SID,'sl_SceneDeactivated', MINIMOTE_DEVID) or 0
local loadLevelStatus      = luup.variable_get(D1_SID,'LoadLevelStatus', DIMMER_DEVID)

lastSceneTime        = tonumber(lastSceneTime)
lastSceneDeactivated = tonumber(lastSceneDeactivated)
loadLevelStatus      = tonumber(loadLevelStatus)

if ((os.difftime(os.time(),lastSceneTime) < DIMMING_TIMEOUT) and (lastSceneDeactivated == MINIMOTE_BUTTON)) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 5'},1)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
else
  if (loadLevelStatus > 0) then
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 0'},1)
  else
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 '..DIMMER_ON_VALUE..''},1)
  end
  luup.sleep(1000*POLL_HOLDOFF)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
end
Replace the following in the first 5 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.
<dimmerOnValue> with the level the dimmer should be set to (1-100, 255=previous).
<mmButton> with the number of the MM's button (1-4).
<mmDevID> with the Device# from the MM's Settings tab.


A scene is de-activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIM_THRESHOLD   = 50

local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local loadLevelTarget = luup.variable_get(D1_SID,'LoadLevelTarget',DIMMER_DEVID)

loadLevelTarget = tonumber(loadLevelTarget)

if (loadLevelTarget >= DIM_THRESHOLD) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x78 99'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','1',DIMMER_DEVID)
else
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x38 1'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','100',DIMMER_DEVID)
end

return true
Replace the following in the first 2 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.


A short press of the button should now toggle the dimmer on or off. When turned on, it will be set at the provisioned level (DIMMER_ON_VALUE); you can use 255 to 'go-to-previous'.

A long press of the button will start ramping up or down. The press only kicks it off, letting go of the button doesn't stop it; to stop the ramping do a short press.

A poll is done after all state changes, so the status in Vera should update.

Notes:
Because the short press double as on/off and stop action, you can not go to the off state immediately after changing the level; there is a time-out, currently set at 4 seconds.

Also, the poll after on/off is done with a delay, currently set at 3 seconds, to give the dimmer time to ramp up/down to the final state; otherwise the wrong value will be polled.

So when testing this, keep the slightly altered button behavior and the time-outs/delays in mind.



Method C - Program buttons to send any command
The MM allows the buttons to emit any sequence of bytes to any group of nodes, making it a very customizable device. This could be leveraged, however there appear to be only 2 events per button, so combining on/off and dimming with just 1 button may not be possibe. Given that, plus the complexity to get it set up, as well as the partial implementation of some of the command classes, making it a one-time-only/first-time-right kind of exercise, I decided to consider this method out-of-scope.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Roly on September 20, 2012, 06:34:01 am
Hi guys i am having a problem with my minimote i have latest software on minimote and on my veralite if i set up scenes and run them by the web page all is ok but when i set them up on the minimote button one is short office on button one long office off , then button 2 short stairs on button 2 long stairs off when i push the office on button all works ok if i push the stairs off button it turns office on and not what is programmed under the button any ideas i' stumped
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on September 20, 2012, 08:48:01 am
@Roly,

Welcome!

Have you verified that the trigger for the Stairs Off scene is correct? ('A scene is de-activated', 'Which scene' = 2)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Roly on September 20, 2012, 08:55:37 am
Hi oTi@
I defaulted the veralite and set it all up again and its all working ok now woohoo so now minimote is working ok with scenes
I have only had my veralite for 2 days now so i am still learning i only have 4 devices so far but i have ordered a 4 way switch with leds on when the circuits are off
so looking forward to getting it at the moment 3 of the units are all wired up on my desk while i am playing 4th is setup in office on the light switch and its a mini dimmer
I have X10 in the house as well but after playing with zwave i will be getting rid of it and going all zwave i am very impressed with it looking forward to playing with it

thanks for your response i appreciate it

regards
Roly
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Roly on September 20, 2012, 06:38:42 pm
well its happened again i defaulted the veralite set it all up again setup scenes programmed buttons on minimote for the scenes btn 1 short office light on btn 1 long office light off, btn 2 short office desk on btn 2 long office desk off all worked fine performed a network repair to setup the routes on network and now the buttons on minimote are all up the creek btn 1 short office light on works fine btn 1 long office desk off but it turns btn 2 on (office desk on) instead all the btns with long press no longer work correctly but if i connect using my mobile using Home Buddy scenes all work ok as they should and in web browser i run the scenes and they work as well so it looks like the minimote has screwed up somehow
any ideas guys
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on September 20, 2012, 10:48:45 pm
On the Settings tab for the Minimote, does it actually list Minimote as the Model?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Roly on September 20, 2012, 11:26:13 pm
Hello again oTi@
yes it does say _Minimote
so i am a little confused but i am getting better at programming it can default it up and have it running in no time
so i will have a play again later on tonight and see if i can figure out what i am doing wrong no one else seems to be having problems with it just me so has to be something stupid i am doing but i have to admit if not for the problem with the minimote this stuff is awsum compared to x10 i also have Dynalight in the house and i am thinking of pulling it out and putting all zwave gear in i love it
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Roly on September 20, 2012, 11:41:19 pm
Ok oTi@ i removed the minimote and paired it up as secondary and setup the buttons the same as i had before with the scenes and now all is ok again so now i am relly confused never mind at least it is working
question does anyone know how to change the state of the button on the mini wall lighting module from switch on to momentry without having to pull the switch out from the wall and pushing the button 6 times is it in the sofware somewhere to change or is this the only way to change it


Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on September 21, 2012, 08:04:34 am
yes it does say _Minimote
That looks like the default name from the top of the window, not the Model; see screenshot.

[...] removed the minimote and paired it up [...] and now all is ok again so now i am relly confused [...]
Well, so was I when my Minimote was triggering the wrong scenes. This only happened once, and I noticed that the Model field was blank, so I figured the Minimote must not have been included properly / not recognized properly. Excluding and including it, fixed it.

Quote
[...] change the state of the button on the mini wall lighting module from switch on to momentry without having to pull the switch out from the wall and pushing the button 6 times [...]
I'm not aware of another method, but I haven't looked for one either.

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on February 10, 2013, 09:03:10 am
Hi all,

Any idea how to get battery level reports to vera? each time the device wakes up?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on February 10, 2013, 09:42:46 am
I think Vera may request reports on her own, fixed, 3-hour schedule. (You could write some code to get it every wake-up; don't know how reliable it would be.)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on February 10, 2013, 11:44:00 am
Hi @oTi,

Okay many thnaks - email notifications when battery goes below set level should work fine then.  cheers.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on February 11, 2013, 05:04:22 am
I think Vera may request reports on her own, fixed, 3-hour schedule. (You could write some code to get it every wake-up; don't know how reliable it would be.)

Are you sure? I can set up a trigger "Battery Level goes below..." from the minimote in a scene. But since the minimote does not have any battery-level variable in the advanced tab,  I am now wondering if this will really work.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on February 11, 2013, 06:35:52 am
Hi Chixie,

This is my thought also but if vera is getting data and just not displaying it graphicaly then should work.  I have set up notificastions as you mention on my two minimotes and I shall post back with how I get on when the battery dies!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on February 11, 2013, 10:55:14 am
@LightsOn, @chixxi,

My note was intended as a general statement on how the battery level reporting appears to work and what you could attempt to get more frequent updates.

For the MiniMote specifically, mine does not show battery level either. Which might make sense, as the MiniMote does not wake-up regularly / does not support waking-up.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on February 11, 2013, 11:19:47 am
thanks @oTi,

I will test as stated above and keep this thread updfated with finding.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on February 11, 2013, 01:50:36 pm
[...] the MiniMote does not [...] support waking-up.
And does not support reporting battery level...

(And it appears battery level reports cannot be auto-pushed, so are always requested by the controller.)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on February 12, 2013, 08:08:41 am
so if they are only requested by vera then if the minimote is asleep then no report will be sent thus the liklyhood of the notification / alerts working is minimal then :-(
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on February 12, 2013, 09:26:36 am
Yep, precisely; that's my expectation. In fact, the device does not appear to support the commands for battery level stuff. (So even if it were awake, nothing would happen.)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Xanlle on March 22, 2013, 06:51:46 am
I connected the MiniMote to my vera 2 as described in the first post. My problem is that it takes a long time for a scene to be activated. I push a button on the remote, nothing happens....7 second later the light comes on. When I execute the same scene through the vera 2 web interface the light comes on within a second or so.
Any way to speed up the process with the MiniMote?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: akbooer on March 22, 2013, 07:16:10 am
@Xanlle

Try again tomorrow and all might be well... or try a network 'heal'.  It's likely that the routing for this battery powered device is not yet fully accommodated in the Z-Wave network routing.  I have many of these devices - they work 'instantly' and reliably (if the underlying network is robustly configured).

oTi@, @LightsOn

Not so sure of the concern about battery level?  These are, at least, rechargeable and last for ages.  Also, do they not give some indication on the LEDs that they are low on battery charge anyway?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Pashak on May 20, 2013, 05:16:57 am
Hey Guys,
Got an issue with my minimote. I had everything setup and working for a while.

Then button 1 stopped working, so i read through this thread, followed someones suggestions of, reset by holding associate and learn for 10 seconds, then remove and readd.

i should have thought about it then, and removed it first, then reset, then readded, but too late now.

when i went to remove it, it didnt find anything to remove when i hit the remove button. so tried including, and veralite not detecting that either.
so i force deleted the object in devices tab, which it did. but i still cant readd the device.
have tried rebooting vera also

So im out of ideas.
any help is appreciated

Andrew
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on May 20, 2013, 05:45:34 am
Have you tried remove and add via Advanced section not remote section or device section. Try full power option. Just a thought.

Sent from my HTC HD2 using Tapatalk 2

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on July 28, 2013, 04:29:19 pm
Hi Pashak,

I have one remote and one broken up and encased in another box for a doorbell so the doorbell one is a pain to pull apart to get it to wake up.

I have found that when the battery dies I need to manually wake it up after charging and "configure node" again for all to resume normal functions.

As such with out a battery notification its a pain.  no major drama just a pain - really would have made sense to just have this on the firmware when released but never mind.  ::)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Aaron on September 01, 2013, 10:43:02 pm
uys,
This thread is huge so I have not read it all... can these be used simply to link to Virtual Devices in Vera so to act like a "dumb" set of buttons to trigger Scenes?

thx
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on September 02, 2013, 01:28:52 am
uys,
This thread is huge so I have not read it all... can these be used simply to link to Virtual Devices in Vera so to act like a "dumb" set of buttons to trigger Scenes?

thx

pretty lazy!

buttons can only be linked to scenes, but naturally you could make a scene which controls the virtal switches...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Aaron on September 02, 2013, 01:36:15 am
thx for the info.

I don't think it is "lazy" not to attempt read through every single post on a thread this old, and this large. The thread is labeled "How to" but the first post has not been updated in 2 years. IF my answer is in there I might have not found it if it was buried as most of the posts look to be completely unrelated to my question.

again, thank you. I might get one to link to my security scenes.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on September 02, 2013, 01:42:53 am
I don't think it is "lazy" not to attempt read through every single post on a thread this old, and this large. The thread is labeled "How to" but the first post has not been updated in 2 years. IF my answer is in there I might have not found it if it was buried as most of the posts look to be completely unrelated to my question.

I am the creator of the first post in this thread, and instead of complaining about it not beeing updated with all the info you lazy guys are wishing to find without any effort, you should be greatfull I provided any info at all for free!!!!! Remember, you bought that vera from micasaverde, not from all the guys in this forum which actually make this a useable device... And looking at the number of posts you have you should get that too.

But let's just let it bee and keep this thread clean. Hope you will achieve what you wish with the knowledge you have now.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Aaron on September 02, 2013, 10:47:32 am
I don't think it is "lazy" not to attempt read through every single post on a thread this old, and this large. The thread is labeled "How to" but the first post has not been updated in 2 years. IF my answer is in there I might have not found it if it was buried as most of the posts look to be completely unrelated to my question.

I am the creator of the first post in this thread, and instead of complaining about it not beeing updated with all the info you lazy guys are wishing to find without any effort, you should be greatfull I provided any info at all for free!!!!! Remember, you bought that vera from micasaverde, not from all the guys in this forum which actually make this a useable device... And looking at the number of posts you have you should get that too.

But let's just let it bee and keep this thread clean. Hope you will achieve what you wish with the knowledge you have now.

I was not complaining - I was stating a fact as to one reason I did not read all 75 posts. I did not expect you to up date post #1 - nor did I say I expected it. 

I, and everyone else I've seen here, respects and appreciated the contributions from the community members. This is why the Vera is a great device - not because of MCV.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on September 02, 2013, 10:56:33 am
Quote
This is why the Vera is a great device - not because of MCV.

This is the very best and most truthful argument for the vera being a good device I have ever seen!

Anyway, did you find a solution to your problem?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Aaron on September 02, 2013, 03:54:29 pm
Quote
This is why the Vera is a great device - not because of MCV.

This is the very best and most truthful argument for the vera being a good device I have ever seen!

Anyway, did you find a solution to your problem?

Looks like I need to buy two MiniMote to link to my Security Scenes so I can hang them on my wall.  Any reason 'not' to do this?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on September 03, 2013, 01:28:58 am
Do you need to control 16 security scenes?! Each minimote can handle up to 8 scenes, even more if you work with double click's and so on (I think someone describe this in this thread...).

Another option would be to just use an old smartphone or build a box with the number of switches you need and use binary sensors (for example the new fibaro legd-rgb-controller which has 4 inputs...)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: trenelly on October 19, 2013, 11:00:18 am
HI,

I have tried to get my minimote to control scenes in the vera. I have the latest firmware (1.5.622) in the vera and the latest in the minimote also (1.17). The minimote will be detected by the vera pretty much as described, but when I come to connect scenes with buttons in the 'Scenes' tab I have no list of buttons to link with scenes. No lists of scenes either. Just two text lines - "Activate the following scenes when the buttons are turned on:   " and "Activate the following scenes when the buttons are turned off:" Not at all what I've seen in any instructions.

I did manage to use triggers to link the scenes to buttons. However, the button numbers are a bit odd. What I would imagine to be button 1 (short press on the top left button) is actually button 4, a long press on the same button is button 6 and a long press on the top right button is button 7.

Any ideas what's going on. Do I have an odd firmware version in Vera?

Any help appreciated.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: chixxi on October 21, 2013, 07:18:01 am
I have added and removed very many minimotes and never seen such a behaviour.

I would almost guess that it has something to do with your brwoser, but I guess you did a proper reload after installing the minimote? Maybe you could try to reload lua a couple of times, and also try to reconfigure your minimote.

Also it would be interessting what values you see in the advanced tab to compare with our setups.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: trenelly on October 21, 2013, 08:13:45 am
Hi,

Thanks for your suggestions, I will try them out tonight. I will also post some views of the _scene controller properties tabs that I'm getting.

Jason
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: trenelly on October 21, 2013, 11:22:54 am
Hi,

Please find a set of images from the properties of the scene controller.

I charged the device and found that led red led changed to blue which I though was promising. However, it made no difference.

I'm using MS Internet Explorer on Win 7, or Moxilla Firefox on Ubuntu.

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: trenelly on October 21, 2013, 04:06:32 pm
Hi,

I reset my Vera to factory defaults and reloaded all my devices and it worked as described.  Thanks for all your help.

Jason
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: hogie on November 17, 2013, 05:44:18 pm
Greetings all,

Does anyone know what the LEDs on the mini mote actually mean? Blue? Red? Flashing together?

And I see a little hole down near the Learn button. A hard reset? Any use for anyone?

Cheers,

ian
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: SM2k on January 14, 2014, 05:59:39 pm
My minimote has firmware version 1.14, so I need to update it before it will work. All my machines are mac's so the update software obviously won't run. When I try to access the device using VMware, it doesn't show up as a USB device. I'm at a loss as to how I can get this thing working. Any ideas?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on January 15, 2014, 05:18:19 am
@SM2k

I do not know how to do this under a mac - if you are using VMware to run windows all should work - have you tried a different cable? also ensuring the drivers are installed on the virtual machine so as it can be recognised properly?

You may just find it quicker and easier to pester a friend or neighbour to borrow there PC for 5 minutes to quickly run the firmware update?

Good luck  :)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: SM2k on January 15, 2014, 02:42:43 pm
It turned out to be a bad USB cable. :P I had switched cables and ruled that out. I guess I have 2 bad cables.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on January 16, 2014, 04:29:26 am
@SM2k

Glad you got it sorted :-)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on January 16, 2014, 06:24:37 am
It turned out to be a bad USB cable. :P I had switched cables and ruled that out. I guess I have 2 bad cables.
Been there, done that... These were the Aeotec-supplied cables, presumably?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: SM2k on January 16, 2014, 09:38:22 am
Been there, done that... These were the Aeotec-supplied cables, presumably?

Neither faulty cable I used came from Aeotec. :)

I had the time to mess around with the minimote last night and am happy to report that it works like a champ. For reference I'm using firmware version 1.18.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: tomgru on April 04, 2014, 01:49:35 am
Hey there... have read this ( and many other ) posts regarding dimming, and just have a question, more to learn all-up.

I have a Leviton scene controller that I can set button associations to certain lamp modules, that then allow me to use the rocker on the bottom to dim.

Why can't I set associations to the minimote?  What am I missing?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on April 04, 2014, 03:42:32 am
Hi Tomgru,

Not sure I follow you.  Do you mean you want to be able to dim and brighten lights with the mini mote? If so then you need to create a scene that increases or decreases the lights by an amount, say 5% then associate that scene with the button so each press increases or decreases the light level.  I read some place people are doing this.

If you wanted to associate the remote with the lamp directly I believe this too is possible but I have not done it as I have everything managed through Vera.

hope I helped? if not let me know and I shall try again :-)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: RexBeckett on April 04, 2014, 03:52:55 am
As @LightsOn says, some people use a scene to increase/decrease dimmer levels with each button push. In case you want to try that, here's some code.

Fade up by 10%:
Code: [Select]
local dID = 99
local curlev = tonumber((luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",dID)))
local newlev = curlev + 10
if newlev > 100 then newlev = 100 end
if newlev ~= curlev then
     luup.call_action("urn:upnp-org:serviceId:Dimming1","SetLoadLevelTarget",{newLoadlevelTarget=newlev},dID)
end


Fade down by 10%:
Code: [Select]
local dID = 99
local curlev = tonumber((luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",dID)))
local newlev = curlev - 10
if newlev < 0 then newlev = 0 end
if newlev ~= curlev then
     luup.call_action("urn:upnp-org:serviceId:Dimming1","SetLoadLevelTarget",{newLoadlevelTarget=newlev},dID)
end 
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on May 03, 2014, 10:23:20 am
I have a Leviton scene controller that I can set button associations to certain lamp modules, that then allow me to use the rocker on the bottom to dim.

Why can't I set associations to the minimote?  What am I missing?
The MiniMote (as well as other devices like it) may have several modes of operation that determine what the buttons do. Vera sets up the MM in such a mode that the MM sends 'simple button pushes' (through an association), which then serve as triggers for scenes inside Vera.

As others said, you can emulate dimming using scenes.

Personally, I have an MM set up in its more native mode of controlling 4 lights directly, including dimming (short push toggles on/off, long push toggles dim up/down).

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: gw0udm on May 05, 2014, 09:01:25 am
Personally, I have an MM set up in its more native mode of controlling 4 lights directly, including dimming (short push toggles on/off, long push toggles dim up/down).

How you do this alongside a Vera? I tried to link my minimote up with some dimmers etc but it wouldn't work. When I included the minimote into the Vera network I then couldn't associate devices directly. I would prefer to have the dim up and down from the buttons and I don't mind about the scene control.

Thanks

James
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: oTi@ on May 05, 2014, 09:59:47 am
@gw0udm,

Welcome!

Some things were explored a while back in (e.g.) this post (http://forum.micasaverde.com/index.php/topic,8630.msg86209.html#msg86209). Have a look at Method A.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: gw0udm on May 05, 2014, 02:25:10 pm
Thanks for that.

Sorry must have missed it, will investigate.

James
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: gw0udm on May 05, 2014, 02:53:12 pm
Hmm, just tried Method A and I just get 'message failed'. I have set the Node ID to the correct value. I've tried resetting the minimote and removing it and adding it back again without success.

Any ideas?

James
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: timmy2 on May 07, 2014, 02:14:33 pm
I don't really have time to prepare the code specifically for you, but it is really simple, and as alrady said in this forum and the wiki there a lot's of example's.

I use a function, just add this to "Apps => Develop Apps => Edit Startup Lua":

Chixxi, is the code you provided here, back in 2012, still your recommended solution given the availability of the Scene | Advanced Tab "ToggleState function" described at the end of this tutorial (http://www.vesternet.com/resources/application-notes/apnt-41#.U2pGbighOKU)?  I'm reaching research-overload this AM but between recommendations like yours, plug-ins like Combination Switch, and the cited tutorial I'm unsure which approach to take for using a Minimote to turn a group of lights on or off.

All I do know is that a simple toggle could lead to problems like in a multi-light scene where one light is already on, therefore a simple toggle could never turn them all off or on.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: timmy2 on May 07, 2014, 02:19:29 pm
In the Pick a device pull-down, pick the device; click Add. The device is added to the list. Then, in its pull-down menu, pick the ToggleState action.

Excellent that works! I created a new scene called Fireplace On/Off set it to toggle in advanced. I then assigned that scene to Button 2 ON (Short Press) on my minimote. Which also works.

So now presumably I can use Button 2 OFF (Long Press) for another scene !


You wrote this a while back. Now that you've lived with it a while I'm wondering how you handle instances where a device is already on when you think you're turning on via the Minimote?  Worse, in a multiple light scene, what if one light is already on -- wouldn't this lead to never being able turn them all on or off?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: timmy2 on May 07, 2014, 02:20:56 pm
It work's fine

just one more point for the setup , I had to add 5 variables to get the all four upper buttons to work ...
-- variable 241 = 1
-- variable 242 = 1
...

Giles75, what led you to needing to add these variables?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: NickTheGreat on July 25, 2014, 11:04:13 am
I'm getting tired of finding this thing dead and unable to shut off my lights every few months. 

I know there's a low battery trigger, and I assume I could use Veralerts or something to send me and email when it's getting low? 
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on July 25, 2014, 11:10:09 am
Not sure this does have a battery level indicator dose it?  I don't think you can get a status update via polling - if you could would be great.  I think you can but keep it charged and use the Selection box ticked to have it not be configured manually by vera on network heal.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: akbooer on July 25, 2014, 11:58:33 am
I don't think the battery low notification actually works.  This has been discussed elsewhere on the forum.  Don't think anyone else came up with a solution. You can't complain about the battery life, though, mine last months and months. And it's a quick job to recharge.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: NickTheGreat on July 28, 2014, 10:45:16 am
Ok that makes me feel better.  I had tried the notification with zero success!

The battery life is nice, but the zero warning isn't cool.  Thank goodness for the Autohomation app, otherwise I wouldn't be able to shut my lights off some evenings! 
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: futzle on August 29, 2014, 01:37:58 am
For those who are wondering, the MiniMote works the same in UI7.  You've just got to be careful how you configure it.

Stay away from the MiniMote's own configuration "Devices" > Minimote > "Select scenes for device buttons".  If you go here and answer the seemingly innocuous question about how many buttons your scene controller has, you'll break the tenuous support for short-press/long-press scene activation.  The hallmark signs of having done this is that the button numbering goes wonky, and pressing button 3 triggers scene 2 (and most button presses don't trigger any scene at all).  The only fix I ever found was to exclude and the re-include the Minimote.

Instead, create or edit the scene that you intend for the button to control, and specify that the scene is triggered by the device "Minimote".  Choose "A scene is activated" (short press) or "A scene is de-activated" (long press), and pick the number 1 or 2 (top row of buttons) or 3 or 4 (bottom row) as the "scene number".
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: LightsOn on August 29, 2014, 05:11:59 am
Hi @futzle,

Thank you for that :-)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: jquincy on September 12, 2014, 07:54:27 pm
I have copied the code RexBeckett   created to a scene that controls a wall outlet dimmer. Do I need to add some additional code? When I set this as a scene with the minimote the lights just fade to minimun
Title: Can't assign scenes to Aeon Labs remote controller!!!
Post by: Lona on September 17, 2014, 05:01:51 pm
I purchased two Aeon Labs remote controller and I have tried everything to assign scenes into it but no success :(
I purchased this type http://www.zwaveproducts.com/Zwave-Controllers/Zwave-Remotes/Aeon-Labs-DSA03202-v1-Z-Wave-Minimote.html?IXsid=jl25u8fahpi7q1apgas3b2ave7

I created a scene, added e trigger and selected "A scene is activated"  and put for scene number the digit 1. I saved the changes and the button 1 doesn't do anything. 
I am trying on both remotes and getting the same results. 
Please help if you have any experience with this. 
Title: Re: Can't assign scenes to Aeon Labs remote controller!!!
Post by: Grwebster on September 17, 2014, 08:17:25 pm
Can you control a single light with the controller.  Just need to make sure the controller is working prior to going further.  Could just be a problem with how you are activating the scene.  Could you put the trigger right in the scene you want to run?


Sent from my iPad using Tapatalk
Title: Re: Can't assign scenes to Aeon Labs remote controller!!!
Post by: Lona on September 17, 2014, 10:31:32 pm
How do I setup the controller to turn ON/OFF a single light??
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: bdevendorf on September 20, 2014, 09:58:50 am
I just purchased a Minimote and am having a similar problem in that I cannot associate scenes to the buttons. I have tried both the device options method, and (after a hard reset/delete/re-add) the Scene edit assignment. Neither work. The Minimote's All On and All Off functions do correctly control my lights.

I have also done a firmware update on the mini mote, in hopes this would help, and it did not.

Any suggestions would be helpful.
Title: Re: Can't assign scenes to Aeon Labs remote controller!!!
Post by: NickTheGreat on September 22, 2014, 03:04:58 pm
How do I setup the controller to turn ON/OFF a single light??

I ended up making a scene that was just the single light.  Kinda a workaround, and I'd be willing to stand corrected  :D
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: loti on September 22, 2014, 04:33:34 pm
I managed to work minimote and keyfob to control 4 scenes but I can't make work long press function which supposed to allow me control 8 scenes. after adding minimote or keyfob to veralite (UI7) and going to "Select scenes for device buttons" menu first time it asks "How many buttons does your Scene Controller have ?", I tried to use 4 and 8, but only 4 scenes with short presses are working.

any suggestions?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Jams on October 16, 2014, 04:39:49 am
@loti

Have a look at post #107 in this thread by futzle.  He explains how to do what you want in UI7



Sent from my Nexus 7 using Tapatalk

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: garrettwp on October 16, 2014, 03:17:18 pm
@loti

Have a look at post #107 in this thread by futzle.  He explains how to do what you want in UI7



Sent from my Nexus 7 using Tapatalk

He = She

- Garrett

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: loti on October 17, 2014, 01:53:33 am
@loti

Have a look at post #107 in this thread by futzle.  He explains how to do what you want in UI7


Sent from my Nexus 7 using Tapatalk

He = She

- Garrett

Thank you Jams, thank you garrettwp, thank you futzle, thank you she :)
I'll play with that today according to futzle's instruction, hope it will works :)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Mike on October 19, 2014, 01:00:45 pm
I just received my minimote today and followed the instructions in the first post. Everything is working great with UI6.

Thanks!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: bdevendorf on November 18, 2014, 08:02:36 pm
I never received any assistance for my issue. :(

I did however, decide to kick it up a notch. I figured out the issue I had with the MiniMote on UI7, and wanted to share for anyone else having the same issue I did.

I was setting it up using the Generic Z-Wave Device in Vera (I have the Vera Lite). It would show up, as a scene controller (working, right? nope). No matter how I set it up (through scenes or device) it wouldn't control any scenes. The all on and all off worked. Nothing else. I'm rather technical, so this was very frustrating.

How I Got it Working
I selected the Other Devices category and chose: Other ZWave device
It automatically identified it with 4 activate and 4 deactivate options (in the device). I was able to program both in device and in scenes.
I also held the Learn button down for ~3 seconds before clicking the Finish button on the scene definitions (or when changing the options in the device) to put the MiniMote into a mode where it would listen to the Vera Lite.

The MiniMote works PERFECTLY!

Other things to note: I did a firmware update. I had to do this on a real PC, as the update is Windows, and it did not work on VMWare Fusion (from my Mac) - wouldn't see the MiniMote through the USB port. I also ensured all MiniMote / Scene controller entries for the device were deleted from Vera first, and then executed the MiniMote reset (hold down Learn and Associate buttons until the lights stop blinking).

Hopefully this helps at least one other person stuck as I was.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: hmspain on November 19, 2014, 10:36:49 am
My Minimotes (3) all seem to go insane periodically.  the solution I found was to REMOVE them from the Zwave network, RE-ADD them to Zwave, and configure the scenes (once), save, wait for the confirmation.  Make sure to log back into your Vera after you configure the scenes; I assumed the set didn't work because I didn't see the scenes... :-)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: wbeard6142 on November 29, 2014, 12:24:07 am
I followed the directions from posting 47. To make the minimote dim the lights up and down for a long press, but when I short press to save the light level.  It jumps back to 100%.  How can I get the minimote to stop at the light level I want when holding down the long press to dim.

Thanks
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: stumax on December 15, 2014, 11:43:01 am
Just bought a new Vera Edge with UI7 after my Vera 2 recently died. My 2 minimotes worked perfectly as long as the Vera 2 had been working.

Now I'm unable to get these to work with the new Vera Edge. I have tried the UI7 instructions in posts #106 and #119 without any luck. I have paired them using both "Other zwave device" and "Generic wave device." I have tried configuring with and without setting the number of buttons in the device settings. I have tried adding the remote directly to scenes using device triggers "scene number X is activated" (and deactivated). I can't get any combination of these to work. Between each attempt, I have reset the remote by pressing the associate and learn buttons until the blinking stops.

Do you think that it's the new Vera Edge? It has been working well so far except for this problem. Please let me know if you have any suggestions. Thanks.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: ng191 on December 16, 2014, 05:01:34 am

Now I'm unable to get these to work with the new Vera Edge. I have tried the UI7 instructions in posts #106 and #119 without any luck. I have paired them using both "Other zwave device" and "Generic wave device." I have tried configuring with and without setting the number of buttons in the device settings. I have tried adding the remote directly to scenes using device triggers "scene number X is activated" (and deactivated). I can't get any combination of these to work. Between each attempt, I have reset the remote by pressing the associate and learn buttons until the blinking stops.

I'm in a similar boat. I added one of mine a few weeks ago. It shows up correctly and has settings for scenes for both on and off states for all 4 buttons. I added a new one today and don't get the off states, and despite binding it to scenes nothing appears to happen when I press any buttons.

This is on a Vera3.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: stumax on December 16, 2014, 09:45:07 am
Just bought a new Vera Edge with UI7 after my Vera 2 recently died. My 2 minimotes worked perfectly as long as the Vera 2 had been working.

Now I'm unable to get these to work with the new Vera Edge. I have tried the UI7 instructions in posts #106 and #119 without any luck. I have paired them using both "Other zwave device" and "Generic wave device." I have tried configuring with and without setting the number of buttons in the device settings. I have tried adding the remote directly to scenes using device triggers "scene number X is activated" (and deactivated). I can't get any combination of these to work. Between each attempt, I have reset the remote by pressing the associate and learn buttons until the blinking stops.

Do you think that it's the new Vera Edge? It has been working well so far except for this problem. Please let me know if you have any suggestions. Thanks.

Follow-up: I have both minimotes working now on Vera Edge with UI7. Both were added through the inclusion mode enabled via the iOS Homewave app. It's on the Vera settings screen. I assume the the external inclusion button would work too.

I did not configure the number of buttons in the device settings. Each button was added individually as a device trigger for one of eight different scenes. All working properly now.

As above, I couldn't get the minimotes to work through the vera web interface.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Raladic on December 23, 2014, 07:46:01 pm
Anyone having success with Vera Edge and UI7 through the web?

I have the device included in Vera and I did the reconfigure, which polled the version number from the device (I have updated it to the latest firmware before that), so I believe Vera can talk to the remote just fine.

However pressing or holding the scene buttons does nothing despite everything looking okay in the Vera config.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: AZJowett on January 19, 2015, 07:50:59 am
How To Set Up Vera3 with MiniMote DSA03202v1:

1. Go To: http://www.aeon-labs.com
2. Update your MiniMote Firmware to 1.19.
3. Reset your MiniMote: Hold "Blank" and "Join" buttons down together until the lights stop blinking.
4. On your Vera3 (go to "Devices=>Add a Device=>Hand Held=>Key Fob (Z-Wave Me Key Fob).
5. Go through the Device setup until the Vera3 z-wave light is blinking slowly.
6. Take your MiniMote close to the Vera3 and push the "Join? button".
7. The z-wave LED on the Vera3 and the LEDs on the MiniMote will start to blink fast and stop again.
8. Wait a couple of minutes until the lua engine is restarted.  Wait 2 minutes.  The z-wave light on the Vera3 may or may not be blinking anymore.  You might need to click elsewhere to exit the setup now.

SEQUENCE:  Set Up Scene using Manual Trigger-Get Scene Number-Edit Scene-Change Manual Trigger to Remote-Choose Activate (for Short push) OR Deactivate (for Long push) then enter Scene number you are editing-Validate and finish.

9. Go to "Scenes" on the Vera3.  Setup the scenes you want using the Device=Manual.  You will come back later and tie it to the MiniMote.  Setup one scene for ON(Activated) and one scene for OFF(Deactivated) as each of the 4 buttons on the MiniMote can be programed to do 2 things.

Write down the Scene numbers to identify it/them for the next step.

10. Go to ?Scenes? again.  NOW edit each scene you just set up and change the trigger to be a Device then choose the MiniMote.  It will show that the MiniMote is now the trigger but the internal scene number must be assigned from 9 above.  Once done, validate then go to Finish.

11. LAST-Go to "Devices" on the Vera3.  Choose the MiniMote to Edit.  Go to Select Scenes to be assigned to Buttons.  Assign Scenes set up above to each Button.

MiniMote:  On = Short press of button     OFF = Long press of button

Now the scenes should show all the buttons assigned and the scenes with the scene #s.  Be sure to click Save Changes.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: dmitryos on January 19, 2015, 05:43:09 pm
Hi guys,

Also worked a bit with the minimote and this delay really makes calling the scenes a bit unpredictable (if you need for example slightly open the blinds but need to wait this delay until Vera gets the next stop command).

Do you know if this is a remote controller hardware behavior or somewhat in the mios code? Any possible way to bypass it (tried to reset last scene variable in mios but it didn't help).

Would really appreciate any suggestion,

Thank you,
Dmitry

...
Notes:
Because the short press double as on/off and stop action, you can not go to the off state immediately after changing the level; there is a time-out, currently set at 4 seconds.

Also, the poll after on/off is done with a delay, currently set at 3 seconds, to give the dimmer time to ramp up/down to the final state; otherwise the wrong value will be polled.

So when testing this, keep the slightly altered button behavior and the time-outs/delays in mind.

...
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Kullematz on January 20, 2015, 07:59:12 am
I don't see/feel there is a (noteworthy) delay with my two Minimote under VeraLite UI5.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: dmitryos on January 20, 2015, 08:02:36 am
Ok. But if you click a button (short click) and then in a second click it (short one)  again - will the scene runs twice? or the second time it will skipped?
Thank you,
Dmitry
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Kullematz on January 20, 2015, 08:37:44 am
I would say skipped, because there is interruption in the scene. On key1 I have two scenes, short click for shutters up, long click for shutter down. Let's assume the shutter is down and I click (short) key1 inside a second or so twice, there will be no interruption in the movement of the shutter.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: alsie on February 12, 2015, 05:26:59 pm
Hello,

I tried to connect a minimote to my new Vera Edge. I followed the whole procedure, the device is listed correctly.

the scenes are existing and running well   but the remote push buttons fail to activate the commands .

What else can I do ?

Thank you ,

Dan                                                       
 
So after updating my Vera2 to UI5 / Firmware 1.5.233 I just added the Aeon Labs MiniMote (Firmware 1.17) as a secondary zwave scene controller, AND IT'S A FULLY FUNCTIONAL SCENE CONTROLLER!

I can run predefined scenes on the vera using the Minimote! See Screenshots attached:

HowTo (or at least what worked in my case):

1. Go To: http://www.aeon-labs.com/site/products/view/3/
2. Update your MiniMote Firmware to 1.17.
3. Reset your MiniMote: Hold "Associate" and "Learn" until the lights stop blinking.
4. On your Vera2 (has to run on UI5 1.5.233 or 1.5.255) go to "Devices=>Add a Device=>Advanced zwave devices" Add a secondary" battery operated handheld remotes"
5. Now the zwave light on your vera starts blinking slowly.
6. Take your MiniMote close to the vera and push the "Learn Button".
7. The zwave led on the vera and the leds on the minimote will start to blink fast and stop again.
8. Wait a couple of minutes until the lua engine is restarted and the zwave light on the vera is not blinking anymore.
9. The go to "Devices=>Other" in the vera UI5. Click the wrench-button (settings) of the device "_MiniMote".
10. Choose which scene to run on which button in the "Scenes"-Tab
11. Close the Settings Window and click save.
12. Wait for lua to restart and try.

Works on ver2 and vera3.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: dwaleke on May 30, 2015, 12:06:53 pm
I recently upgraded my Vera Edge to v1.7.1142 and now the Minimotes no longer work correctly.

I followed all the info from the last few pages and no matter what i do I can only program button 1 and 2 correctly on a quick press.

So avoid 1.7.1142 if you use the Minimote and the Edge.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: copperlab on May 30, 2015, 04:28:06 pm
Same problem here. Have tried setting up without going to scene selection on device. And through scene selection on device. Button 1 does nothing. Button 2 does what is assigned to button one. And so on. So weird.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: mronayne on June 02, 2015, 11:36:40 am
Programming the MiniMote was never very straightforward but I had it figured out. That is until I upgraded to the Vere Edge Firmware version 1.7.1142. No, as with other people, I can only get Button 1 to work. I can at least get it to turn one scene on (short push) / off (long push). Buttons 2,3,4 are all non-functional! What a mess!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: jcomega on June 06, 2015, 09:29:40 am
Hello,

Since the last UI7 update, the problem has been solved. (1.7.599)

Thanks for the devellopers ! ;D
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: MNB on June 12, 2015, 01:51:51 pm
Ok, I'm going to ask a simple question has anyone got the Gen5 Aeon Lab Minimote to work with the latest UI7 (vera 3)? If so would you take some time and edumate (sic) us on how you were able to get your minimote to work with all eight buttons? Parsing through the various threads I see how to setup the older version minimotes but not the newer one. Many thanxs in advance.

Update - I started a new thread specifically centered around UI7 and the Gen 5 MiniMote.     "Aeon Labs MiniMote (gen5) functional Scene Controller in UI.7 version 1.7.599" http://forum.micasaverde.com/index.php/topic,32670.0.html (http://forum.micasaverde.com/index.php/topic,32670.0.html) and provide the procedure to getting it to work.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: shallowearth on June 12, 2015, 08:33:01 pm
To add the device I recommend using the Handheld Aeon KeyFob if you have the V1 MiniMote and the Aeon KeyFob Zwave+ if you have the V2 MiniMote
Keep the MiniMote very close to Vera when pairing, and let the timer run out to give the Vera time to configure the remote, then hit Exit.

The Button Mapping has changed:
Note that if you don't get 8 buttons listed on the Scene's menu by default the pairing wasn't fully successful, delete and start again.

Button 1 (upper left) - 1
Button 1 Long Press -2
Button 2 (upper right) - 3
Button 2 Long Press - 4
Button 3 (lower left)- 5
Button 3 Long Press- 6
Button 4 (lower right)- 7
Button 4 Long Press- 8
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: VeraEdger on June 13, 2015, 07:13:37 am
So this one works fine with Vera Edge, running latest juni firmware?

edit: yes it works.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: tb001 on June 27, 2015, 01:20:36 pm
How To Set Up Vera3 with MiniMote DSA03202v1:

1. Go To: http://www.aeon-labs.com
2. Update your MiniMote Firmware to 1.19.
3. Reset your MiniMote: Hold "Blank" and "Join" buttons down together until the lights stop blinking.
4. On your Vera3 (go to "Devices=>Add a Device=>Hand Held=>Key Fob (Z-Wave Me Key Fob).
5. Go through the Device setup until the Vera3 z-wave light is blinking slowly.
6. Take your MiniMote close to the Vera3 and push the "Join? button".
7. The z-wave LED on the Vera3 and the LEDs on the MiniMote will start to blink fast and stop again.
8. Wait a couple of minutes until the lua engine is restarted.  Wait 2 minutes.  The z-wave light on the Vera3 may or may not be blinking anymore.  You might need to click elsewhere to exit the setup now.

SEQUENCE:  Set Up Scene using Manual Trigger-Get Scene Number-Edit Scene-Change Manual Trigger to Remote-Choose Activate (for Short push) OR Deactivate (for Long push) then enter Scene number you are editing-Validate and finish.

9. Go to "Scenes" on the Vera3.  Setup the scenes you want using the Device=Manual.  You will come back later and tie it to the MiniMote.  Setup one scene for ON(Activated) and one scene for OFF(Deactivated) as each of the 4 buttons on the MiniMote can be programed to do 2 things.

Write down the Scene numbers to identify it/them for the next step.

10. Go to ?Scenes? again.  NOW edit each scene you just set up and change the trigger to be a Device then choose the MiniMote.  It will show that the MiniMote is now the trigger but the internal scene number must be assigned from 9 above.  Once done, validate then go to Finish.

11. LAST-Go to "Devices" on the Vera3.  Choose the MiniMote to Edit.  Go to Select Scenes to be assigned to Buttons.  Assign Scenes set up above to each Button.

MiniMote:  On = Short press of button     OFF = Long press of button

Now the scenes should show all the buttons assigned and the scenes with the scene #s.  Be sure to click Save Changes.


Thanks for writing this up. We bought a 3-pack on amazon. Setup was easy, thanks to the instructions above, and just loving these things! So far, working extremely reliably at a fair distance from our controller. I can easily see getting more of them. The only challenging part is watching everyone point them at the device they're trying to control and not laughing :)
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: ionizer on August 06, 2015, 02:00:00 pm
Ok, so I did this:

Upgraded firmware on remote
went to UI5 in Vera Lite and added handheld remote battery
went to vera lite device with remote and hit "JOIN" button (my bottom panel only has +/- Device, a blank button an a Join wifi looking button)
When i hit join, the remote blinked blue and the blinking orange button on the veralite went off.  nothing seemed to be happening other than the remote kept blinking blue. thinking nothing was going on after 15 seconds, i hit join again.
After a very short time after that, the remote blinked orange and then went off.
The vera lite remained with the 2nd light not being on.

I went back to reload the UI5 GUI and i dont see anything added.

should i try again? did i do something wrong?
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: tec on October 05, 2015, 09:49:55 pm
With UI7 (1.7.690), It appears to have gotten simpler.  I paired the the MiniMote per the instructions.  I did need to refresh the Vera page after waiting a few minutes to get the MiniMote to show up.  The steps regarding scene numbers were confusing and now appear to be unnecessary.  I was able to create a scene with MiniMote as the trigger.  Then 'Devices->MiniMote->Select scenes for devices buttons'.  I was given 8 choices, a tap and long press for each numbered button and the associated scene.  Button 1 worked for both tap and long press.

I finally feel this z-wave stuff is starting to live up to its promise.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: bratan on October 15, 2015, 06:34:19 pm
I just got my second minimote and I think something is wrong with it...
I updated firmware to 1.19
It won't reset when I hold blank and join buttons.  When I hold them, blue light blinks once, then red one is blinking slowly...forever!
I tried adding it to my Vera Light per instructions, but it doesn't see it... Is it defective?
There's a tiny hole under Join button. Could it be hard reset switch? It can also be light sensor, in that case I don't want to poke it with needle :)

EDIT: Figured it out. Looks like "join" button wasn't making good contact. Instead of pressing both buttons simultaneously, I held "join" first and then "blank" and it worked. After reset it paired with Vera.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: battars on November 01, 2015, 01:47:20 am
Is there a way to keep the minimote in secondary mode, so that you can use its native dimming capabilities, and link one of the buttons to a ZRTSI? The problem I'm having on my ZRTSI II is that once a zwave node in it is linked to Vera, that particular node is missing from the list of nodes you can press to include.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: bsteimel on January 06, 2016, 02:16:01 pm
Has anyone got the MiniMote to report battery percentage?  I just had a remote go out and realized that I don't see it on the screen.  It would be really nice. 
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: akbooer on January 06, 2016, 04:15:48 pm
No.  It's never worked for me.  On the plus side, however, they do hold a charge for a few months at a time, I find.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: NickTheGreat on January 07, 2016, 02:03:42 pm
No.  It's never worked for me.  On the plus side, however, they do hold a charge for a few months at a time, I find.

It would be nice to know in advance.  You're right though, I only have to charge mine a few times a year. 
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: shallowearth on January 07, 2016, 02:38:22 pm
Yes, I just set my polling to 0 on these devices.  Since the Battery reporting doesn't work, and they move arround in the mesh, seems no reason to have polling turned on, further conserving battery life.
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: kyb2012 on January 17, 2016, 07:04:24 pm
This is the best thread to get the minimote working.  Didn't realize that I had to use low power inclusion and hold the minimote close to vera during inclusion.
Everything worked.
Thank you, thank you, thank you!!!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: zant on April 10, 2016, 05:18:16 am
Played with the Minimote (MM) a bit over the weekend to look into options related to controlling dimmers.

By default the MM acts as a scene controller, triggering 4x2 scenes in Vera, losing the ability to change the level of a dimmer from the MM, as previously discussed. There are some workarounds.

Experimental / Beta
Given this uses poorly or un-documented low-level Z-Wave commands and features, and has some delays that may be device dependent, we'll need to see how well the stuff below works for folks. It was tested with a Leviton and a GE plug-in dimmer. 

Method A - Make it a regular secondary controller
Put the following in the Luup sandbox (Apps > Develop Apps > Test Luup code (Lua)):

Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 0'},1)(Replace <nodeID> with the nodeID of the MM; this is what is shown on the MM's Settings tab as ID (not Device #).)

Then, while holding the top left button on the MM, click the Go button on the Dashboard.
(The SendData command does not get put on the Wake-Up queue; hence the clunky method to keep the MM awake by holding a button and then sending the command.)

This now controls dimmers the same way as when the MM is primary.

Notes:
Having the MM control the lights directly is nice, but because Vera isn't in the loop, the status of the dimmer is not updated in Vera until the next poll. So make sure to enable polling for any devices controlled by the MM that support instant status updates (e.g. Leviton), as by default Vera does not poll these devices. Also, for faster updates, you could write a scene on a periodic timer that polls all devices controlled by the MM, and see how it performs.

This method is easy to enable and may suffice if only controlling some lighting devices. If you also want the scene capability in Vera to do more complex things (with some of the buttons), then consider Method B.


To get back to the scene mode Vera normally configures the MM in (and required for Method B):
Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 1'},1)


Method B - Write scenes to control dimming
Write 2 scenes per button. One for activated and one for de-activated. Besides the appropriate trigger, put the following under the scene's Luup tab:

A scene is activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIMMER_ON_VALUE = <dimmerOnValue>
local MINIMOTE_BUTTON = <mmButton>
local MINIMOTE_DEVID  = <mmDevID>
local DIMMING_TIMEOUT = 4
local POLL_HOLDOFF    = 3

local SC1_SID = 'urn:micasaverde-com:serviceId:SceneController1'
local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local HD1_SID = 'urn:micasaverde-com:serviceId:HaDevice1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local lastSceneTime        = luup.variable_get(SC1_SID,'LastSceneTime', MINIMOTE_DEVID) or os.time()
local lastSceneDeactivated = luup.variable_get(SC1_SID,'sl_SceneDeactivated', MINIMOTE_DEVID) or 0
local loadLevelStatus      = luup.variable_get(D1_SID,'LoadLevelStatus', DIMMER_DEVID)

lastSceneTime        = tonumber(lastSceneTime)
lastSceneDeactivated = tonumber(lastSceneDeactivated)
loadLevelStatus      = tonumber(loadLevelStatus)

if ((os.difftime(os.time(),lastSceneTime) < DIMMING_TIMEOUT) and (lastSceneDeactivated == MINIMOTE_BUTTON)) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 5'},1)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
else
  if (loadLevelStatus > 0) then
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 0'},1)
  else
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 '..DIMMER_ON_VALUE..''},1)
  end
  luup.sleep(1000*POLL_HOLDOFF)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
end
Replace the following in the first 5 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.
<dimmerOnValue> with the level the dimmer should be set to (1-100, 255=previous).
<mmButton> with the number of the MM's button (1-4).
<mmDevID> with the Device# from the MM's Settings tab.


A scene is de-activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIM_THRESHOLD   = 50

local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local loadLevelTarget = luup.variable_get(D1_SID,'LoadLevelTarget',DIMMER_DEVID)

loadLevelTarget = tonumber(loadLevelTarget)

if (loadLevelTarget >= DIM_THRESHOLD) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x78 99'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','1',DIMMER_DEVID)
else
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x38 1'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','100',DIMMER_DEVID)
end

return true
Replace the following in the first 2 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.


A short press of the button should now toggle the dimmer on or off. When turned on, it will be set at the provisioned level (DIMMER_ON_VALUE); you can use 255 to 'go-to-previous'.

A long press of the button will start ramping up or down. The press only kicks it off, letting go of the button doesn't stop it; to stop the ramping do a short press.

A poll is done after all state changes, so the status in Vera should update.

Notes:
Because the short press double as on/off and stop action, you can not go to the off state immediately after changing the level; there is a time-out, currently set at 4 seconds.

Also, the poll after on/off is done with a delay, currently set at 3 seconds, to give the dimmer time to ramp up/down to the final state; otherwise the wrong value will be polled.

So when testing this, keep the slightly altered button behavior and the time-outs/delays in mind.



Method C - Program buttons to send any command
The MM allows the buttons to emit any sequence of bytes to any group of nodes, making it a very customizable device. This could be leveraged, however there appear to be only 2 events per button, so combining on/off and dimming with just 1 button may not be possibe. Given that, plus the complexity to get it set up, as well as the partial implementation of some of the command classes, making it a one-time-only/first-time-right kind of exercise, I decided to consider this method out-of-scope.

Hallo oTi@,

I'am new and don't have enough knowledge to programm a scene as you mentioned above.
I have a VeraPlus a Minimite and a Fibaro FDG212 Dimmer. I want to dim the light with the Minimote.
The mentioned Metode B is the functionality a want to use.
I copied this in the scene luup tab as mentioned (and changed the id's etc)
I use button 4 of the MM so i made one scene for activation and a other scene for de-activation.
Then in the device tab of my VeraPlus (UI7) I pick my Minimote and use for buton 4 short press the activation scene luup and buton 4 long press the de-activation scene luup.

All this did not result in a working dimming functionally.
Can you please help me to make this work for me.
Thanks in advance...

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: jjwatmyself on June 05, 2016, 10:59:48 am
I'm using a Vera 2 on UI5 version 1.5.673 and Minimote Firmware 1.19 (US)

Credits to
jasondag http://forum.micasaverde.com/index.php/topic,29493.msg241697.html#msg241697 (http://forum.micasaverde.com/index.php/topic,29493.msg241697.html#msg241697)
cpmilaz http://forum.micasaverde.com/index.php/topic,29493.msg218577.html#msg218577 (http://forum.micasaverde.com/index.php/topic,29493.msg218577.html#msg218577)
pmnb http://forum.micasaverde.com/index.php/topic,29493.msg278848.html#msg278848 (http://forum.micasaverde.com/index.php/topic,29493.msg278848.html#msg278848)

To summarize "LastSceneID" is the only value being set correctly and modification are required to have use of all buttons.  You'll need a new .json and .xml file.

CAUTION: Do not overlay existing files.  The process below results in new .json and .xml files on your Vera 2.  The steps for UI7 do not require the use of the .xml file. The .json files for UI5 and UI7 ARE NOT THE SAME, DO NOT MIX AND MATCH!!

Step by step:
1. From UI5 Goto APPS
2. Click Develop apps
3. Click Luup Files
4. Download "D_SceneController1.json", and save as "D_SceneControllerAeonMinimote.json"
5. On your PC, edit and change "sl_SceneActivated", to "LastSceneID"
6. Download "D_SceneController1.xml", and save as "D_SceneControllerAeonMinimote.xml"
7. On your PC, edit and change "D_SceneController1.json", to "D_SceneControllerAeonMinimote.json" (fixed typo Jan 8 2017)
8. On UI5 upload files and check/tick reload luup engine.
9. Goto the device page and choose advanced options
10. Set 'device_file' to "D_SceneControllerAeonMinimote.xml"
11. Change NumButtons from 4 to 8 (you will now ignore the Deactivate buttons 1-8 after changing this)
12. Change PollSettings to 0 (because the Minimote never wakes up)
13. Go to Device Options, add configuration settings, Variable=250 Data size=1 byte Dec, Desired Value=1

To configure scenes:
1. On UI5 goto the device page and choose Scenes
2. Activate Scenes Button #1,3,5,7 are Short Press for Minimote buttons 1,2,3,4
3. Activate Scenes Button #2,4,6,8 are Long Press for Minimote buttons 1,2,3,4
(Ignore all Deactivate Scenes 1-8)

Here are a scene that is useful for thermostats that support heat and cool to set temp based on what mode the thermostat is currently set to.  In my experience, during the summer, houses run warmer and in the winter houses run cooler.  Having a single button that when pressed will set the comfortable temp is nice.  I have this scene set for a short press and ESM set to a long press on same button.

Code: [Select]
local DevID_Therm = 11
local EnvStatus = luup.variable_get("urn:upnp-org:serviceId:HVAC_UserOperatingMode1", "ModeStatus", DevID_Therm)

luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1",
                   "SetEnergyModeTarget", {NewModeTarget = "Normal"},DevID_Therm)

if (EnvStatus == "CoolOn") then
   luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool",
                   "SetCurrentSetpoint", {NewCurrentSetpoint = "74"},DevID_Therm)
elseif (EnvStatus == "HeatOn") then
   luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat",
                   "SetCurrentSetpoint", {NewCurrentSetpoint = "68"},DevID_Therm)
end


# Scene 2:
local DevID_Therm = 11

luup.call_action("urn:upnp-org:serviceId:HVAC_UserOperatingMode1",
                   "SetEnergyModeTarget", {NewModeTarget = "EnergySavingsMode"},DevID_Therm)

Enjoy!!
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: Gogzy on December 28, 2016, 09:13:49 am
Hello all,

I would like to know is it possible to have the minimote or any other remote to use as a remote from a car?
I have the Vera Plus and UI7 latest firmware. I allways use the phone to change the mode (home/away), but that is not so practical. So can i use minimote to do that?
I dont know what will happen when the minimote iout of range is and then again in range? Does it work automaticaly? Can i just switch mode when i am in range of the Vera? Or do i need to include it every time i get in range again?

Thanks a lot


Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: shallowearth on December 28, 2016, 10:37:31 am
If you set polling of the minimote to 0, you can take it out of range and bring it back in range, and you should be fine
Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: jjwatmyself on January 08, 2017, 01:04:50 pm
Hello all,

I would like to know is it possible to have the minimote or any other remote to use as a remote from a car?
I have the Vera Plus and UI7 latest firmware. I allways use the phone to change the mode (home/away), but that is not so practical. So can i use minimote to do that?
I dont know what will happen when the minimote iout of range is and then again in range? Does it work automaticaly? Can i just switch mode when i am in range of the Vera? Or do i need to include it every time i get in range again?

Thanks a lot

If your phone is on Wifi and you have AnyMote Smart Remote installed on your phone, you can program HTTP GET Buttons and activate any Vera scene. I used the Notifications feature on this app in order to display buttons permanently on my Android pull down and lock screen. Turn on screen, press button. Done.  This gives you a very convenient scene controller on the Android lock screen with up to 15 buttons. Personally I use the Anymote Notifications feature for IR and have some Vera scenes on the remotes within the app. But I like your idea about doing things from the car with easy to access buttons.  That would save me from opening Home Buddy!  :D

Here is the HTTP GET URL.  Just change the scene umber on the end.

http://IP:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=15

Title: Re: HowTo: Aeon Labs MiniMote fully functional Scene Controller in UI5!
Post by: dannieboiz on May 31, 2017, 12:37:41 am
Played with the Minimote (MM) a bit over the weekend to look into options related to controlling dimmers.

By default the MM acts as a scene controller, triggering 4x2 scenes in Vera, losing the ability to change the level of a dimmer from the MM, as previously discussed. There are some workarounds.

Experimental / Beta
Given this uses poorly or un-documented low-level Z-Wave commands and features, and has some delays that may be device dependent, we'll need to see how well the stuff below works for folks. It was tested with a Leviton and a GE plug-in dimmer. 

Method A - Make it a regular secondary controller
Put the following in the Luup sandbox (Apps > Develop Apps > Test Luup code (Lua)):

Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 0'},1)(Replace <nodeID> with the nodeID of the MM; this is what is shown on the MM's Settings tab as ID (not Device #).)

Then, while holding the top left button on the MM, click the Go button on the Dashboard.
(The SendData command does not get put on the Wake-Up queue; hence the clunky method to keep the MM awake by holding a button and then sending the command.)

This now controls dimmers the same way as when the MM is primary.

Notes:
Having the MM control the lights directly is nice, but because Vera isn't in the loop, the status of the dimmer is not updated in Vera until the next poll. So make sure to enable polling for any devices controlled by the MM that support instant status updates (e.g. Leviton), as by default Vera does not poll these devices. Also, for faster updates, you could write a scene on a periodic timer that polls all devices controlled by the MM, and see how it performs.

This method is easy to enable and may suffice if only controlling some lighting devices. If you also want the scene capability in Vera to do more complex things (with some of the buttons), then consider Method B.


To get back to the scene mode Vera normally configures the MM in (and required for Method B):
Code: [Select]
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='<nodeID>',Data='x70 4 250 1 1'},1)


Method B - Write scenes to control dimming
Write 2 scenes per button. One for activated and one for de-activated. Besides the appropriate trigger, put the following under the scene's Luup tab:

A scene is activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIMMER_ON_VALUE = <dimmerOnValue>
local MINIMOTE_BUTTON = <mmButton>
local MINIMOTE_DEVID  = <mmDevID>
local DIMMING_TIMEOUT = 4
local POLL_HOLDOFF    = 3

local SC1_SID = 'urn:micasaverde-com:serviceId:SceneController1'
local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local HD1_SID = 'urn:micasaverde-com:serviceId:HaDevice1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local lastSceneTime        = luup.variable_get(SC1_SID,'LastSceneTime', MINIMOTE_DEVID) or os.time()
local lastSceneDeactivated = luup.variable_get(SC1_SID,'sl_SceneDeactivated', MINIMOTE_DEVID) or 0
local loadLevelStatus      = luup.variable_get(D1_SID,'LoadLevelStatus', DIMMER_DEVID)

lastSceneTime        = tonumber(lastSceneTime)
lastSceneDeactivated = tonumber(lastSceneDeactivated)
loadLevelStatus      = tonumber(loadLevelStatus)

if ((os.difftime(os.time(),lastSceneTime) < DIMMING_TIMEOUT) and (lastSceneDeactivated == MINIMOTE_BUTTON)) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 5'},1)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
else
  if (loadLevelStatus > 0) then
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 0'},1)
  else
    luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x20 1 '..DIMMER_ON_VALUE..''},1)
  end
  luup.sleep(1000*POLL_HOLDOFF)
  luup.call_action(HD1_SID,'Poll',{},DIMMER_DEVID)
  return true
end
Replace the following in the first 5 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.
<dimmerOnValue> with the level the dimmer should be set to (1-100, 255=previous).
<mmButton> with the number of the MM's button (1-4).
<mmDevID> with the Device# from the MM's Settings tab.


A scene is de-activated:
Code: [Select]
local DIMMER_DEVID    = <dimmerDevID>
local DIMMER_NODEID   = <dimmerNodeID>
local DIM_THRESHOLD   = 50

local ZN1_SID = 'urn:micasaverde-com:serviceId:ZWaveNetwork1'
local D1_SID  = 'urn:upnp-org:serviceId:Dimming1'

local loadLevelTarget = luup.variable_get(D1_SID,'LoadLevelTarget',DIMMER_DEVID)

loadLevelTarget = tonumber(loadLevelTarget)

if (loadLevelTarget >= DIM_THRESHOLD) then
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x78 99'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','1',DIMMER_DEVID)
else
  luup.call_action(ZN1_SID,'SendData',{Node=''..DIMMER_NODEID..'',Data='x26 4 x38 1'},1)
  luup.variable_set(D1_SID,'LoadLevelTarget','100',DIMMER_DEVID)
end

return true
Replace the following in the first 2 lines:
<dimmerDevID> with the Device# from the dimmer's Settings tab.
<dimmerNodeID> with the ID from the dimmer's Settings tab.


A short press of the button should now toggle the dimmer on or off. When turned on, it will be set at the provisioned level (DIMMER_ON_VALUE); you can use 255 to 'go-to-previous'.

A long press of the button will start ramping up or down. The press only kicks it off, letting go of the button doesn't stop it; to stop the ramping do a short press.

A poll is done after all state changes, so the status in Vera should update.

Notes:
Because the short press double as on/off and stop action, you can not go to the off state immediately after changing the level; there is a time-out, currently set at 4 seconds.

Also, the poll after on/off is done with a delay, currently set at 3 seconds, to give the dimmer time to ramp up/down to the final state; otherwise the wrong value will be polled.

So when testing this, keep the slightly altered button behavior and the time-outs/delays in mind.



Method C - Program buttons to send any command
The MM allows the buttons to emit any sequence of bytes to any group of nodes, making it a very customizable device. This could be leveraged, however there appear to be only 2 events per button, so combining on/off and dimming with just 1 button may not be possibe. Given that, plus the complexity to get it set up, as well as the partial implementation of some of the command classes, making it a one-time-only/first-time-right kind of exercise, I decided to consider this method out-of-scope.

Just got my minimotes, I setup 2 scenes, one for turning off a light and and one for turning on, assigning them to button 1 and 2.

I'm trying to figure out how to get Method A to work in the above workaround to be able to also control the dim level but I'm not quite sure exactly what steps follow. I did the LUA code with my node ID, and got a confirmation that the message was sent, then my remote no longer send the commands until I did the revert code in the above steps. Was there additional steps to make the dimmer work properly? Ultimately what I'd like to do is button 1 is off with short press and long press lower the light and the same thing for button 2, short press on, long press up the light. Or really any method that provides me the ability to turn on/off and dim the lights.