Jump to content
  • 1

QA Update label



Hi all !

I would like to update another QA's label. In this case, it's QA with ID 95 and the label is called Doors. Does anyone know if this is possible and what that code might look like.


function QuickApp:onInit()
    self:updateView("Doors open", "text", Doors) -- would like to update QA ID 95




Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

This is the syntax


QuickApp:updateView(component_name, component_attribute, value)

The method for updating the device view.

function QuickApp:updateViewSample()
    self:updateView("label1", "text", "Device on") -- updating the text for 'label1'.
    self:updateView("button1", "text", "on") -- updating the text for 'button1'.
    self:updateView("slider1", "value", "99") -- updating the text for 'slider1'.



But you mean from outside the QA?


Maybe with a Global Variable or the API


Edited by SmartHomeEddy
Link to post
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.

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...