naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
311 stars 61 forks source link

Cannot Hide Devices #224

Open DoinitSideways opened 2 years ago

DoinitSideways commented 2 years ago

Please excuse if its a blatant obvious mistake.

I cannot get the hidden parameter to work. No matter where i put it in the config... please help

{ "units": "si", "interval": 5, "stations": [ { "nameNow": "Highland Reserve", "service": "weatherunderground", "key": "xxxxxxxx", "stationId": "xxxxxx", "language": "en", "compatibility": "home", "conditionCategory": "simple", "now": true, "extraHumidity": false } ], "hidden": [ "CloudCover", "WindSpeed", "UVIndex", "WindDirection", "AirPressure", "DewPoint" ], "platform": "WeatherPlus" }

dacarson commented 3 months ago

WeatherUnderground does not report Cloud Cover, so that one should never show.

Testing this myself with WeatherUnderground and configured through plugin config UI, I set the same items mentioned above to be hidden, it seems to be mostly working.

When I check with Apple's Home app, I correctly only see Temperature reported from the plugin. When I check the Eve app, I still see Air Pressure. However, UV Index, Wind Direction, Wind Speed, Dew Point are all hidden.

Your configuration isn't correct. The hidden values are part of the station configuration. Can you try:

{
   "units":"si",
   "interval":5,
   "stations":[
      {
         "nameNow":"Highland Reserve",
         "service":"weatherunderground",
         "key":"xxxxxxxx",
         "stationId":"xxxxxx",
         "language":"en",
         "compatibility":"home",
         "conditionCategory":"simple",
         "now":true,
         "extraHumidity":false,
         "hidden":[
            "CloudCover",
            "WindSpeed",
            "UVIndex",
            "WindDirection",
            "AirPressure",
            "DewPoint"
         ]
      }
   ],
   "platform":"WeatherPlus"
}

Can you test again with the hidden items in the right place in the config?