cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Dynamically changing status icon of a connected device

Tomellache2B
14-Alexandrite

Dynamically changing status icon of a connected device

Good day community,

 

I have a connected device represented by a thing. There is a property on the thing called: last connection. I am representing this thing using a label and an icon on the mashup side. This icon should change to a green color when the device is connected and then switch to a red color when the device is offline.

 

How do I go about writing a dynamic service to accomplish this?

Many thanks, 

 

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:Tomellache2B)

Hi @Tomellache2B

 

You'll need to use isConnected instead of last connection.  And you can use state definitions to indicate the color.

 

Regards.

 

--Sharon

View solution in original post

1 REPLY 1
slangley
23-Emerald II
(To:Tomellache2B)

Hi @Tomellache2B

 

You'll need to use isConnected instead of last connection.  And you can use state definitions to indicate the color.

 

Regards.

 

--Sharon

Top Tags