Re: ELV Max! Heating control system
Posted: Saturday 29 September 2018 15:55
Open source Home Automation System
https://forum.domoticz.com/
Pressing the buttons on the valve to switch from manual to automatic mode always get the temperature that was previously personalized in the plan of the day.mvzut wrote: Saturday 29 September 2018 15:50 About the manual and automatic modes: isn't this the expected behavior? Don't the setpoints only change at the programmed times? Or does it immediately change to the temperature programmed for that time block when you set it to Auto on the thermostat itself? What if you wait 5 minutes, is the setpoint updated then?
Hi,nono212 wrote: Sunday 30 September 2018 16:51 Can you write us the git pull comand ... I am unable to make the update
Regards
I'm not what you did, but if you usenono212 wrote: Sunday 30 September 2018 20:52 In fact I did a git pull but it did not work ...
But now I follow your advise I moved the max cube directory and did another git clone
Thanks
Code: Select all
git reset --hard
git pullGreat work!mvzut wrote: Thursday 27 September 2018 23:04 Hi all,
Finally I had some time to dive into the new Python plugin system. It was a steep learning curve, since I had no prior Python experience, but I think I succeeded, mostly... So here is my ELV/eQ-3 MAX! Python plugin for Domoticz!
https://github.com/mvzut/maxcube-Domoticz-plugin
...
Wow, you took the Lua script quite a bit further than any of us ever have, impressive work! You found a good way to circumvent the DID device create&update method which doesn't work anymore for a while. I was planning to do something similar myself for a long time, but in the end I decided to spend that time on a Python plugin, of which you have probably seen the result. Turned out to be less work than I thought, I found a good Max API and the plugin architecture makes certain tasks much easier compared to (external) Lua.Umberto wrote: Saturday 06 October 2018 9:11 Hi all,
Just to add my piece to the MAX scripting. I used the many lua scripts I have found on the forum to enhance it a bit (at least in my opinion) and wanted it to share it with you all.
Short answer: this is easy in the Python plugin system. But that's not what you wanted to hear I guessUmberto wrote: Saturday 06 October 2018 15:11 Thx for your feedback. I noticed that the script had some issues lately, therefor I decided to rewrite quite a bit (including sharing the functions which easily create and update a domoticz sensor just based on it's name, thought that would be interesting for someone).
However: I need some help!!
As mentioned: I would like to change the names of the levels I use for the mode and battery switch (can then be reused in the framework). Is there anyway that I can change the level names via JSON (have been searching some time now, couldn't find it). So: PLEASE HELP NEEDED.![]()
Code: Select all
http://x.x.x.x:8080/json.htm?addjvalue=0&addjvalue2=0&customimage=0&description=&idx=915&name=Test&options=TGV2ZWxOYW1lczpBdXRvfE1hbnVhbHxWYWNhdGlvbnxCb29zdDtMZXZlbEFjdGlvbnM6fHx8O1NlbGVjdG9yU3R5bGU6MDtMZXZlbE9mZkhpZGRlbjpmYWxzZQ%3D%3D&protected=false&strparam1=&strparam2=&switchtype=18&type=setused&used=trueCode: Select all
LevelNames:Auto|Manual|Vacation|Boost;LevelActions:|||;SelectorStyle:0;LevelOffHidden:falseThere are two ways to do this:Umberto wrote: Saturday 06 October 2018 16:21 Hi mvzut,
That's what I'm looking for. Thx. Will incorporate it into the lua part somewhere in the next days.
One question: how to encode texts myself? I also want to change the battery level names and have some other scripts that work similar. (if anyone interested: I have a Itho control system build which regulates the humidity of my bathroom.)
Thx in advance.
Code: Select all
pi@RasberryPi:~/domoticz/scripts/lua $ lua maxscript.lua
10/22/18 09:54:20 MAX! Script started...
lua: maxscript.lua:127: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
maxscript.lua:127: in function 'get_ID'
maxscript.lua:713: in main chunk
[C]: in ?
Code: Select all
http.request('http://192.168.1.21:'..DomoticzPort..'/json.htm?type=command¶m=addhardware&htype=15&port=1&name=MAX!&enabled=true')