[Pro][Dashboard] SmartDash - a dashboard for Homey

Suggestion to solve the image issue.

Extend the existing VirtualCamera widget with some new options:

  • Option (radio button) Static or Dynamic
  • If static is selected:
    • User can fill in Url like the current behaviour, OR
    • User can select from your new “Image Id” dropdown. If user selects an Id, the Url (existing field) will be generated automatically
    • Disable (read only) “Image Owner URI” dropdown and disable Url if “Image Id” has been filled in
  • If dynamic is selected:
    • User can select from your existing “Image Owner URI” dropdown, the Url (existing field) will be generated automatically each refreshing cycle, based on the found Image Id related to “Image Owner URI”
    • Disable (read only) “Image Id” dropdown and disable (read only) Url

Advantages of this solution could be:

  • Usage of proven technology of VirtualCamera with Url
  • No extra widget like HomeyImage needed
  • You can check if the image path is right

Refresh of Virtual Camera image and url id dynamic option has been chosen:

  • each refreshing cycle (in minutes if activated)
  • SmartDash app startup
  • app reactivation (device screen goes on)
  • if possible and nice to have: click/tap on image in end user screen will refresh immediately

Perhaps needless to say, but Url consists of:

  • Local Url defined in SmartDash Setup → Homey pro: replace dots with hyphen.
    NOTE: on my device only a https works and not http. In my case
    http://192.168.2.40 becomes https://192-168-2-40
  • Concatenate this with fixed part .homey.homeylocal.com/api/image/
  • Concatenate this with Image Id found above, in my case
    67e0a7bd-4b67-4836-8858-c84da7ed6021

Finally the url would be in this example:

https://192-168-2-40.homey.homeylocal.com/api/image/67e0a7bd-4b67-4836-8858-c84da7ed6021

I hope this can contribute to the solution.