I am looking for a way to control the ventilator unit
The settings i would like to see are
Speed group 1 2 or 3
Temp of 4 systems
Temp setting
Ventilating or recirculating
The unit has an rs232 port
I found some guidance on this but all for knx
My question is if somebody knows a route to follow or how to translate it into a plugin
Thanks
As indicated before I am looking a way to control the house ventilating unit WHR930 with the Vera.
My idea is as follows
To create two icons; one to indicate the value and one to change the settings
I want to indicate the following items;
4 times air temperature
1 times temperature setting
Setting of speed (high/medium/low)
Setting of ventilator (ventilator out / ventilator in/out)
I want to change the following items;
- Temperature setting (between 18 and 22)
- Setting of speed (high/medium/low)
- Setting of ventilator (ventilator out – ventilator in/out)
Connection between the Vera and the ventilator must be wireless (no internet/cable connection available at the location of the ventilator. My idea is an wifi to rs232 adapter to make the connection)
The communication are based on commands to the ventilator unit and replay from the unit with the requested info , or commands to change settings
Scenes must be able to change the unit; like if humidity is to high speed must go to high and if humidity goes down the speed must also go down; if toilets lights are on for a while (somebody reading the newspaper) the speed must go to high, etc
The other information from the unit, like other settings are not to be changed
So i need to check the following steps
Make the icons with the layout at indicated
Make the wifi connection between the vera and the module
Sent the info commands and receive the data into vera
Translate the data received into understandable data
I have found the protocol used by the ventilator unit
I have found some programs written in LUA for the transmittion of data, but wired
If you have some guidance be so kind to assist
Thanks
Huib
First check that your Json is valid using JSONLint. If it’s valid, upload the device file and the Json file on Vera and create a device using that device file. This is the only way to test if the layout is OK.
If you change anything in the Json file, you must reload the Luup engine after uploading it, and refresh the UI. If you have Javascript tabs and you change something in the Javascript code, then it’s not necessary to reload the Luup engine after uploading the file. A simple UI refresh is enough.
It’s recommended to use the existing service IDs, but if none covers your needs, then you must create a new one. For info about the service ID names you should read the UPnP Device Architecture v1.1 at page 46.
I think the reason for the error is that you prefixed all the service IDs and action names with “–”. Only what’s between the tags is Lua code and can be commented out with “–”. Also, if you comment out all the Lua code between the tags, you don’t have to comment out the service IDs and the action names.
If you really want to comment out an entire action, you can do it with an XML comment, like this:
thanks for the advice; but each answer gives the next question;
i have now the warning {WHR930[76] : Lua Engine Failed to Loa}
this means that the files can be read; but in which file is the error
i thing the I_ file; is that correct?
in the I_ file you declare the value of the variables; how can i check (by Putty or other option) if these value are declared and if they are the value as requested;
example == local Position = Middle; can i get this on the screen?
if i look at different D_ files (like D_quadrelay1 & D_dutchSmartMeter & D_IPSerial) they have all different info; and i i compaire this with the UPnP device architecture 1.1 they are all different
the same for the S_ files
do we have somewhere something like standard D_ & I_ & S_ and D_json files as start
at the moment i am compairing my files with different formats and just try and error (more error that try)
in the Json file i indicate some “Actions” buttons;
to check the functions and to check the JSON file i would like to indicate something in the UI screen header ; is that possible?
i am still fighting with the error message “WHR930[76] : Lua Engine Failed to Load”
If i look at the log files i see that the all the instructions from the Json files are being logged (with error)
I have reduced the I_ files to only the local values but still get the same error
In the S_ file i indicate the settings / values and the default value’s; is that the correct way. If so why i do not see the data in the dashboard in the UI or tab
[quote=“huib, post:13, topic:172078”]1) i have now the warning {WHR930[76] : Lua Engine Failed to Loa}
this means that the files can be read; but in which file is the error
i thing the I_ file; is that correct?[/quote]
The error is in the Lua code. This can be either in the implementation file, or in a Lua file, if you have any (you don’t).
[quote=“huib, post:13, topic:172078”]2) in the I_ file you declare the value of the variables; how can i check (by Putty or other option) if these value are declared and if they are the value as requested;
example == local Position = Middle; can i get this on the screen?[/quote]
You can log them using [tt]luup.log()[/tt] and check the logs.
Yours is good.
You should look at a standard service file, like S_SwitchPower1.xml.
in the D_json file you create a button with a certain command
(ContolGroup/Command)
in the I_ file you create the job to be carried out (actionlist/action)
how do i connect the button with the job/order
or
how do i start an action from the dashboard