Webcore Using Device Name instead of Device Label


#1

So I added a new device.

Went into the webcore SmartApp on my phone, checked off the box for it in available devices, went back to my dashboard and it’s not showing up in the drop down for pistons.


#2

Hard refresh the page (hold Ctrl whilst clicking your browsers refresh button)

If that doesn’t work, log out of the dashboard and then back in using a new register code.


#3

Tried both of those, no joy. :frowning:


#4

Looked like it pulled in the device name instead of the label.


#5

What’s a label? It always lists the device names.


#6

When you add a device in ST, it gives the device a generic name based on the device handler, the name you give it is the label.

You can see this under devices in the IDE.


#7

Actually, it gets an initial name based on the name of the default device handler, then you change that name to something relevant… but it’s still the name… there’s no label ever visible to a smartapp.


#8

What? That’s not right. I can see tons of devices I have that have some generic name like “Motion Sensor” and a label like “Living Room Motion” which is what shows up in the ST App and the SmartApps. WebCore was getting the label before and in fact shows the label value in the smartapp but in the webcore dashboard the NEW device I added is showing up as the generic name, ie Device-Name rather than Device-Label . I changed the name in the IDE and unsurprisingly the name in the webcore dashboard changed.


#9

I’ve always kept the label in the IDE blank… I guess I just assumed label was irrelevant and only viewable in the IDE… suppose then that ST uses the ‘name’ if the label is blank, otherwise it uses the ‘label’?


#10

I can see what Robin is saying.
When your device is discovered, do you not give it a name that means something to you.
I think I know what you mean about when it’s discovered it could be called a ‘Xiaomi Motion sensor’. At that point you get an option to rename it and I rename the device to something that means something to my setup like ‘Lounge - Motion Sensor 1’. Do you not do that?


#11

That’s correct it does use Name if Label is blank but when you use the phone app to change the name of a device it actually changes the label. Up until recently webcore was using the Label value (if present) but now it’s getting the name value. Since you need to go into the IDE to change the name value this is more than a minor inconvenience.


#12

Right you do that and then it changes the Label value.


#13

So it does… never noticed coz I always name change in the IDE… oops


#14

Just read your reply above. Looks like we were typing at the same time.
I’ll go back to sleep. :relieved: