def removeSensor(sensorname): """ Remove sensor - Remove supervisor sensor configuration - Remove Sensor user script - Remove Sensor configuration """ _LOGGER.info('removeSensor %(sensorname)s' % locals()) mks.removeSupervisorConf(sensorname=sensorname) mks.removeSensorUser(sensorname) mks.disableSensorConfig(sensorname)
def removeSensor(sensorname): """ Remove sensor - Remove supervisor sensor configuration - Remove Sensor user script - Remove Sensor configuration """ _LOGGER.info("removeSensor %(sensorname)s" % locals()) mks.removeSupervisorConf(sensorname=sensorname) mks.removeSensorUser(sensorname) mks.disableSensorConfig(sensorname)
def disableSensor(sensorname, **kwargs): """ Enable new sensor configuration - Disable supervisor configuration - Disable sensor user script from template - Disable YAML configuration from sensor template """ _LOGGER.info('disableSensor %(sensorname)s' % locals()) # Create Supervisor configuration mks.disableSupervisorConf(sensorname) # Copy module sensor code to bin folder mks.disableSensorTemplateToUserBin(sensorname) # Create sensor user configuration mks.disableSensorConfig(sensorname)
def disableSensor(sensorname, **kwargs): """ Enable new sensor configuration - Disable supervisor configuration - Disable sensor user script from template - Disable YAML configuration from sensor template """ _LOGGER.info("disableSensor %(sensorname)s" % locals()) # Create Supervisor configuration mks.disableSupervisorConf(sensorname) # Copy module sensor code to bin folder mks.disableSensorTemplateToUserBin(sensorname) # Create sensor user configuration mks.disableSensorConfig(sensorname)