- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Hello
I use the MT as an RGB Scene, and I do 9 colors scenes using a script.
but I notice that when I rotate the marking point from end to end or if I make more than one step I receive multiple values from the Color scene object (each step send a different value) and this make the Led Driver act in a wrong way.
So how to make the MT send the last value, or how to over come this using a Script
regards,
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
I don't think you can change the behavior of the MTP as it will send his value on each step made..
So the only way to control this is in your script, not perfect but it might do what you need..
If you add a delay before sending the value between each step you might reach what you need..
Add this and copy your current script after the os.sleep(), keep the rest unchanged
previouspid = storage.get('PID:' .. _SCRIPTNAME)
storage.set('PID:' .. _SCRIPTNAME, os.getpid())
if previouspid then
os.kill(previouspid, signal.SIGKILL)
end
os.sleep(3)
-- Put here your normal script and optional adjust the delay
storage.delete('PID:' .. _SCRIPTNAME)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Hello Nasser_ic-Syste,
sorry for the late reply! Can you share more information?
What kind of script you are using? Please share as well your ETS-Project.
Thomas
Application Design Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Hello @Thomas_Rohde
I can share screenshots from the ETS and here you are:
The point I mean shown clear in the group monitor
While the script will send the color regarding the scene value as mentioned here on page 27
While first I used an event-based script, but after I notice this behavior I use resident script instead!
Note: I use DALI RGBW DT8,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
I don't think you can change the behavior of the MTP as it will send his value on each step made..
So the only way to control this is in your script, not perfect but it might do what you need..
If you add a delay before sending the value between each step you might reach what you need..
Add this and copy your current script after the os.sleep(), keep the rest unchanged
previouspid = storage.get('PID:' .. _SCRIPTNAME)
storage.set('PID:' .. _SCRIPTNAME, os.getpid())
if previouspid then
os.kill(previouspid, signal.SIGKILL)
end
os.sleep(3)
-- Put here your normal script and optional adjust the delay
storage.delete('PID:' .. _SCRIPTNAME)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Thank You @Erwin-vd-Zwart
I Will Try your script, and I have no doubt that it will work fine 🙂
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
