peterwoj / homebridge-blynk-platform

homebridge plugin to use Blynk
MIT License
10 stars 2 forks source link

Name and room of accessory resets to default #37

Closed vivekanandbv closed 3 years ago

vivekanandbv commented 3 years ago

Accessory doesn't display name set in the plugin config. It has to be changed in home app, and quite frequently resets to the default "worsted button" name. Probably an issue with the cache? please look into it.

peterwoj commented 3 years ago

Haven't seen the name change for a configured item. If for some reason the accessory cache is refreshed there can be room changes. What version of the plugin and what's your config look like?

vivekanandbv commented 3 years ago

v0.2.6

Config: {

"platform": "BlynkPlatform",

"serverurl": "http://xxxxxxxxxx", "pollerseconds": 1,

"devices": [

{

"name": "Door Lock",

"token": "XXXXXXXX",

"deviceId": 0,

"manufacturer": "Vivek",

"discover": true,

"accessories": [

{

"model": "NodeMCU",

"name": "Door Lock",

"pintype": "VIRTUAL",

"pinnumber": 1,

"type": "BUTTON" } ] } ] }

vivekanandbv commented 3 years ago

Also, the ‘type of’ drop down menu does not have a switch option in it.

peterwoj commented 3 years ago

With discover set to true the name should come from what is defined in the blynk-server control itself. Is there anything that comes out of logs that references removing adding/removing accessories

vivekanandbv commented 3 years ago

Ah, ok. I didn’t know you had to name the button in the blynk app. I thought naming the accessory in the plug-in would do it. My bad. It works now.