Is there a manual from a to z how to make a simple example device

Is there a manual from a to z how to make a simple example device so i can see how its works.
I find only small fragments incomplete code, but I have no idea how to use them.

Peter

Not sure what you mean by “make a simple example device”.

If you want to know how to configure a Z-Wave device, such as a switch, using Vera I would point you to the fine manual and the wiki.

A more specific question would get you a more specific answer.

I don’t mean how to configure a device, but how to make a simple device. To learn how.

example: how to make a device that has two switches one for a http request to set the ipcam motion_armed on and one to set motion_armed off.

this is for motion_armed on:

http://192.168.xxx.xxx:xx/set_alarm.cgi?motion_armed=1&motion_sensitivity=5&input_armed=1&iolinkage=0&mail=1&upload_interval=10&schedule_enable=&schedule_sun_0=&schedule_sun_1=&schedule_sun_2=&schedule_mon_0=&schedule_mon_1=&schedule_mon_2=&schedule_tue_0=&schedule_tue_1=&schedule_tue_2=&schedule_wed_0=&schedule_wed_1=&schedule_wed_2=&schedule_thu_0=&schedule_thu_1=&schedule_thu_2=&schedule_fri_0=&schedule_fri_1=&schedule_fri_2=&schedule_sat_0=&schedule_sat_1=&schedule_sat_2=0?user=user1&pwd=password2

en this is for motion_armed off.

http://192.168.xxx.xxx:xx/set_alarm.cgi?motion_armed=0&motion_sensitivity=5&input_armed=1&iolinkage=0&mail=1&upload_interval=10&schedule_enable=&schedule_sun_0=&schedule_sun_1=&schedule_sun_2=&schedule_mon_0=&schedule_mon_1=&schedule_mon_2=&schedule_tue_0=&schedule_tue_1=&schedule_tue_2=&schedule_wed_0=&schedule_wed_1=&schedule_wed_2=&schedule_thu_0=&schedule_thu_1=&schedule_thu_2=&schedule_fri_0=&schedule_fri_1=&schedule_fri_2=&schedule_sat_0=&schedule_sat_1=&schedule_sat_2=0?user=user1&pwd=password2

Peter, this is the definitive description of creating a device, which all of us will have read and followed.

With just that wiki page you won’t get far, so I suggest that you install some working plugins from apps.mios.com, or browse the code at code.mios.com, and learn from them. My plugins are heavily commented.

That said, having plugins that send HTTP requests to Vera is uncommon, and sounds a bit convoluted. Perhaps if you could describe the specific home automation problem that you want to solve, we can point you in the direction of least resistance. (Or, if you are deliberately setting yourself a difficult goal to better yourself, then go right ahead!)

Thanks Futzle,
I have notepad ++ but I looking voor a environment to help a little bit.
I found in the documentation, wiki and the forum : “plugin ui designer”, “web generator tool”,“plugin editor on apps.mios.com”.
But this tools or a simple debug program I can’t find anywhere?

Sorry Peter, you are going to have to dive in and learn from existing working code. Start with a simple one like the Virtual State Switch plugin. Just install it and then go and look and the device it created and the files that it installed.

The Day or Night Plugin is another simple plugin to learn from.
It’s very simple … but will introduce a few more concepts … JavaScript UI.
I hope you have found that you can download much of the code from any plugin you have installed on Vera onto your local computer. Goto AppsDevelop AppsLuup Files
Most plugins follow a typical naming convention …
So for a component abbreviated as XXXXX you will see related files like:

[ul][li]D_XXXXX.xml[/li]
[li]D_XXXXX.json[/li]
[li]I_XXXXX.xml[/li]
[li]S_XXXXX.xml — Actually in this case they might have a different name[/li]
[li]J_XXXXX.js (Not very many have this)[/li]
[li]L_XXXXX.lua (Not very many have this)[/li][/ul]

[hr]
This topic might be better addressed in the Plugins section.

Thanks a lot Richard and futzle.

When i see files from “Apps → Develop Apps → Luup Files” from a device.
I think this can’t be everything, but i give it another try.
Peter

All files are located there. You should find everything you need for the plugins you installed.

  • Garrett