Issue with api.Entity().State().Get()

Can anyone else confirm this?
Am unable to use api.Entity().State().Get() to get an entity state.
Even default Status state…
api.Entity().State().Update() seems to work as expected but Get returns
Microsoft.ClearScript.VoidResult

Used;

function test() {
var status= api.Entity('1').State('Status').Get();
return status
}

How does it know what entity type 1 is?

1 Like

That was a thought that crossed my mind but then entity names need to be unique dont they?
What is the correct format for the helper then?
It updates OK…

Its definitely not working as expected.

1 Like

Not just me then…

1 Like

Thank you. I fixed it.

It will be available on next refresh.

2 Likes