Santa bought me an Edge !! Will get it up and running soon and report back on the whole TRV stuff…I know what to look for
I tested under UI5, work GREAT, but i have not working under UI7 Vera Edge
If you have an idea, please send me reply
All - sorry I do not have UI7 so have not tested it all using that version.
Not sure how much help I can give on that but if anyone wants to show what is says in the logs I’ll have a look
I've just had an email conversation with Aaron B, the main luup developer at Vera. He said that ui7 works as we're all expecting it to; it will try to send a command once to battery operated devices, and then wait for a wakeup before trying again.
If that’s correct and UI7 will only try once to communicate with a sleeping device then that’s a major step forward - UI5 tries 5 times to communicate and that’s a real problem as it slows down everything else.
Before trying my code on UI7 I’d be tempted to test the built in UI7 TRV handling as one attempt may be something we can live with, without the need for any extra code?
If anyone can confirm that it does work ok natively on UI7 then I might be tempted to try an upgrade to UI7 or get an Edge myself.
[quote=“dunked”]
I’ve just had an email conversation with Aaron B, the main luup developer at Vera. He said that ui7 works as we’re all expecting it to; it will try to send a command once to battery operated devices, and then wait for a wakeup before trying again.
If that’s correct and UI7 will only try once to communicate with a sleeping device then that’s a major step forward - UI5 tries 5 times to communicate and that’s a real problem as it slows down everything else.
Before trying my code on UI7 I’d be tempted to test the built in UI7 TRV handling as one attempt may be something we can live with, without the need for any extra code?
If anyone can confirm that it does work ok natively on UI7 then I might be tempted to try an upgrade to UI7 or get an Edge myself.[/quote]
You know it’s not going to work! Anything that “works” on Vera is only an illusion!
BZ
Does not working native on Vera UI7
And your code with too…nothink
I’ve just attached a slightly updated version in the original post - details in that (but don’t get too excited).
I’m going to try and turn this into a plug-in - I’ve always wondered how those work. That way it’ll be more standard.
I’ve been slowly moving my TRVs away from my Heating Vera back to my main Vera 3 - and so far it’s going pretty well - I now have 12 TRVs and a ton of other devices working quite nicely.
My main reason for moving them in the first place was that when the Vera starts doing it’s 5 retries on the Vera no other z-wave commands get through, and if another TRV starts doing 5 more retries just after the first one then you’re screwed for quite a while until it all eventually clears (could be 10, 15 or 30 minutes) or you reload.
So here are the lessons I have learned when doing this.
1). Danfoss LC TRVs need to have a SetPoint sent every time they wake up - which means the Vera will send one even if it hasn’t changed - that’s still the case with the newer 2014 firmware version. So there’s a not insignificant chance that one will be just a little too slow and you’ll get hit with the retries and everything else will stop - even if you haven’t done anything - which is really frustrating! So don’t have all your Danfoss LCs waking up every 240 seconds - that’s just increasing the chance for trouble - I have mine set to 600 seconds (and some even longer) - at least with the Danfoss LCs you can manually change them if you’re in a hurry.
2). StellaZ TRVs don’t have this problem so you can set them to 240 seconds without problems.
3). If you’re not using the code I posted at the start of this thread then don’t try to make too many TRV changes at once - if one misses then the next one will miss too and you’ll get the cascade effect and nothing will work for quite a while. If you are using my code then at least it will try to prevent setpoint changes getting missed and stop sending any more until it settles down.
4). StellaZ TRVS report actual temperature - but only if they are polled - All my StellaZ have wakeup and polling set to the same value (often 240) and I see regular temperature changes without any problems. I do note that others have had problems with this and the only difference I can see is that I’m using the code posted which checks the SP every time a TRV wakes up (which I’m guessing also does a Poll).
5). Try not to load the Vera too heavily with extra plugins and features, if you’ve got some clever data collection routines or complicated things running then there’s a fair chance that they might be running just as a TRV wakes up and make it get missed giving you the dreaded retries.
By way of a benchmark my main Vera 3 now has
6 x Danfoss 2014 LC TRVs
1 x Danfoss older LC TRVs (I have another one of these but it never seems to work properly so I’ve uninstalled it)
5 x StellaZ TRVs
1 x NorthQ Power Meter
1 x RFXTRX controller
2 x minimote
7 x Aeon Labs multisensor
4 x Everspring motion sensors
14 x Fibaro Dimmer switches
9 x Door sensors (mostly Fibaro)
4 x Various mains switches
so a fair amount of stuff being managed and it’s all working pretty well - just imagine how much simpler it would be if MCV fixed the code for SetPoint changes to battery devices
Cheers…
Thank you Dunked!
You are the BEST!
For your lua code work for me ALL valve! (Danfoss, Stella Z)
Hold on slajgaj, in another thread you said that you had the same problem I had, that you couldn’t even include the Stella. And now your saying that this works perfect. If it’s working, please explain how you got them included.
The latest version seems to work with UI7 (1.7.481). I’m using it with one Danfoss.
(I’m having problems with five additional Danfoss TRVs, but that seems to be unrelated to this code. I will post a separate thread for that.)
Dali!
Last in 3 days i contacted with Dunked and contiunelly seeing the LOG files. And after the conclusion he edited the new lua file.
And i tested and tryed this on my 2 Danfoss valve and 1 Stalle Z.
See the new lua version!
Great work!
My valve settings under the UI7 is the next:
Danfoss: wakeup: 300 sec.
StellaZ : wakeup: 240 sec.
“Edit Startup Lua” link and paste:
require(“my_TRV_module.lua”)
(Before of course “Upload” the my_TRV_module.lua !
Well slajgaj, that wasn’t really what I was asking. I guess it’s a language barrier issue.
Did you, or did you not have problems including/pairing the Stella? If so, please describe how you solved it.
Sorry for the off topic discussion, dunked.
Dali!
Yes, last week i was a problem with Stella Z valves. I was not pairing with Vera Edge.
That was original valves. I trying sometimes pairing with Vera but i have seem impossible.
And my friend said: let’s trying the original Stella valves first reset!
Yes, i was resetting and after the pairing was success.
That was all problem.
And the second problem was , so the valves (Danfoss and Stella) was not working with scenes.
And Dunked was helping for me.
See the Dunken’s first post
I can definitely confirm that fairly regularly if you unpair a Danfoss from one vera and then try to pair it with another it might not work until you have done the factory reset on the TRV. I’ve just moved a few like that and had to do that in several cases - in fact I ended up always doing the factory reset just to be sure before pairing.
Well, in my case a factory reset of the Danfoss seems to have caused more problems than before: [url=http://forum.micasaverde.com/index.php/topic,29850.0.html]http://forum.micasaverde.com/index.php/topic,29850.0.html[/url].
Okay slajgaj, so how did you manage to reset the Stella? I’ve tried at least 10 times to reset, but it doesn’t work for me.
Please describe how you did it step by step.
So:
Before you resetting the valve, you need unpair the device from Vera
- Pick up the ones battery from your valve
2 Push and hold the button (blue)
- Put the battery while you push the button and 3 sec. after let go.
But my problem is that the Stella is not reacting at all when I try to unpair or pair (like you said yours was also behaving). So unpairing is not possible. Nothing happens…
Dali!
On the top under the blue button can you see the LED is green or red if you press the blue button?
Or only “black” the LED?
because if the LED is black, then the valve is wrong.
No reaction whatsoever on the LED.
But it’s very unlikely that all three brand new Stella’s are faulty…