soef / ioBroker.find-my-iphone

ioBroker Adapter to locate Apple devices
MIT License
6 stars 2 forks source link

object-ids cannot be used by javascript functions / blockly? maybe naming issues? #24

Open michis0806 opened 4 years ago

michis0806 commented 4 years ago

Hi there,

maybe I'm doing something wrong, but I cannot use some of my find-my-iphone objects in blockly. The object is selectable but disappears every time I close and reopen a script.

Maybe the problem is the name of the object is find-my-iphone.0.Apple Watch_von_Michael.batteryLevel (note the space between Apple and Watch).

Shouldn't this space be replaced by a "_"?

When I select another object like find-my-iphone.0.iPhone_von_Michael.batteryLevel it works...

Thanks Michael