Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
speedy 64
Hello.
So i use lua to start predefined programs in the RGBW module.
But, how do i know the ID to specify to start a perticuar program?
The numbers specified next to the RGBW program in the "device tab" does not correlate to the program ID witch is very confusing.
Example from my system is that Program 10 use ID 11!
ID 10 does not exist.
I did add and remove a program and thats when this happened.
This should never be able to happen as the device+ProgramID is connected to the specific device.
Update
-
All my LUA scenes are now not working as removing+adding a RGBW program changes all RGBW devices programID´s.
So if i want to remove a old program ex nr 10 and add a new one in the same spot (10) the new ID is "wrong" / different so you now have to change all your lua scenes to the new ID
-
Update 2
-
Now solved with virtual device json loop
-
So what would be nice is:
1. In lua mode in the "Devices list" for RGBW device the ID of the scenes should be listed
2. Looking at the device the scene ID should correspond tho the ID of the program.
3. If a program is removed ex (10) then the new added program should take its place, not get a new ID. (in my case 11)
I now have ID 1-9 + 11 (No nr 10)
@Fibaro.
Please update this in the future to ease our programming.
Thanks!
Thoughts on this?
(Yes, i know that you can use HC2 toolkit to find the ID in "ProgramSortOrder" och scripting a lua code that reviles the ID when starting the program but this to me is just backwards.
It´s not very user friendly and not everyone use windows or know how to use lua)
19 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.