You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a developer issue, but the Generate Voice Commands routine in Insteon.pm is an utter mess. The logic tree is very hard to follow, much of the code is duplicative, and adding new voice commands for specific objects is far from easy.
Three things need to be done:
The logic tree needs to be straightened out (which will be helped by 2.)
The code needs to be reworked to remove much of the duplicative code
A structure should be added to permit voice commands to be added at the class level
Insteon.pm should only include the most common base commands
Individual classes should define their more specific and unique voice commands
A developer adding a new insteon class type shouldn't need to edit the base Insteon.pm file
This will require editing a number of Insteon files and should wait until after the 3.0 merge is done.
The text was updated successfully, but these errors were encountered:
Generate_voice_commands in Insteon.pm now calls get_voice_cmds for each object.
get_voice_cmds is written to be inherited and modified by higher level objects
This allows for unique voice commands to be added to objects in their respective class files without messing with the base Insteon.pm file.
This commit merely copied over the voice commands as they existed before with little to no changes in the voice command design.
Fixeshollie#181
This is more of a developer issue, but the Generate Voice Commands routine in Insteon.pm is an utter mess. The logic tree is very hard to follow, much of the code is duplicative, and adding new voice commands for specific objects is far from easy.
Three things need to be done:
This will require editing a number of Insteon files and should wait until after the 3.0 merge is done.
The text was updated successfully, but these errors were encountered: