Computed Attributes

Nelson Miranda5 years ago

How to know the offline status with calculated attributes?

I have an error in this code

Status
status.updateDeviceState == "offline" ? "Offline" : null
String
Anton Tananaev5 years ago

Where did you get that code from?

Nelson Miranda5 years ago

I did it myself, sorry if I have errors, but I have tried trying in various ways and it doesn't work

Anton Tananaev5 years ago

It's not possible to access device status from computed attributes.