This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Status feedback from script in LUA [SOLVED]
#4
A quick update on the matter. Maybe other members of the community having similar request….

I have just played a bit around with scripting after the excellent input from LM team and I know found a solution to my quest. I am not 100% sure if I did this by the book, but it seems to work pretty well during my testing.

SCOPE - WHAT I WANTED TO ACHIEVE:
- Rise Morning temperature:
When mode/scene is set to "night", rise the temperature 2 degrees at a given time in the morning (Scheduled script. Not IF in "away", "travel" or "home" mode).

- Lower Night temperature:
When mode/scene is set to "home" or "away" lower the night temperature (Not while in "night" or "travel" mode as the temperature is already set low in these modes)

- Visual scene detection
i also wanted a text in "Touch" which show which "mode/scene" is activated in the house. Very nice to actualy see the feedback on a screen or when operated remotely.

Other:
Later I can integrate other systems that can behave according to status of the house. Dimmed lights at bathroom at night. alarms, ventilation system etc.


HOW:
1. Dedicated Group addresses for "status"
First I made a New Group address for each of my per now 4-scenes/modes (Travel, away, home, night) and set these to be bolean (false/true)
I also made a New Group address for text ASCII-14 for a text Version of the status.
In total 5 New Group addresses

2. Change values (Event based script)
In each scene I have a script write a New value (false/true) to each of my 4 modes (grp.write).
And also set a text to the ascii Group address (Home, Away, Travel, Night) as text.
Everytime this script (home, away, travel, night) for the scene is triggered - the values are updated accordingly from the script in each scene.

3. Scheduled script
In the scheduled scripts I made a New scheduled script for "morning temp" and one for "night temp" at a give time.
Script is checking status of the "scene/mode" and setting the correct morning/night temperature if the certain criteria is met (IF than grp.write, value).

4. Touch:
And in touch I set up a widget showing the text and using status to show which scene is active.


As said - so far it is working well. Not 100% sure if it is by the book. Good Learning process and not too complicated.

Feel free to ask if you need any script examples.


HEATING:
The heating are A) Electrical floor heating for some rooms and a B) Panasonic CS-Z35 heat pump (AC) Connected to my Wiser through KNX Gateway from Intesisbox.
Schneider Wiser (homeLynk), Power Tags, DALI, Multitouch Pro, Panasonic Heating pump, Flexit balansed ventilation, HUE integration, Lemus Speaker system. Tibber integration.
Reply


Messages In This Thread
RE: Status feedback from script in LUA - by stemic01 - 08.12.2019, 13:43

Forum Jump: