I have added the Cloud binding and connected it to my iCloud Account.
Then I have added my phone as a thing. After I linked the Batterie Level Item to it.
Then I added following code:
Sitemap: Text item=MarksIPhone_BatteryStatus label="Batterie iPhone Mark" icon="batterylevel"
Item: Number MarksIPhone_BatteryLevel "Battery status [%f]"
Haha
There is now a Procent Symbol after the “-” but It doesn´t show my real batterie status.
I also restarted openHAB and my phone but they wont be friends
@baum
Just to be clear.
You need to have the item value… Not update the file/sitemap.
As Rossko says, look in your logfile and make sure your item is updating. It wont change from “-%” to a value untill it updates.