Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Can i read/write Device-Parameters in LUA-Script?


h.fuckar@aon.at

Question

Hi and Servus from Vienna!

 

I included a AEON-Siren in my FibaroHC2-System (4.057) and it works very well.

On the advanced-tab of the siren-device i can see and set the parameter number 37 "Siren sound and volume adjustment".

This is for me a static Setting.

 

My question is: Are there LUA-commands the can get and/or set this Device-Parameters in a Scene?

 

Is it, i can varying sound and volume of the siren in a LUA-script. This would make me happy.

 

You may see, i am a HC2-Beginner

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

Thanks for your answers!

 

Harald

 

P.S.: This are the API-raw-data of the siren (from HC2-Toolkit):

Please login or register to see this code.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hi,

 

i am very interessed in this question, too.

 

Is there a possilbilty to set device parameter by lua-scripts?

 

Greets

thorsten

Link to comment
Share on other sites

  • 0

I suppose it should be possible but not tested.

If you try

fibaro:debug(fibaro:getValue(60, "parameters"))

it prints out the parameters you could set.

 

It is a json array so you have to use the json command before write back the properties.

 

let us know if works

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

Link to comment
Share on other sites

  • 0

I don't know about the lua appr

I suppose it should be possible but not tested.

If you try

fibaro:debug(fibaro:getValue(60, "parameters"))

it prints out the parameters you could set.

 

It is a json array so you have to use the json command before write back the properties.

 

let us know if works

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

I don't know yet, I'm a bit short on time right now.

But I gave a possible solution to a similar problem here:

Please login or register to see this link.

It uses the API instead of the lua function. Warning... be careful what you do!

Link to comment
Share on other sites

  • 0

Hi,

 

Is there a solution for changing the parameters of the AEON siren with LUA so that I can use the siren with multiple sounds.

 

Thanks.

Link to comment
Share on other sites

  • 0

use attached VD

 

Please login or register to see this link.

 

Note: each time sound has been changed, the siren need 1 - 1.5sec to get it, so do not use like a beeper (e.g. on/off each every 100ms), but let at least 2 sec. before changing sound or turning off.

 

Setup: enter siren ID as VD "TCP Port" value 

Edited by tinman
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...