Premise Premise Interface Modifications

Motorola Premise

rickgd

Member
Hello again,
 
I have to say I am liking Premise more and more as I use it, go through the Video tutorials (finally found them), and implement additional aspects of my home automation system.
 
One thing I have been trying to do is modify the control interface for the PVR Object. I posted this on the main home automation forum but got no response so I thought I might as well ask the local experts.
 
My goal is to add the 4 "color" buttons typically found on most DVR remotes. I actually was able tack on additional buttons to the Keypad group used for tuning channels, but had a difficult time tying them into an action. Plus I don't want these buttons showing up on EVERY keypad called by a tuner device.
 
If I understand this correctly, I potentially could create an additional CompositeControlContainer which in turn could contain 4 action buttons for each of the 4 colors I wish to represent (Red, Green, Yellow, Blue). The next logical step (im guessing here) is that I would need to link this container to the PVR object somehow. This is where I get lost. I have referred to the Schema navigation document as well but I think Im missing something...like brain cells or the like. :)
 
So I guess my question is this, How does the Automation Browser know which controls to render when a device is added to the home. And how can I add more controls to an existing device?
 
I hope that makes some sense.
Thanks in advance.
 
 
Take a look at the Panasonic TV module I posted under downloads.  Examine how it was built and how I added the RGYB buttons.  Maybe use notepad++ and rename the file extension to xml for easier study to see what classes I used to create a new interface.  Upon a lot of study, you'll see the classes you need to add to create your AB object interface.
 
Remember, it's always better to create completely new selectors and controls under sys://Schema/Modules/Plugins for each new object type.  DO NOT just add to the PVR stuff that's already there.  I'm pretty sure it will be deleted if you do a backup and restore.  Unfortunately, none of this is documented.  You have to learn from studying other modules.
 
etc6849 said:
Take a look at the Panasonic TV module I posted under downloads.  Examine how it was built and how I added the RGYB buttons.  Maybe use notepad++ and rename the file extension to xml for easier study to see what classes I used to create a new interface.  Upon a lot of study, you'll see the classes you need to add to create your AB object interface.
Thanks! That is exactly what I needed to see. I was having difficulty locating an example that would allow me to accomplish my needs. This will be a great start.
 
etc6849 said:
Remember, it's always better to create completely new selectors and controls under sys://Schema/Modules/Plugins for each new object type.  DO NOT just add to the PVR stuff that's already there.  I'm pretty sure it will be deleted if you do a backup and restore.  Unfortunately, none of this is documented.  You have to learn from studying other modules.
Yes, I found this one out the hard way. No big deal as it was only a few "changes" but I learned too, so that's good. I have found that studying other modules is helpful and will use the above one to help guide me along. Thanks again for the referral.
 
Back
Top