sindrebroch / ha-magicmirror

Custom HomeAssistant-integration for MagicMirror
Apache License 2.0
14 stars 0 forks source link

Modules (clock, weather, ect.) allways report "on" state #13

Closed sisimomo closed 2 years ago

sisimomo commented 2 years ago

Version of the custom_component

1.3.0

Configuration

Through the UI.

Describe the bug

The modules (switch.modulex*) representing the state (displayed or not) of the modules on the mirror allways report the "on" state even when the module has been hidden using the switch itself. image

Debug log

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.6.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.12",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/Toronto",
    "os_name": "Linux",
    "os_version": "5.15.32-v8",
    "supervisor": "2022.05.3",
    "host_os": "Home Assistant OS 8.2",
    "docker_version": "20.10.14",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.25.5",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "simple_wyze_vac": {
      "version": "1.7",
      "requirements": [
        "https://github.com/romedtino/wyze-sdk/archive/refs/tags/10.2.7.zip#wyze-sdk==10.2.7"
      ]
    },
    "sinope": {
      "version": "1.5.7",
      "requirements": [
        "crc8==0.1.0"
      ]
    },
    "watchman": {
      "version": "0.5.1",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "magicmirror": {
      "version": "1.3.0",
      "requirements": []
    },
    "neviweb130": {
      "version": "1.3.4",
      "requirements": []
    },
    "smartthings": {
      "version": "1.0",
      "requirements": [
        "pysmartapp==0.3.3",
        "pysmartthings==0.7.6"
      ]
    },
    "ui_lovelace_minimalist": {
      "version": "v0.0.9",
      "requirements": []
    },
    "browser_mod": {
      "version": "1.5.3",
      "requirements": []
    },
    "hpprinter": {
      "version": "1.0.8",
      "requirements": [
        "xmltodict==0.12.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "magicmirror",
    "name": "Magic Mirror",
    "config_flow": true,
    "documentation": "https://www.github.com/sindrebroch/ha-magicmirror",
    "issue_tracker": "https://github.com/sindrebroch/ha-magicmirror/issues",
    "requirements": [],
    "codeowners": [
      "@sindrebroch"
    ],
    "iot_class": "local_polling",
    "version": "1.3.0",
    "is_built_in": false
  },
  "data": {
    "host": "192.168.2.242",
    "port": "8080",
    "brightness": 100,
    "monitor_status": "on",
    "update_available": false,
    "modules": "[ModuleDataResponse(index=0, identifier='module_0_MMM-Remote-Control', name='MMM-Remote-Control', path='modules/MMM-Remote-Control/', file='MMM-Remote-Control.js', configDeepMerge=False, header=None, config={'customCommand': {}, 'apiKey': 'REMOVE FOR CONFIDENTIALITY'}, classes='MMM-Remote-Control', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=1, identifier='module_1_clock', name='clock', path='modules/default/clock/', file='clock.js', configDeepMerge=False, header=None, config={'displayType': 'both', 'timeFormat': '24', 'timezone': None, 'displaySeconds': True, 'showPeriod': False, 'showPeriodUpper': False, 'clockBold': False, 'showDate': True, 'showTime': True, 'showWeek': False, 'dateFormat': 'dddd, D MMMM', 'analogSize': '125px', 'analogFace': 'face-001', 'analogPlacement': 'bottom', 'analogShowDate': 'top', 'secondsColor': '#888888', 'showSunTimes': False, 'showMoonTimes': False, 'lat': REMOVE FOR CONFIDENTIALITY, 'lon': REMOVE FOR CONFIDENTIALITY}, classes='clock', hidden=True, lockStrings=['module_0_MMM-Remote-Control'], actions=None), ModuleDataResponse(index=2, identifier='module_2_MMM-OpenWeatherMapForecast', name='MMM-OpenWeatherMapForecast', path='modules/MMM-OpenWeatherMapForecast/', file='MMM-OpenWeatherMapForecast.js', configDeepMerge=False, header=None, config={'apikey': 'REMOVE FOR CONFIDENTIALITY', 'latitude': '45.4791377', 'longitude': '-73.5674238', 'updateInterval': 10, 'requestDelay': 0, 'units': 'metric', 'showCurrentConditions': True, 'showExtraCurrentConditions': True, 'showSummary': False, 'forecastHeaderText': '', 'showForecastTableColumnHeaderIcons': True, 'showHourlyForecast': False, 'hourlyForecastInterval': 3, 'maxHourliesToShow': 3, 'showDailyForecast': True, 'maxDailiesToShow': 3, 'includeTodayInDailyForecast': False, 'showPrecipitation': True, 'concise': True, 'showWind': True, 'showFeelsLike': True, 'language': 'fr', 'iconset': '6fa', 'mainIconset': '6fa', 'useAnimatedIcons': False, 'animateMainIconOnly': True, 'colored': True, 'forecastLayout': 'tiled', 'showInlineIcons': True, 'mainIconSize': 100, 'forecastTiledIconSize': 70, 'forecastTableIconSize': 30, 'updateFadeSpeed': 500, 'label_maximum': 'max', 'label_high': '', 'label_low': '', 'label_timeFormat': 'h a', 'label_days': ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'], 'label_ordinals': ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW'], 'moduleTimestampIdPrefix': 'OPENWEATHER_ONE_CALL_TIMESTAMP_'}, classes='MMM-OpenWeatherMapForecast', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=3, identifier='module_3_MMM-NestRemoteThermostat', name='MMM-NestRemoteThermostat', path='modules/MMM-NestRemoteThermostat/', file='MMM-NestRemoteThermostat.js', configDeepMerge=False, header='Salon', config={'thermostatId': 'climate.living_room', 'language': 'fr', 'width': '5em', 'height': '5em'}, classes='MMM-NestRemoteThermostat', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=4, identifier='module_4_MMM-NestRemoteThermostat', name='MMM-NestRemoteThermostat', path='modules/MMM-NestRemoteThermostat/', file='MMM-NestRemoteThermostat.js', configDeepMerge=False, header='Salle de bain', config={'thermostatId': 'climate.bathroom', 'language': 'fr', 'width': '5em', 'height': '5em'}, classes='MMM-NestRemoteThermostat', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=5, identifier='module_5_MMM-NestRemoteThermostat', name='MMM-NestRemoteThermostat', path='modules/MMM-NestRemoteThermostat/', file='MMM-NestRemoteThermostat.js', configDeepMerge=False, header=None, config={'thermostatId': 'climate.hvac', 'language': 'fr', 'width': '6.5em', 'height': '6.5em'}, classes='MMM-NestRemoteThermostat', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=6, identifier='module_6_MMM-NestRemoteThermostat', name='MMM-NestRemoteThermostat', path='modules/MMM-NestRemoteThermostat/', file='MMM-NestRemoteThermostat.js', configDeepMerge=False, header='Bureau', config={'thermostatId': 'climate.office', 'language': 'fr', 'width': '5em', 'height': '5em'}, classes='MMM-NestRemoteThermostat', hidden=False, lockStrings=[], actions=None), ModuleDataResponse(index=7, identifier='module_7_MMM-NestRemoteThermostat', name='MMM-NestRemoteThermostat', path='modules/MMM-NestRemoteThermostat/', file='MMM-NestRemoteThermostat.js', configDeepMerge=False, header='Chambre', config={'thermostatId': 'climate.bedroom', 'language': 'fr', 'width': '5em', 'height': '5em'}, classes='MMM-NestRemoteThermostat', hidden=False, lockStrings=[], actions=None)]"
  }
}
sindrebroch commented 2 years ago

Should be fixed in release 1.4.0. Please reopen if the issue persists.