Question, suggestion or issue related to apps/plugins development on UI7

Hi all,

This topic is opened for any questions, suggestions or issues related to apps/plugins development on UI7. We will regularly post answers to the issues raised in this topic so let’s keep it nice and clean.

Best Regards,

  • Andrei -

Thanks for reaching out. Hopefully we can all keep this thread on topic with DEVELOPER related items and not digress.

My first question, where would I go to find the best consolidated UI7 developer documentation or best practices available?

PS - there is also a previous thread UI7 plugin migration thread started by RexBeckett that you may want to read up on or move to this new sub-forum.
http://forum.micasaverde.com/index.php/topic,26649.0.html

Hi AgileHumor,

We are working on this documentation and we will release it soon. Until then, if you encounter any issues, I’m here to help.

Best Regards,

  • Andrei -

Hello,
I like to see Mios is present in this f?rum. And my question
When will UI7 become a reliable versi?n?
Why UI6 and UI/ does not keep compatibilty with UI5 and its plugins?

In my opini?n, a great value of Vera controller are the plugins, if every update breaks the compatibility with the existing plugins, users will have a problem, don’t you think so?

Thanks

is the concord alarm plugin compatible with UI7?

This discussion is for development of apps for UI7…not use or compatibility of existing plugins created by independent authors. I see you already cross posted thread with the same information here:
http://forum.micasaverde.com/index.php/topic,12000.msg190169.html#msg190169

PLEASE - If your not developing a plugin for UI7, please ask your questions or feature requests on a different forum thread.

AgileHumor, the reason I asked is because concord plugin is developed by vera.

Hi Andrei.

To start the discussion, I have not a direct question relative to the plugin development but I would like to inform you that it exists a major issue in UI7 that makes impossible the usage of plugins using communication over USB. Apparently, everybody is not concerned but a lot of users have reported that the serial port configuration page cannot be displayed. Nothing happens when you click on the link. I noticed it myself with HaPe’s Vera. Maybe the problem is relative to the migration of this serial port configuration from UI5 to UI7 ?

Is Vera aware of this issue ?

PS: It exists a similar issue with the location page but this one does not prevent from using plugins.

For another thread kind sir. One that does not have developer/development focus in the subject. This is not the “all features I want in UI7”, it’s ONLY to discuss how plugin authors best practices. Any other topic would be considered bad etiquette that puts your needs above the groups.

I understand you and others may be new to forum communications. The behavior this exhibits is “cross posting” or “thread hijacking”…neither of which are encouraged.

To keep it simple, please keep all your complaints and issues not related to UI7 development (meaning you doing the coding yourself) off this thread.

Like the network itself, these developing norms remain in a state of flux and vary from community to community. The points most strongly emphasized about Usenet netiquette often include using simple electronic signatures, and avoiding multiposting, cross-posting, off-topic posting, hijacking a discussion thread, and other techniques used to minimize the effort required to read a post or a thread.
http://en.wikipedia.org/wiki/Etiquette_in_technology

@mcv.andrei,

Have you considered a private board? This has come up several times on the private beta side. The idea was to have a private developer board and a developer member group (which, e.g., could be seeded with current beta testers and developers).

Is there a Luup function that will get the current house mode (Home/Away/Night/Vacation)?

Is there a Luup function or HTTP request that will set the house mode? Clearly the UI7 web UI can do it but that doesn’t mean it’s publicly available for plugins to use.

I have posted some of these in another thread but I’ll list them here for completeness.

  1. The lack of an Advanced option in the scene action editor makes it very difficult to use with anything other than simple button actions.

  2. There is no way to display a plugin’s Help file.

  3. There is no simple way to create another device for an installed plugin.

  4. If a device does not have a tab flagged as top_navigation_tab, the options to change its name and room assignment are not displayed.

  5. When a flash tab is used as top_navigation_tab, the values from input controls are not sent with associated button actions. The input values work correctly when the tab is not the top one.

  6. The layout of controls on the device tile does not seem to follow the positioning parameters (top, left) specified for the individual controls in the json. They appear just to be placed in the scenegroup in the order that they are defined.

  7. The slider control does not display or operate correctly on the flash tab where it is defined. It does display and operate on the main tile.

  8. Dynamic icon handling is much more flexible but is not backwards compatible to UI5 json.

  9. Automatic Luup Restart works most of the time but I think there should still be a button for this on the main UI page.

  10. The attribute device_json for devices does not allow devices of the same type to use different json files. All devices use the one last loaded for that device type - i.e. by the highest numbered device. What is the point of the attribute?

  11. Because of the changes required for the UI, I have found it necessary to have a special json file for UI7. I am currently packaging both files in the plugin and using the following in the implementation startup logic:

if luup.version_major == 7 then os.rename("/etc/cmh-ludl/D_MSwitch_UI7.json.lzo","/etc/cmh-ludl/D_MSwitch.json.lzo") end

This works but is there a better way to handle this through the App Store?

Can you provide (join) a JSON example file to understand how it is managed now in UI7 ?
I am using a dynamic icon in the Sonos plugin…

Hi

[quote=“oTi@, post:10, topic:182692”]@mcv.andrei,

Have you considered a private board? This has come up several times on the private beta side. The idea was to have a private developer board and a developer member group (which, e.g., could be seeded with current beta testers and developers).[/quote]

Yes we thought and we discussed about a private board, but we consider that a public board is better in this situation. Everyone should benefit from these, that is why we made it public. I can create a private one, I already added some of you in “Developers” group, so this is not a problem, but some discussions there should be public. A solution would be to post the conclusion for an issue in the public one, but this means that some one should do regularly updates. In this situation, I will need some help. It is a big possibility to not have the time to update the public area so it needs to be done by someone else. I am opened to suggestions/discussions and I think we can find a proper solution for this.

@Juan

When will UI7 become a reliable versi?n?
This is our intention too, but it requires time to do so. We are working hard to have a complete and stable UI, but it cannot be done over night.
Why UI6 and UI/ does not keep compatibilty with UI5 and its plugins? In my opini?n, a great value of Vera controller are the plugins, if every update breaks the compatibility with the existing plugins, users will have a problem, don't you think so?
We all know the importance of plugins and our goal is to make this migration as easy as possible for developers, but please take in consideration that UI7 is still "under construction".

@lolodomo

Hi Andrei.

To start the discussion, I have not a direct question relative to the plugin development but I would like to inform you that it exists a major issue in UI7 that makes impossible the usage of plugins using communication over USB. Apparently, everybody is not concerned but a lot of users have reported that the serial port configuration page cannot be displayed. Nothing happens when you click on the link. I noticed it myself with HaPe’s Vera. Maybe the problem is relative to the migration of this serial port configuration from UI5 to UI7 ?
Is Vera aware of this issue ?
PS: It exists a similar issue with the location page but this one does not prevent from using plugins.

Yes we are aware of this, and this will be fixed. Our goal is to have in UI7 all the features from UI5 and more.

For issues/bugs/missing features like this I was thinking to open a new topic where you can post them, but wanted to see if this sounds good for all of you too.

@futzle

Is there a Luup function that will get the current house mode (Home/Away/Night/Vacation)?

Is there a Luup function or HTTP request that will set the house mode? Clearly the UI7 web UI can do it but that doesn’t mean it’s publicly available for plugins to use.

Like I said, we are working on an API that will be available soon and will include old and new features and code examples. Until this documentation will be released, I cannot say more, so please be patient.

@RexBeckett - thank you for reporting all this issues, I will add them on our list.

Best Regards,

  • Andrei -

For our information, could you mention what is the jQuery version embedded in UI7 ?

PS: sorry for the question if it exists an easy way to find it…

Edit: jQuery.fn.jquery should give the answer

Hi lolodomo

[quote=“lolodomo, post:15, topic:182692”]For our information, could you mention what is the jQuery version embedded in UI7 ?

PS: sorry for the question if it exists an easy way to find it…[/quote]

jQuery version used in UI7 is 1.9.1

Regards,

  • Andrei -

@andrei: do you know if UI7 solved regular lua restarts (at least one per day) when few plugins are installed ?
To say it differently, is there improvment in the memory management ?

As far as I know, there was no change in memory management.

[quote=“lolodomo, post:15, topic:182692”]For our information, could you mention what is the jQuery version embedded in UI7 ?
Edit: jQuery.fn.jquery should give the answer[/quote]

1.9.1, according to my UI7 VeraLite on 1.7.318.

I can’t speak for other developers, but I was under the impression that bugs.micasaverde.com was for that purpose. Certainly that’s where I raised bug reports in the past.

Personally I don’t care where we report bugs. I just want to know that the bug report has been seen, is visible to developers within the company and that we be informed promptly when the bug report is triaged, fixed or rejected. If you want to graft a process onto the forum where this can happen, great.

Case in point: I’ve now raised a feature request for Luup to be able to access the home mode (Home/Away/Night/Vacation). You’ve acknowledged that you’ve seen this feature request. The ball is in your court to inform me when this feature request has been implemented or rejected. Who’s going to remember that you have to do this?