So,
After many attempts, I finally have a working solution for a smartApp that can be used to enter IP based cameras, using my generic camera device type.
However, in testing with my second account, the whole process is screwed up. How in the heck does ST expect normal users to use ANYTHING developed by the community?
The steps for a normal user to use my SmartApp:
-
In IDE, add my SmartApp code and publish… (Yes this could be a published community app eventually, but see below)
-
Once SmartApp is installed, install the Custom DeviceType code, Generic Camera Driver
-
Launch App, and add my SmartApp
-
Configure up my SmartApp to add a camera, rinse and repeat for all cameras
-
Go back into IDE and choose a hub in each device (child of the smartApp) because the API exposes no way to get the value of the name of the hub and all examples use null instead which breaks hubaction local calls
-
Go into camera thing to take picture and hope you are on iOS so the images persist…
-
There is no seven…
This has to be the craziest process to try to get an average user, let alone a developer to do to get a simple Camera IP app installed.
My suggestion…
Allow custom deviceTypes to be embedded into SmartApps.
Allow for community publishing of deviceTypes so SmartApps can trigger install.
Either of these would allow a much more streamlined approach to SmartApp to child device relationships…