Jump to content
  • 1

QA Update label


Question

 

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:debug("QuickApp:OnInit")
    self:updateView("Doors open", "text", Doors) -- would like to update QA ID 95
end

 

 

 

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.

 
1
2
3
4
5
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'.
end

 

 

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.

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